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 14:21:49 UTC
[GitHub] andrzej-kaczmarek commented on a change in pull request #659: gdb macro os_wakeups, which lists scheduled os_callouts and sleeping tasks
andrzej-kaczmarek 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_r151425167
##########
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:
It would be nice to print symbol name for ev_cb in addition to pointer value, but I don't know how and if this is possible.
----------------------------------------------------------------
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