[rtems-tools commit] Categories the commands.

Chris Johns chrisj at rtems.org
Sun Aug 24 23:45:34 UTC 2014


Module:    rtems-tools
Branch:    master
Commit:    d4fc2d5e54adb8d0f48d94166e5e41926e3f47e3
Changeset: http://git.rtems.org/rtems-tools/commit/?id=d4fc2d5e54adb8d0f48d94166e5e41926e3f47e3

Author:    Dhananjay Balan <mb.dhananjay at gmail.com>
Date:      Tue Aug 20 22:16:16 2013 +0530

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 files 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():



More information about the vc mailing list