Skip to content

Instantly share code, notes, and snippets.

@alifahrri
Last active October 22, 2018 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alifahrri/d8d381a4d1cb062b6d8a5c16be27c080 to your computer and use it in GitHub Desktop.
Save alifahrri/d8d381a4d1cb062b6d8a5c16be27c080 to your computer and use it in GitHub Desktop.

add breakpoint

(gdb) break filename.ext:line

list breakpoint

(gdb) info break

disable breakpoint

(gdb) disable 1 disable breakpoint 1

backtrace function call

(gdb) bt

examining the stack

print current frame

(gdb) frame

goto upper frame

(gdb) up

goto lower frame

(gdb) down

print frame info

(gdb) info frame

print argument of current frame

(gdb) info args

print local var of current frame

(gdb) info locals

where were we?

(gdb) where

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment