diff options
author | Dhananjay Balan <mb.dhananjay@gmail.com> | 2013-07-13 16:31:59 +0530 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-08-25 09:52:40 +1000 |
commit | 0967a1b679495f728781bd05318379024cadf5c5 (patch) | |
tree | 23e380a16be8f044df9d894855065d27664962f1 /tools/gdb/python/supercore.py | |
parent | Add printers to stage. (diff) | |
download | rtems-tools-0967a1b679495f728781bd05318379024cadf5c5.tar.bz2 |
Refactoring
- drop _printer suffix from printer classes.
Diffstat (limited to 'tools/gdb/python/supercore.py')
-rw-r--r-- | tools/gdb/python/supercore.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tools/gdb/python/supercore.py b/tools/gdb/python/supercore.py index 4378e12..7e958b1 100644 --- a/tools/gdb/python/supercore.py +++ b/tools/gdb/python/supercore.py @@ -3,13 +3,7 @@ # import threads - -# ToDo: Move this to helper. -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()) +import helper class CORE_message_queue: '''Manage a Supercore message_queue''' @@ -21,4 +15,4 @@ class CORE_message_queue: # self.buffer def show(self): - tasks_printer_rotuine(self.wait_queue) + helper.tasks_printer_rotuine(self.wait_queue) |