added an install info
authorStefan Huber <shuber2@gmail.com>
Tue, 10 Jun 2008 21:21:48 +0000 (23:21 +0200)
committerStefan Huber <shuber2@gmail.com>
Tue, 10 Jun 2008 21:21:48 +0000 (23:21 +0200)
DbgTerminal.py
INSTALL.txt [new file with mode: 0644]

index 6b09426a0698313742ed85402b441cdf4b715c67..0f0eb07f77a4ded1a1917f0e37965c1b6656234c 100644 (file)
@@ -72,10 +72,15 @@ class DbgTerminal (vte.Terminal):
                #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()
diff --git a/INSTALL.txt b/INSTALL.txt
new file mode 100644 (file)
index 0000000..9602b1e
--- /dev/null
@@ -0,0 +1,18 @@
+
+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.