Changeset 1fcff75 in rtems-tools


Ignore:
Timestamp:
Aug 26, 2013, 3:05:57 PM (6 years ago)
Author:
Dhananjay Balan <mb.dhananjay@…>
Branches:
4.10, 4.11, master
Children:
61154bf
Parents:
a4d0739
git-author:
Dhananjay Balan <mb.dhananjay@…> (08/26/13 15:05:57)
git-committer:
Chris Johns <chrisj@…> (08/24/14 23:52:41)
Message:

Fix wdticks command

  • Type is Chain_Control
  • chain.node.next -> null
Location:
tools/gdb/python
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tools/gdb/python/objects.py

    ra4d0739 r1fcff75  
    1515    tables_types = {
    1616        'internal/time'          : ('TOD_Control',           '_TOD'),
     17        'internal/wdticks'       : ('Chain_Control',        '_Watchdog_Ticks_chain'),
    1718
    1819        'classic/tasks'          : ('Thread_Control',        '_RTEMS_tasks_Information'),
  • tools/gdb/python/rtems.py

    ra4d0739 r1fcff75  
    1212import threads
    1313import chains
     14import watchdog
    1415import supercore
    1516import classic
     
    228229
    229230        nd = inst.first()
     231        i = 0
     232        print '  Ticks Chain'
    230233        while not nd.null():
    231234            wd = watchdog.control(nd.cast('Watchdog_Control'))
    232             wd.show()
    233             nd = nd.next()
     235            print ' #'+str(i)
     236            print wd.to_string()
     237            nd.next()
     238            i += 1
    234239
    235240class rtems_wdt(rtems_watchdog_chain):
  • tools/gdb/python/watchdog.py

    ra4d0739 r1fcff75  
    5353        return str(addr)
    5454
     55    def to_string(self):
     56        val = ""
     57        val += "     State:" + str(self.state())
     58        val += "\n     Intial Interval:" + str(self.initial())
     59        val += "\n     Delta Interval:"+ str(self.delta_interval())
     60        val += "\n     Start time:" + str(self.start_time())
     61        val += "\n     Stop time:" + str(self.stop_time())
     62        val += "\n     WD Routine:" + str(self.routine())
     63        return val
     64
    5565    def show(self):
    56         print "     State:", self.state()
    57         print "     Intial Interval:", self.initial()
    58         print "     Delta Interval:", self.delta_interval()
    59         print "     Start time:", self.start_time()
    60         print "     Stop time:", self.stop_time()
    61         print "     WD Routine:", self.routine()
     66        print self.to_string()
Note: See TracChangeset for help on using the changeset viewer.