Skip to content

Instantly share code, notes, and snippets.

@r-lyeh-archived
Last active November 2, 2015 12:25
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 r-lyeh-archived/ee01ec6e43bfbd6a9343 to your computer and use it in GitHub Desktop.
Save r-lyeh-archived/ee01ec6e43bfbd6a9343 to your computer and use it in GitHub Desktop.
cd folder
gdb --args appname [your-args-here]
  • set breakpoints with b function or b file:line or b class:function
  • display stack with bt
  • change stack frame with f N
  • display threads with t number
  • change thread with t N
  • print symbol X with p X
  • type s to step in execution
  • type n to step out execution
  • type c to continue execution
  • type r to run or restart execution
  • type q to quit debugger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment