break sum | Set breakpoint at entry to function sum |
break *0x8048394 | Set breakpoint at address 0x8048394 |
delete 1 | Delete breakpoint 1 |
delete | Delete all breakpoint |
stepi | Execute 1 instruction |
stepi 4 | Execute four instructions |
nexti | Like stepi, but proceed through function calls |
continue | Resume execution |
disas | Disassemble current function |
disas sum | Disassemble function sum |
disas 0x400544 | Disassemble function arounad address 0x400544 |
disas 0x400540, 0x40054d | Disassemble code within specified address range |
print /x $eip print /x $rip | Print program counter in hex |
print $eax | Print contents of %eax in decimal |
print /x $eax | Print contents of %eax in hex |
print /t $eax | Print contents of %eax in binary |
print 0x100 | Print decimal representation of 0x100 |
print /x 555 | Print hex representation of 555 |
print /x ($ebp + 8) | Print contents of %ebp plus 8 in hex |
print *(int *) 0xfff076b0 | Print integer at address 0xfff076b0 |
print *(int *) ($ebp + 8) | Print integer at address %ebp + 8 |
x/2w 0xfff076b0 | Examine 2 words (4 bytes) starting at address 0xfff076b0 |
x/20b sum | Examine first 20 bytes of function sum |
info frame | Information about the current stack frame |
info registers | Values of all the registers |