summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhananjay Balan <mb.dhananjay@gmail.com>2013-08-26 20:56:30 +0530
committerChris Johns <chrisj@rtems.org>2014-08-25 09:52:41 +1000
commit61154bf302d5f022b54094e0fc58e9a0fc00f983 (patch)
tree435377dd939056a09be6f4265a6e24654d1c7cdd
parentFix wdticks command (diff)
downloadrtems-tools-61154bf302d5f022b54094e0fc58e9a0fc00f983.tar.bz2
Add watchdog seconds command
- prints the watchdog chain managed at second boundaries.
-rw-r--r--tools/gdb/python/main.py3
-rw-r--r--tools/gdb/python/objects.py1
-rw-r--r--tools/gdb/python/rtems.py8
3 files changed, 11 insertions, 1 deletions
diff --git a/tools/gdb/python/main.py b/tools/gdb/python/main.py
index a0ff7dc..6fb7c54 100644
--- a/tools/gdb/python/main.py
+++ b/tools/gdb/python/main.py
@@ -18,4 +18,5 @@ rtems.rtems_semaphore()
rtems.rtems_task()
rtems.rtems_message_queue()
rtems.rtems_tod()
-rtems.rtems_wdt() \ No newline at end of file
+rtems.rtems_wdt()
+rtems.rtems_wsec() \ No newline at end of file
diff --git a/tools/gdb/python/objects.py b/tools/gdb/python/objects.py
index ae2a4c7..ee59cbc 100644
--- a/tools/gdb/python/objects.py
+++ b/tools/gdb/python/objects.py
@@ -15,6 +15,7 @@ class infotables:
tables_types = {
'internal/time' : ('TOD_Control', '_TOD'),
'internal/wdticks' : ('Chain_Control', '_Watchdog_Ticks_chain'),
+ 'internal/wdseconds' : ('Chain_Control', '_Watchdog_Seconds_chain'),
'classic/tasks' : ('Thread_Control', '_RTEMS_tasks_Information'),
'classic/timers' : ('Timer_Control', '_Timer_Information'),
diff --git a/tools/gdb/python/rtems.py b/tools/gdb/python/rtems.py
index 340c7ff..5f0aa7d 100644
--- a/tools/gdb/python/rtems.py
+++ b/tools/gdb/python/rtems.py
@@ -245,3 +245,11 @@ class rtems_wdt(rtems_watchdog_chain):
self.__doc__ = 'Display watchdog ticks chain'
super(rtems_wdt, self).__init__('rtems wdticks')
+class rtems_wsec(rtems_watchdog_chain):
+
+ _class = 'wdseconds'
+
+ def __init__(self):
+ self.__doc__ = 'Display watchdog seconds chain'
+ super(rtems_wsec, self).__init__('rtems wdseconds')
+