[rtems-tools commit] Complete index subcommands.

Chris Johns chrisj at rtems.org
Sun Aug 24 23:45:34 UTC 2014


Module:    rtems-tools
Branch:    master
Commit:    8da0a3745770547d1ebdcaca97702087ce4bc8a5
Changeset: http://git.rtems.org/rtems-tools/commit/?id=8da0a3745770547d1ebdcaca97702087ce4bc8a5

Author:    Dhananjay Balan <mb.dhananjay at gmail.com>
Date:      Wed Aug 21 18:49:01 2013 +0530

Complete index subcommands.

---

 tools/gdb/python/rtems.py |   48 +++++++++++++++++++++++++++++++++++++++++++++
 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)
+



More information about the vc mailing list