]> git.sthu.org Git - pygdb.git/commitdiff
pygdb does not save exec-line when quitting.
authorStefan Huber <shuber2@gmail.com>
Fri, 13 Jun 2008 13:18:57 +0000 (15:18 +0200)
committerStefan Huber <shuber2@gmail.com>
Fri, 13 Jun 2008 13:18:57 +0000 (15:18 +0200)
Configuration.py
DbgTerminal.py
featurerequest.txt
pygdb.py

index 460b897db207f611346f01b2e02d05a35fc67b0c..d97e1c43cb9151b11755e633247cfdff0d05f8a3 100644 (file)
@@ -167,6 +167,9 @@ class Configuration:
        def isCurrposSet(self):
                return self.currfile!=None
 
+       def delCurrpos(self):
+               self.currfile = None
+
 
        def findInt(self, name):
                for i in self.ints:
index 5cc7b279e5e41f636c05ee8c95967a38309fe4e1..9c1d8b38b770ecef1f0eee25b3d82c3773f1f999 100644 (file)
@@ -237,6 +237,7 @@ def quitHandler(*w):
        except:
                pass
 
+
 def relToAbsPath(absfile, relfile):
        """When an absfile is given and a relfile is given by
        relative paths relative to absfile, determine the abs
index 4d7f8bd27bc5a6f62ab74a85e92279d64e01122a..4da5c37c55d722fa317f61006dbdd1be092a1d83 100644 (file)
@@ -9,7 +9,6 @@ Smaller requests
                        breakpoint already hit 1 time
 
 
-  - call vim loadconfig when quitting debugger, but without execline!
   - vim has to be in edit mode when LoadConfig is called
   - Deactivate breakpoints
   - Scrollbar for terminals
index 422f83a812b10d15476f98d017b5f64fc1ee08ea..020001b80915c58bed7f08f5e8da150446a3a442 100755 (executable)
--- a/pygdb.py
+++ b/pygdb.py
@@ -34,6 +34,7 @@ def launchDebugger(clientCmd):
        #Store config
        conf = Configuration.Configuration()
        statusWnd.fillConfiguration(conf)
+       conf.delCurrpos()
        conf.store(".pygdb.conf")