GDB

References for various gdb commands and steps

## Improve readability

set disassembly-flavor intel
## Decompile the main function
disassemble main
## Set a breakpoint at the entereance to the main function

break *main
run
## Step one instruction exactly 
si

## Step one but proceed through subroutine calls.
ni

## The difference is how call is handled. stepi dives into call but nexti runs call
## but doesn't walk through it's code.
## Show the current values loaded in the various registers

info registers
## show the entry point

info files
## Show all of the functions

info functions

## clear breakpoints

delete

Last updated

Was this helpful?