summaryrefslogtreecommitdiff
path: root/tools/gdb/python/rtems.py
diff options
context:
space:
mode:
authorDhananjay Balan <mb.dhananjay@gmail.com>2013-07-08 21:42:48 +0530
committerChris Johns <chrisj@rtems.org>2014-08-25 09:52:40 +1000
commitf814c7629cf5c87f0262ee877116166a02241c84 (patch)
tree6497776c0934a22b7586de4da2bef5d15287f027 /tools/gdb/python/rtems.py
parentce55b57c4c4d6e3a090bdfbf9053a4e931eeb078 (diff)
Messege Queue Objects
Added intial support for printing
Diffstat (limited to '')
-rw-r--r--tools/gdb/python/rtems.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/gdb/python/rtems.py b/tools/gdb/python/rtems.py
index e227c6f..398f4e5 100644
--- a/tools/gdb/python/rtems.py
+++ b/tools/gdb/python/rtems.py
@@ -72,12 +72,13 @@ class rtems_object(gdb.Command):
objects = {
'classic/semaphores': lambda id: classic.semaphore(id),
- 'classic/tasks': lambda id: classic.task(id)
+ 'classic/tasks': lambda id: classic.task(id),
+ 'classic/message_queues': lambda id: classic.message_queue(id)
}
def __init__(self):
self.__doc__ = 'Display the RTEMS object given a numeric ID.'
- super(rtems_object, self).__init__('rtems object',
+ super(rtems_object, self).__init__('rtems object',
gdb.COMMAND_STATUS)
def invoke(self, arg, from_tty):
@@ -98,7 +99,7 @@ class rtems_object(gdb.Command):
object = self.objects[objectname](id)
object.show(from_tty)
objects.information.invalidate()
-
+
#
# Main
#
@@ -107,4 +108,4 @@ build_rtems_dict()
gdb.pretty_printers = []
gdb.pretty_printers.append (lookup_function)
rtems()
-rtems_object()
+rtems_object() \ No newline at end of file