-highlight ExecutionLine term=bold ctermbg=DarkGreen ctermfg=White
-highlight BreakPoint term=inverse ctermbg=DarkCyan ctermfg=Black
+ assert(path[0] == "/")
+
+ return path
+
+
+def gdbLoadConfig():
+ global clientcmd, gdbBps, cmdset
+
+
+ #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()
+
+>>
+
+highlight ExecutionLine term=bold ctermbg=DarkGreen ctermfg=Black guibg=LightGreen guifg=Black
+highlight BreakPoint term=inverse ctermbg=DarkRed ctermfg=Black guibg=LightRed guifg=Black