You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2017/11/16 19:13:28 UTC

[GitHub] mkiiskila commented on a change in pull request #659: gdb macro os_wakeups, which lists scheduled os_callouts and sleeping tasks

mkiiskila commented on a change in pull request #659: gdb macro os_wakeups, which lists scheduled os_callouts and sleeping tasks
URL: https://github.com/apache/mynewt-core/pull/659#discussion_r151510073
 
 

 ##########
 File path: compiler/gdbmacros/os.gdb
 ##########
 @@ -34,5 +34,40 @@ end
 
 document os_tasks
 usage: os_tasks
-
 Displays os tasks
+end
+
+define os_callouts
+	printf "Callouts:\n"
+	printf " %8s %10s %10s\n", "tick", "callout", "func"
+	while $c != 0
+		printf " %8d %10p %10p\n", $c->c_ticks, $c, $c->c_ev.ev_cb
 
 Review comment:
   Indeed it would be nice. Alas, AFAIK there's no such gdb printf formatting character, so I'd have to interleave this with 'print', which wants to include additional things in the output.
   
   So I opted for this for now, I left the address as the last thing in format, so we can change it easily later.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services