From: Stefan Huber Date: Fri, 13 Jun 2008 13:18:57 +0000 (+0200) Subject: pygdb does not save exec-line when quitting. X-Git-Tag: v0.99.1~6 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=956e4f7845dc0bbf3f5c8e676d7227e32a75ba3a;p=pygdb.git pygdb does not save exec-line when quitting. --- diff --git a/Configuration.py b/Configuration.py index 460b897..d97e1c4 100644 --- a/Configuration.py +++ b/Configuration.py @@ -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: diff --git a/DbgTerminal.py b/DbgTerminal.py index 5cc7b27..9c1d8b3 100644 --- a/DbgTerminal.py +++ b/DbgTerminal.py @@ -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 diff --git a/featurerequest.txt b/featurerequest.txt index 4d7f8bd..4da5c37 100644 --- a/featurerequest.txt +++ b/featurerequest.txt @@ -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 diff --git a/pygdb.py b/pygdb.py index 422f83a..020001b 100755 --- 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")