sponsor Vim development Vim logo Vim Book Ad

gdbvim : Watch in gvim what you debug in gdb. And more.

 script karma  Rating 41/18, Downloaded by 3431  Comments, bugs, improvements  Vim wiki

created by
Edward Fox
 
script type
utility
 
description
NOTICE: MICROSOFT WINDOWS IS NOT CURRENTLY SUPPORTED BY THIS SCRIPT YET!

I found a very nice plugin called gdbvim. Now I can debug my C / C++ code in VIM with its help. The original copy of the plugin can be found at: vimscript #84. See this link for more information about this plugin.

Unfortunately, I can only set breakpoints with this plugin, but I can't clear the breakpoints set before. So I modified the plugin and made "toggle breakpoints" feature possible. Here is my newly patched code. The new gdbvim.vim requires multvars.vim, which can be found at: vimscript #171.

Any comments or suggestions are welcome.
 
install details
Extract files from archive and move the files into your runtime path, for example, "~/.vim". Then run ":helptags ~/.vim/doc". "plugin/gdbvim" is an executable written in Perl. You can create a symbolic link to it in one of your $PATH directories.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
gdbvim.tar.bz2 0.3a 2005-10-27 6.0 Edward Fox This is an Alpha (UNSTABLE) version with some new features added and a few bugs fixed.


New features:

  * (Major) Dumps the breakpoints out to ".gdbvim_breakpoints" when you quit gdbvim, and re-read all the breakpoints when you launch gdbvim the next time.

  * Add "Clear all breakpoints" feature.

  * (Minor) Changed the menu layout. Added "Call stacks" and some other useful menu items.


Bugs fixed:

  * The previous version may fail to clear some breakpoints under some new version of gdb. Because  such gdb may breaks at two or more different addresses in the binary code when you set breakpoint at only one position of the source code.
gdbvim.tar.bz2 0.2 2005-10-26 6.0 Edward Fox Initial upload
ip used for rating: 35.170.81.210

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
OSDN.net Logo