pygdb takes vim-servername as parameter. vim communicates its servername to pygdb
[pygdb.git] / pygdb.vim
index d50d2400cbc1a6c1fb09bdb624cf764919ae398c..7a8b89f45901be31ed691ac53b268cb84ef0022d 100644 (file)
--- a/pygdb.vim
+++ b/pygdb.vim
@@ -28,7 +28,7 @@ clientcmd = ""
 execsign = None
 
 def gdbLaunch():
-       global gdbterm, mainctrlwnd, statuswnd, gdbBps, clientcmd, gdbthread
+       global gdbBps, clientcmd
 
        clientcmd = vim.eval("input('Client commando: ', '%s')" % clientcmd).strip()
 
@@ -44,7 +44,7 @@ def gdbLaunch():
                conf.addBreak(bp["file"], bp["lineno"], bp["cond"])
        conf.store(".pygdb.conf")
        
-       vim.command("!python %s/pygdb.py %s &\n" % (pygdbdir, clientcmd))
+       vim.command("!python %s/pygdb.py --vim-servername %s %s &\n" % (pygdbdir, vim.eval("v:servername"), clientcmd))
 
 
 def gdbToggleBreakpoint(lineno=None, file=None):
@@ -238,6 +238,7 @@ def gdbLoadConfig():
                setExecutionLine(file, conf.currlineno)
        else:
                delExecutionLine()
+
 >>
 
 highlight ExecutionLine term=bold ctermbg=DarkGreen ctermfg=Black guibg=LightGreen guifg=Black