projects
/
pygdb.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed a print and added another
[pygdb.git]
/
pygdb.vim
diff --git
a/pygdb.vim
b/pygdb.vim
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
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):
def gdbToggleBreakpoint(lineno=None, file=None):