Changeset 8da0a37 in rtems-tools for tools/gdb


Ignore:
Timestamp:
Aug 21, 2013, 1:01:01 PM (6 years ago)
Author:
Dhananjay Balan <mb.dhananjay@…>
Branches:
4.10, 4.11, master
Children:
52fc200
Parents:
ddbc530
git-author:
Dhananjay Balan <mb.dhananjay@…> (08/21/13 13:01:01)
git-committer:
Chris Johns <chrisj@…> (08/24/14 23:52:41)
Message:

Complete index subcommands.

File:
1 edited

Legend:

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

    rddbc530 r8da0a37  
    137137        return classic.message_queue(obj)
    138138
     139class rtems_timer(rtems_index):
     140    '''Index subcommand'''
     141
     142    _class = 'timers'
     143
     144    def __init__(self):
     145        self.__doc__ = 'Display RTEMS timer(s) by index(es)'
     146        super(rtems_timer, self).__init__('rtems timer')
     147
     148    def instance(self,obj):
     149        return classic.timer(obj)
     150
     151class rtems_partition(rtems_index):
     152    '''Partition subcommand'''
     153
     154    _class = 'partitions'
     155
     156    def __init__(self):
     157        self.__doc__ = 'Display RTEMS partition(s) by index(es)'
     158        super(rtems_partition, self).__init__('rtems partition')
     159
     160    def instance(self, obj):
     161        return classic.partition(obj)
     162
     163class rtems_region(rtems_index):
     164    '''Region subcomamnd'''
     165
     166    _class = 'regions'
     167
     168    def __init__(self):
     169        self.__doc__ = 'Display RTEMS region(s) by index(es)'
     170        super(rtems_region , self).__init__('rtems regions')
     171
     172    def instance(self, obj):
     173        return classic.region(obj)
     174
     175class rtems_barrier(rtems_index):
     176    '''Barrier subcommand'''
     177
     178    _class = 'barriers'
     179
     180    def __init__(self):
     181        self.__doc__ = 'Display RTEMS barrier(s) by index(es)'
     182        super(rtems_barrier , self).__init__('rtems barrier')
     183
     184    def instance(self, obj):
     185        return classic.barrier(obj)
     186
Note: See TracChangeset for help on using the changeset viewer.