summaryrefslogtreecommitdiffstats
path: root/tools/gdb/python/classic.py
diff options
context:
space:
mode:
authorDhananjay Balan <mb.dhananjay@gmail.com>2013-07-17 16:00:57 +0530
committerChris Johns <chrisj@rtems.org>2014-08-25 09:52:40 +1000
commit086e689955e3b0692d00bf2fc0ea1be7ed244e07 (patch)
treed476babc4119ae58d80c9dbc816c2df612b5bea7 /tools/gdb/python/classic.py
parentFix typo: Global timer control object name. (diff)
downloadrtems-tools-086e689955e3b0692d00bf2fc0ea1be7ed244e07.tar.bz2
Added support for classic/timers.
Diffstat (limited to 'tools/gdb/python/classic.py')
-rw-r--r--tools/gdb/python/classic.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/tools/gdb/python/classic.py b/tools/gdb/python/classic.py
index 9af11df..1f5daf2 100644
--- a/tools/gdb/python/classic.py
+++ b/tools/gdb/python/classic.py
@@ -11,6 +11,7 @@ import re
import objects
import threads
+import watchdog
import supercore
class attribute:
@@ -179,4 +180,17 @@ class message_queue:
print ' Name:', self.object_control.name()
print ' Attr:', self.attr.to_string()
- self.core_control.show() \ No newline at end of file
+ self.core_control.show()
+
+class timer:
+ '''Print a classic timer'''
+
+ def __init__(self, id):
+ self.id = id
+ self.object = objects.information.object(self.id).dereference()
+ self.object_control = objects.control(self.object['Object'])
+ self.watchdog = watchdog.control(self.object['Ticker'])
+
+ def show(self, from_tty):
+ print ' Name:', self.object_control.name()
+ self.watchdog.show() \ No newline at end of file