From c90feb4c530cdb4e5abbfac044fea74d88975775 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 10 Jun 2008 23:21:48 +0200 Subject: [PATCH] added an install info --- DbgTerminal.py | 5 +++++ INSTALL.txt | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 INSTALL.txt diff --git a/DbgTerminal.py b/DbgTerminal.py index 6b09426..0f0eb07 100644 --- a/DbgTerminal.py +++ b/DbgTerminal.py @@ -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 index 0000000..9602b1e --- /dev/null +++ b/INSTALL.txt @@ -0,0 +1,18 @@ + +1. Put the pygdb directory to somewhere, lets call it +2. Add the following lines into your ~/.gvimrc: + + python << >> + import sys + + #Do not use a ~ for home directory + pygdbdir = "" + sys.path.append(pygdbdir) + >> + + autocmd BufRead *.c* source /pygdb.vim + autocmd BufRead *.c* call GDBMapDefaults() + + where you replace by the corresponding path of pygdb. You may want to + add to the environment variable PATH resp. PYTHONPATH such that you + cou can call pygdb from console by hand. -- 2.30.2