+ def testForInactivity(self, his):
+ """Test whether debugger got inactive"""
+ line = self.history[his]
+
+ if string.find(line, "Starting program:") == 0:
+ prog = string.join( string.split(line)[1:])
+ return "started", prog
+
+ if string.find(line, "Continuing.") == 0:
+ return "continued", None
+
+ if string.find(line, "\x1a\x1a") == 0:
+ rxcont = re.compile("^\(gdb\)\s+(cont|step|next|stepi|nexti|advance)")
+
+ if rxcont.search(self.history[his-1]):
+ return "stepped", None
+ if rxcont.search(self.history[his-2]):
+ return "stepped", None
+
+ return None
+
+
+
+
+
+
+