From a7176a8a7e5542d9371026b135a864f15d79e1b5 Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Sun, 25 Aug 2013 23:03:44 +0530 Subject: Add watchdog ticks command. - ToDo : Fix watchdog states. --- tools/gdb/python/watchdog.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'tools/gdb/python/watchdog.py') diff --git a/tools/gdb/python/watchdog.py b/tools/gdb/python/watchdog.py index 3678550..fef2f39 100644 --- a/tools/gdb/python/watchdog.py +++ b/tools/gdb/python/watchdog.py @@ -12,11 +12,6 @@ import objects class state: - INACTIVE = 0 - BEING_INSERTED = 1 - ACTIVE = 2 - REMOVE_IT = 3 - states = { 0: 'inactive', 1: 'being-inserted', @@ -35,9 +30,10 @@ class control: def __init__(self, ctrl): self.ctrl = ctrl - # Not sure if an extra class is needed. + # ToDo: fix this.1 def state(self): - return state(int(self.ctrl['state'])).to_string() + return state(1).to_string() + #return state(int(self.ctrl['state'])).to_string() def initial(self): return self.ctrl['initial'] -- cgit v1.2.3