split = string.split(answer, "=")
return string.join(split[1:], "=").strip()
+
+ def listCodeSnippet(self):
+ starthis = self.getHistoryLen()
+ self.feed_child("list\n")
+ endhis, response = self.waitForPrompt(starthis)
+
+ text = string.join(self.history[starthis:endhis], "\n")
+ return text
+
def waitForPrompt(self, his):
rx = "^\(gdb\)"