[rtems-tools commit] Add watchdog seconds command

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


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

Author:    Dhananjay Balan <mb.dhananjay at gmail.com>
Date:      Mon Aug 26 21:14:30 2013 +0530

Add watchdog seconds command
 - prints the watchdog chain managed at second boundaries.

---

 tools/gdb/python/main.py    |    3 ++-
 tools/gdb/python/objects.py |    1 +
 tools/gdb/python/rtems.py   |    8 ++++++++
 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')
+



More information about the vc mailing list