summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhananjay Balan <mb.dhananjay@gmail.com>2013-08-20 21:58:16 +0530
committerChris Johns <chrisj@rtems.org>2014-08-25 09:52:41 +1000
commitd4fc2d5e54adb8d0f48d94166e5e41926e3f47e3 (patch)
tree23dbb97ff7de4498d5353b3d06e451bec58cba23
parentRefactor (diff)
downloadrtems-tools-d4fc2d5e54adb8d0f48d94166e5e41926e3f47e3.tar.bz2
Categories the commands.
The subcommands fall onto DATA. See http://sourceware.org/gdb/onlinedocs/gdb/Commands-In-Python.html#Commands-In-Python
-rw-r--r--tools/gdb/python/rtems.py17
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():