summaryrefslogtreecommitdiff
path: root/tools/gdb/python/watchdog.py
diff options
context:
space:
mode:
authorDhananjay Balan <mb.dhananjay@gmail.com>2013-08-26 20:35:57 +0530
committerChris Johns <chrisj@rtems.org>2014-08-25 09:52:41 +1000
commit1fcff75505e4be2916bcd273a3670828363a0f67 (patch)
treef75c2193e7b9944033be1114ccbb4efeb61937f7 /tools/gdb/python/watchdog.py
parenta4d0739522651592f5f2b45e51f3957f3d11cdeb (diff)
Fix wdticks command
- Type is Chain_Control - chain.node.next -> null
Diffstat (limited to '')
-rw-r--r--tools/gdb/python/watchdog.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/tools/gdb/python/watchdog.py b/tools/gdb/python/watchdog.py
index fef2f39..71a1816 100644
--- a/tools/gdb/python/watchdog.py
+++ b/tools/gdb/python/watchdog.py
@@ -52,10 +52,15 @@ class control:
addr = self.ctrl['routine']
return str(addr)
+ def to_string(self):
+ val = ""
+ val += " State:" + str(self.state())
+ val += "\n Intial Interval:" + str(self.initial())
+ val += "\n Delta Interval:"+ str(self.delta_interval())
+ val += "\n Start time:" + str(self.start_time())
+ val += "\n Stop time:" + str(self.stop_time())
+ val += "\n WD Routine:" + str(self.routine())
+ return val
+
def show(self):
- print " State:", self.state()
- print " Intial Interval:", self.initial()
- print " Delta Interval:", self.delta_interval()
- print " Start time:", self.start_time()
- print " Stop time:", self.stop_time()
- print " WD Routine:", self.routine() \ No newline at end of file
+ print self.to_string() \ No newline at end of file