Messege Queue Objects

Added intial support for printing
This commit is contained in:
Dhananjay Balan
2013-07-08 21:42:48 +05:30
committed by Chris Johns
parent ce55b57c4c
commit f814c7629c
2 changed files with 27 additions and 11 deletions

View File

@@ -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()