removed a print and added another
authorStefan Huber <shuber2@gmail.com>
Mon, 9 Jun 2008 13:02:58 +0000 (15:02 +0200)
committerStefan Huber <shuber2@gmail.com>
Mon, 9 Jun 2008 13:05:15 +0000 (15:05 +0200)
GdbTerminal.py
pygdb.py
pygdb.vim

index 3656701e5619e383a8e1a2d776ca4a2854235a4e..4fb4a35b8dd8c2494f76a759a6fbcbeb0cb626f9 100755 (executable)
@@ -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)":
index 077bc1cb55adad060071a03e1f658b9d9a00af62..d3cf2690d478bec972ca7fd70cd696d1bf320fe4 100755 (executable)
--- 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
index 1926f3e60b5406859a794c3719884c46dbc109db..244e6322a74d3758d349c64ca16b6a5e4b3c2bd7 100644 (file)
--- 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):