Copyright (C) 2014 Joel
http://hippersoft.fr/projects/gdbinvim/
GDBinVim is an interface for GDB inside vim. It embeds a patched PEDA (Python Exploit Development Assistance for GDB) with special commands to communicate with Vim.
You can control the execution of the program directly in Vim (instruction step by step, breakpoints, ...). At each state, registers and stack are printed. You can also "hexdump" an address.
Every patchs/forks are welcome !
- python 2.7
- GDB
- Vim
cp gdbin.vim ~/.vim/plugins
You only have to run gdb.py like if it was GDB :
cd yourproject/
alias gdb="path/to/gdbinvim/gdb.py"
gdb --args yourprog
Open a new Vim session in the same directory where you launch gdb, and enter
:Gdb, or put Gdb in the command line :
cd yourproject/
vim -c Gdb
t: start the programs: step inton: next instructionc: continuer: reloadb: toggle breakpoint on cursor line (represented by a red square on the left)h: back into the history of disassembled (when you have pressed d)d: disassemble at the address under the cursorp: print the value at the address under the cursorx: hexdump at the address under the cursork: print the stack at the address under the cursor_d::GdbDisassemble <ADDR>disassemble at the specified address_p::GdbPrint <ADDR>print the value at the specified address_x::GdbHexdump <ADDR>hexdump at the specified address_k::GdbStack <ADDR>print the stack at the specified address_b: save breakpoints to .gdb_breakpoints, you can restore them withgdb --command=.gdb_breakpoints --args ...
