Changeset d4fc2d5 in rtems-tools


Ignore:
Timestamp:
08/20/13 16:28:16 (11 years ago)
Author:
Dhananjay Balan <mb.dhananjay@…>
Branches:
4.10, 4.11, 5, master
Children:
ddbc530
Parents:
8d035f8
git-author:
Dhananjay Balan <mb.dhananjay@…> (08/20/13 16:28:16)
git-committer:
Chris Johns <chrisj@…> (08/24/14 23:52:41)
Message:

Categories the commands.

The subcommands fall onto DATA.
See http://sourceware.org/gdb/onlinedocs/gdb/Commands-In-Python.html#Commands-In-Python

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gdb/python/rtems.py

    r8d035f8 rd4fc2d5  
    3737
    3838    def __init__(self):
    39         self.__doc__ = 'Display the RTEMS object given a numeric ID (Or a reference to rtems_object).'
     39        self.__doc__ = 'Display the RTEMS object given a numeric ID \
     40                                            (Or a reference to rtems_object).'
    4041        super(rtems_object, self).__init__('rtems object',
    41                                            gdb.COMMAND_STATUS)
     42                                           gdb.COMMAND_DATA,
     43                                           gdb.COMPLETE_SYMBOL)
    4244
    4345    def invoke(self, arg, from_tty):
     
    7274    def __init__(self):
    7375        self.__doc__ = 'Display the RTEMS semaphores by index'
    74         super(rtems_semaphore, self).__init__('rtems semaphore',
    75                                            gdb.COMMAND_STATUS)
     76        super(rtems_semaphore, self).__init__( 'rtems semaphore',
     77                                           gdb.COMMAND_DATA, gdb.COMPLETE_NONE )
    7678
    7779    def invoke(self, arg, from_tty):
     
    102104    def __init__(self):
    103105        self.__doc__ = 'Display the RTEMS tasks by index(s)'
    104         super(rtems_task,self).__init__('rtems task', gdb.COMMAND_STATUS)
     106        super(rtems_task,self).__init__('rtems task',
     107                                        gdb.COMMAND_DATA, gdb.COMPLETE_NONE)
    105108
    106109    def invoke(self, arg, from_tty):
     
    131134    def __init__(self):
    132135        self.__doc__ = 'Display the RTEMS message_queue by index(s)'
    133         super(rtems_message_queue,self).__init__('rtems mqueue', gdb.COMMAND_STATUS)
     136        super(rtems_message_queue,self).__init__('rtems mqueue',
     137                                                gdb.COMMAND_DATA,
     138                                                gdb.COMPLETE_NONE)
    134139
    135140    def invoke(self, arg, from_tty):
Note: See TracChangeset for help on using the changeset viewer.