mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-19 13:50:30 +08:00
Fix wdticks command
- Type is Chain_Control - chain.node.next -> null
This commit is contained in:

committed by
Chris Johns

parent
a4d0739522
commit
1fcff75505
@@ -11,6 +11,7 @@ import re
|
||||
import objects
|
||||
import threads
|
||||
import chains
|
||||
import watchdog
|
||||
import supercore
|
||||
import classic
|
||||
|
||||
@@ -227,10 +228,14 @@ class rtems_watchdog_chain(gdb.Command):
|
||||
return
|
||||
|
||||
nd = inst.first()
|
||||
i = 0
|
||||
print ' Ticks Chain'
|
||||
while not nd.null():
|
||||
wd = watchdog.control(nd.cast('Watchdog_Control'))
|
||||
wd.show()
|
||||
nd = nd.next()
|
||||
print ' #'+str(i)
|
||||
print wd.to_string()
|
||||
nd.next()
|
||||
i += 1
|
||||
|
||||
class rtems_wdt(rtems_watchdog_chain):
|
||||
|
||||
|
Reference in New Issue
Block a user