Overwrite breakpoints when launching pygdb from vim, updating vim also after quit
authorStefan Huber <shuber2@gmail.com>
Fri, 13 Jun 2008 13:23:20 +0000 (15:23 +0200)
committerStefan Huber <shuber2@gmail.com>
Fri, 13 Jun 2008 13:23:20 +0000 (15:23 +0200)
DbgTerminal.py
StatusWindow.py
featurerequest.txt
pygdb.py
pygdb.vim

index 9c1d8b38b770ecef1f0eee25b3d82c3773f1f999..8fc569fcf1821588cafb71f08b15ed8ab8025745 100644 (file)
@@ -238,6 +238,10 @@ def quitHandler(*w):
                pass
 
 
+def updateVim():
+       os.system('gvim --servername pygdb --remote-send ":GDBLoadConfig<CR>"')
+
+
 def relToAbsPath(absfile, relfile):
        """When an absfile is given and a relfile is given by
        relative paths relative to absfile, determine the abs
index 6c918e5c306731c3d36212c4c749977b30a54f37..07abd4c616b7fa0a14fca888a56af4ad00d06c7c 100644 (file)
@@ -99,6 +99,7 @@ class StatusWindow (gtk.Window):
                self.fillConfiguration(conf)
                conf.store(".pygdb.conf")
 
-               os.system('gvim --servername pygdb --remote-send ":GDBLoadConfig<CR>"')
+               DbgTerminal.updateVim()
+
 
 
index 4da5c37c55d722fa317f61006dbdd1be092a1d83..fa71310fe197003cced7932e947e59a313e1bdd3 100644 (file)
@@ -1,5 +1,4 @@
 Smaller requests
-  - vim: do not add breakpoints when pressing F5, just replace them all
   - error when readreading the condition of breakpoints! (stop only if...)
 
                (gdb) info breakpoints
index 020001b80915c58bed7f08f5e8da150446a3a442..bbdd04e7aa389491e79743f680e0bc6b61b37b70 100755 (executable)
--- a/pygdb.py
+++ b/pygdb.py
@@ -9,6 +9,7 @@ import string
 import sys
 
 import Configuration
+import DbgTerminal
 import GdbTerminal
 import MainControlWindow
 import StatusWindow
@@ -36,6 +37,8 @@ def launchDebugger(clientCmd):
        statusWnd.fillConfiguration(conf)
        conf.delCurrpos()
        conf.store(".pygdb.conf")
+               
+       DbgTerminal.updateVim()
 
 
 
index ea552d307a0b130646770c4b4607a0de7527de64..d7b68e7b94563ced5612f7235fb88179fe412aac 100644 (file)
--- a/pygdb.vim
+++ b/pygdb.vim
@@ -39,6 +39,7 @@ def gdbLaunch():
        #Add the breakpoints to the configuration
        conf = Configuration.Configuration()
        conf.load(".pygdb.conf")
+       conf.breakpoints = []
        for bp in gdbBps:
                conf.addBreak(bp["file"], bp["lineno"], bp["cond"])
        conf.store(".pygdb.conf")