summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhananjay Balan <mb.dhananjay@gmail.com>2013-08-21 18:31:01 +0530
committerChris Johns <chrisj@rtems.org>2014-08-25 09:52:41 +1000
commit8da0a3745770547d1ebdcaca97702087ce4bc8a5 (patch)
tree30d368ecfe6b7e9e74d5227dbcde369e9c251705
parentddbc5306fa4f92048a8b1e94a35c25227adcf4fb (diff)
Complete index subcommands.
-rw-r--r--tools/gdb/python/rtems.py48
1 files changed, 48 insertions, 0 deletions
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)
+