From 956e4f7845dc0bbf3f5c8e676d7227e32a75ba3a Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Fri, 13 Jun 2008 15:18:57 +0200 Subject: [PATCH] pygdb does not save exec-line when quitting. --- Configuration.py | 3 +++ DbgTerminal.py | 1 + featurerequest.txt | 1 - pygdb.py | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) 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") -- 2.39.5