+
+ def listCodeSnippet(self):
+ return self.__getAnswerFromCmd("list\n")
+
+ def getBacktrace(self):
+ return self.__getAnswerFromCmd("bt\n")
+
+ def waitForPrompt(self, his):
+ rx = "^\(gdb\)"
+ return self.waitForRx(rx,his)
+
+ def __getAnswerFromCmd(self, cmd):
+ starthis = self.getHistoryLen()
+ self.feed_child(cmd)
+ endhis, response = self.waitForPrompt(starthis)
+
+ return self.history[starthis:endhis]
+
+
+ def testForActivity(self, his):
+ """Test whether debugger got active again"""
+
+ line = self.history[his]