mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-19 16:56:56 +08:00
Messege Queue Objects
Added intial support for printing
This commit is contained in:

committed by
Chris Johns

parent
ce55b57c4c
commit
f814c7629c
@@ -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()
|
Reference in New Issue
Block a user