#Get the lines and remove empty lines
lines = string.split(text, "\n")
+
#Remove the incomplete line
+ len = self.getHistoryLen()
self.history[-1] += lines[0]
self.history += lines[1:]
+ for l in self.history[len:]:
+ pass
+
def waitForNewline(self):
l = self.getHistoryLen()
--- /dev/null
+
+1. Put the pygdb directory to somewhere, lets call it <dir>
+2. Add the following lines into your ~/.gvimrc:
+
+ python << >>
+ import sys
+
+ #Do not use a ~ for home directory
+ pygdbdir = "<dir>"
+ sys.path.append(pygdbdir)
+ >>
+
+ autocmd BufRead *.c* source <dir>/pygdb.vim
+ autocmd BufRead *.c* call GDBMapDefaults()
+
+ where you replace <dir> by the corresponding path of pygdb. You may want to
+ add <dir> to the environment variable PATH resp. PYTHONPATH such that you
+ cou can call pygdb from console by hand.