From: Stefan Huber Date: Tue, 10 Jun 2008 21:21:48 +0000 (+0200) Subject: added an install info X-Git-Tag: v0.99.0~10 X-Git-Url: https://git.sthu.org/?p=pygdb.git;a=commitdiff_plain;h=c90feb4c530cdb4e5abbfac044fea74d88975775 added an install info --- 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.