summaryrefslogtreecommitdiff
path: root/tools/gdb/python/helper.py
diff options
context:
space:
mode:
authorDhananjay Balan <mb.dhananjay@gmail.com>2013-07-13 16:31:59 +0530
committerChris Johns <chrisj@rtems.org>2014-08-25 09:52:40 +1000
commit0967a1b679495f728781bd05318379024cadf5c5 (patch)
tree23e380a16be8f044df9d894855065d27664962f1 /tools/gdb/python/helper.py
parenta785e254f2360e946baa14a11fbd3f403047b880 (diff)
Refactoring
- drop _printer suffix from printer classes.
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