Short for "breakpoint quickfix". Easily navigate between gdb breakpoints leveraging vim's native quickfix and tag lists. This plugin should be universal, as long as the target language is supported by both gdb and ctags.
There is kind of an assumption you know how both the quickfix list and taglists already work when using this plugin. That being said this basic plugin provides two commands:
:Mktags
- Is a simple wrapper which invokes ctags with the necessary arguments for this plugin to function as intended.
:ReadBreakpoints <filename>
- Is a command which will read the breakpoints from the provided file into the quickfix list.
The breakpoints file is a pre-requisite for running this command. It can be generated within gdb by running the following command:
(gdb) save breakpoints <filename>
:WriteBreakpoint <filename>
- Is a command which will write the line under the cursor as a breakpoint to the specified file.
The breakpoints file can be either sourced or re-sourced within gdb after running this command. This can be done by running the following command:
(gdb) source <filename>
After running ReadBreakpoints you can use the quickfix list as you traditionally would to navigate between breakpoints.
cnextcprevcopen(orcopeif ur based lol)
It will come intuitively if you are already good with the quickfix list.
It is a subtle but nice thing to have as somebody who spends an enormous amount of time going back and fourth between vim and gdb during remote work I do through ssh.
The primary reason I write this in vimscript and not lua is so that it has backwards compatability with vim and older versions when you don't want to be arbitrarily installing editors on other servers (I'm looking at you neovim elitists).
- Potentially support a configurable default
breakpoints.txtthat is selected implicitly when no argument is provided. - Tests.
- Other ideas are welcome as well.