summaryrefslogtreecommitdiff
path: root/tools/gdb/python/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gdb/python/helper.py')
-rw-r--r--tools/gdb/python/helper.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/gdb/python/helper.py b/tools/gdb/python/helper.py
new file mode 100644
index 0000000..ec17400
--- /dev/null
+++ b/tools/gdb/python/helper.py
@@ -0,0 +1,8 @@
+#
+# RTEMS GDB support helper routins.
+
+def tasks_printer_rotuine(wait_queue):
+ tasks = wait_queue.tasks()
+ print ' Queue: len = %d, state = %s' % (len(tasks),wait_queue.state())
+ for t in range(0, len(tasks)):
+ print ' ', tasks[t].brief(), ' (%08x)' % (tasks[t].id()) \ No newline at end of file