Clewn is a NetBeans-based integration between Vim and GDB, that lets you perform the GDB debugging from within Vim.
Grab the clewn and vimgdb source, linked to from http://clewn.sf.net
Grab the latest vim-71 source archive and unpack
Apply the vimgdb patch to vim-71, then run your favourite ./configure and make:
./configure --prefix=$HOME/local --with-x --with-features=huge --with-vim-name=vim71 --enable-xim --enable-fontset --enable-gdb --enable-pythoninterp
Unpack the vimgdb runtime tarball in one of your runtime paths (:set runtimepath?), e.g ~/local/share/vim/vim71, start vim in the docs/ directory and run :helptags . to re-generate the Vim help files with the VimGdb documentation.
Configure and make clewn:
vimdir=$HOME/.vim ./configure --prefix=$HOME/local make && make install
Done! Try it out with:
clewn -ga '--args ./app-to-debug --commandline --parameters'
More info in the documentation (:help clewn).