From 61154bf302d5f022b54094e0fc58e9a0fc00f983 Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Mon, 26 Aug 2013 20:56:30 +0530 Subject: 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 deletion(-) (limited to 'tools/gdb') 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') + -- cgit v1.2.3