From d4fc2d5e54adb8d0f48d94166e5e41926e3f47e3 Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Tue, 20 Aug 2013 21:58:16 +0530 Subject: Categories the commands. The subcommands fall onto DATA. See http://sourceware.org/gdb/onlinedocs/gdb/Commands-In-Python.html#Commands-In-Python --- tools/gdb/python/rtems.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tools/gdb/python/rtems.py b/tools/gdb/python/rtems.py index c45d72e..718701c 100644 --- a/tools/gdb/python/rtems.py +++ b/tools/gdb/python/rtems.py @@ -36,9 +36,11 @@ class rtems_object(gdb.Command): } def __init__(self): - self.__doc__ = 'Display the RTEMS object given a numeric ID (Or a reference to rtems_object).' + self.__doc__ = 'Display the RTEMS object given a numeric ID \ + (Or a reference to rtems_object).' super(rtems_object, self).__init__('rtems object', - gdb.COMMAND_STATUS) + gdb.COMMAND_DATA, + gdb.COMPLETE_SYMBOL) def invoke(self, arg, from_tty): for num in arg.split(): @@ -71,8 +73,8 @@ class rtems_semaphore(gdb.Command): def __init__(self): self.__doc__ = 'Display the RTEMS semaphores by index' - super(rtems_semaphore, self).__init__('rtems semaphore', - gdb.COMMAND_STATUS) + super(rtems_semaphore, self).__init__( 'rtems semaphore', + gdb.COMMAND_DATA, gdb.COMPLETE_NONE ) def invoke(self, arg, from_tty): for val in arg.split(): @@ -101,7 +103,8 @@ class rtems_task(gdb.Command): def __init__(self): self.__doc__ = 'Display the RTEMS tasks by index(s)' - super(rtems_task,self).__init__('rtems task', gdb.COMMAND_STATUS) + super(rtems_task,self).__init__('rtems task', + gdb.COMMAND_DATA, gdb.COMPLETE_NONE) def invoke(self, arg, from_tty): for val in arg.split(): @@ -130,7 +133,9 @@ class rtems_message_queue(gdb.Command): def __init__(self): self.__doc__ = 'Display the RTEMS message_queue by index(s)' - super(rtems_message_queue,self).__init__('rtems mqueue', gdb.COMMAND_STATUS) + super(rtems_message_queue,self).__init__('rtems mqueue', + gdb.COMMAND_DATA, + gdb.COMPLETE_NONE) def invoke(self, arg, from_tty): for val in arg.split(): -- cgit v1.2.3