From: Stefan Huber Date: Sun, 8 Sep 2013 17:57:55 +0000 (+0200) Subject: Add gdbWriteConfig() X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=4a83d00c3ddc9fd1bc9a3b896a3faa1e18d84a9f;p=pygdb.git Add gdbWriteConfig() --- diff --git a/pygdb.vim b/pygdb.vim index 9486db4..79a557e 100644 --- a/pygdb.vim +++ b/pygdb.vim @@ -51,13 +51,7 @@ def gdbLaunch(): print "No command given!" return - #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") + gdbWriteConfig() vim.command("!python %s/pygdb.py --vim-servername %s %s &\n" % (pygdbdir, vim.eval("v:servername"), clientcmd)) @@ -259,6 +253,18 @@ def gdbLoadConfig(): 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") + + >> highlight ExecutionLine term=bold ctermbg=DarkGreen ctermfg=Black guibg=LightGreen guifg=Black