+
+ #Load configuration
+ conf = Configuration.Configuration()
+ conf.load(".pygdb.conf")
+
+ #Remove all breakpoints
+ while len(gdbBps)>0:
+ removeBreakpoint(0)
+
+ #Add breakpoints from configuration
+ for bp in conf.breakpoints:
+ bp["file"] = toAbsPath( bp["file"] )
+ addBreakpoint(bp["file"], bp["lineno"], bp["cond"])
+
+ #Set the command from config
+ if conf.getCommand() != None:
+ clientcmd = conf.getCommand()
+
+ #Set current execution line
+ if conf.isCurrposSet():
+ file = toAbsPath(conf.currfile)
+ setExecutionLine(file, conf.currlineno)
+ else:
+ delExecutionLine()
+
+
+def gdbWriteConfig():
+
+ #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")