From fd54ea4a2710afa2bd51e2b8600c4577bdfccc0d Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 9 Jun 2008 15:02:58 +0200 Subject: [PATCH] removed a print and added another --- GdbTerminal.py | 2 -- pygdb.py | 1 - pygdb.vim | 15 +++++++-------- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/GdbTerminal.py b/GdbTerminal.py index 3656701..4fb4a35 100755 --- a/GdbTerminal.py +++ b/GdbTerminal.py @@ -66,8 +66,6 @@ class GdbTerminal (DbgTerminal.DbgTerminal): rx = re.compile("^Breakpoint |^No|^\(gdb\) ") his, response = self.waitForRx(rx, his) - print his, response - if response[0:10] == "Breakpoint": return string.split(response)[1].strip() if response[0:5] == "(gdb)": diff --git a/pygdb.py b/pygdb.py index 077bc1c..d3cf269 100755 --- a/pygdb.py +++ b/pygdb.py @@ -24,7 +24,6 @@ def launchDebugger(clientCmd, quitonclose=True): mainCtrlWnd.destroy() statusWnd.destroy() gtk.main_quit() - #Determine the closing callback func diff --git a/pygdb.vim b/pygdb.vim index 1926f3e..244e632 100644 --- a/pygdb.vim +++ b/pygdb.vim @@ -39,17 +39,16 @@ gdbthread = None def gdbLaunch(): global gdbterm, mainctrlwnd, statuswnd, gdbBps, clientcmd, gdbthread - if gdbterm == None: - clientcmd = vim.eval("input('Client commando: ', '%s')" % clientcmd) + clientcmd = vim.eval("input('Client commando: ', '%s')" % clientcmd) + gdbterm, mainctrlwnd, statuswnd = pygdb.launchDebugger(clientcmd, False) - gdbterm, mainctrlwnd, statuswnd = pygdb.launchDebugger(clientcmd, False) + for bp in gdbBps: + statuswnd.breakpointsFrame.addBreakpoint(bp["file"], bp["lineno"], bp["cond"]) - for bp in gdbBps: - statuswnd.breakpointsFrame.addBreakpoint(bp["file"], bp["lineno"], bp["cond"]) - - gtk.main() - gdbterm = None + print "Started dbg session." + gtk.main() + print "Finished dbg session." def gdbToggleBreakpoint(lineno=None, file=None): -- 2.30.2