From 8da0a3745770547d1ebdcaca97702087ce4bc8a5 Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Wed, 21 Aug 2013 18:31:01 +0530 Subject: Complete index subcommands. --- tools/gdb/python/rtems.py | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/tools/gdb/python/rtems.py b/tools/gdb/python/rtems.py index 7d26542..b142f23 100644 --- a/tools/gdb/python/rtems.py +++ b/tools/gdb/python/rtems.py @@ -136,3 +136,51 @@ class rtems_message_queue(rtems_index): def instance(self,obj): return classic.message_queue(obj) +class rtems_timer(rtems_index): + '''Index subcommand''' + + _class = 'timers' + + def __init__(self): + self.__doc__ = 'Display RTEMS timer(s) by index(es)' + super(rtems_timer, self).__init__('rtems timer') + + def instance(self,obj): + return classic.timer(obj) + +class rtems_partition(rtems_index): + '''Partition subcommand''' + + _class = 'partitions' + + def __init__(self): + self.__doc__ = 'Display RTEMS partition(s) by index(es)' + super(rtems_partition, self).__init__('rtems partition') + + def instance(self, obj): + return classic.partition(obj) + +class rtems_region(rtems_index): + '''Region subcomamnd''' + + _class = 'regions' + + def __init__(self): + self.__doc__ = 'Display RTEMS region(s) by index(es)' + super(rtems_region , self).__init__('rtems regions') + + def instance(self, obj): + return classic.region(obj) + +class rtems_barrier(rtems_index): + '''Barrier subcommand''' + + _class = 'barriers' + + def __init__(self): + self.__doc__ = 'Display RTEMS barrier(s) by index(es)' + super(rtems_barrier , self).__init__('rtems barrier') + + def instance(self, obj): + return classic.barrier(obj) + -- cgit v1.2.3