projects
/
pygdb.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removing module init file; doing some chmod
[pygdb.git]
/
GdbTerminal.py
diff --git
a/GdbTerminal.py
b/GdbTerminal.py
old mode 100755
(executable)
new mode 100644
(file)
index
579849d
..
5e6ba6d
--- a/
GdbTerminal.py
+++ b/
GdbTerminal.py
@@
-137,6
+137,15
@@
class GdbTerminal (DbgTerminal.DbgTerminal):
split = string.split(answer, "=")
return string.join(split[1:], "=").strip()
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\)"
def waitForPrompt(self, his):
rx = "^\(gdb\)"