some gdb command

This is a simple list of gdb debugger command. I will update this list when I get new ones.
1.print/set output a val or change it.
2.printf the printf function in c,but not ()
printf "%f\n", $ebp
3.disass show the disassemble code
4.list show the src code
5.up/down change the current function stack frame
6.cond set a condition breakpoint
7.step/next go to next instruction
8.layout (src/asm/split) : show the src/asm code in a window,this command make the gdb look like a real on-line debugger

posted on 2009-12-04 21:42  xueliangliu  阅读(160)  评论(0编辑  收藏  举报

导航