Skip to content

Instantly share code, notes, and snippets.

@shamil
Created August 27, 2015 11:10
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 shamil/f7844678ae16f5d41ac0 to your computer and use it in GitHub Desktop.
Save shamil/f7844678ae16f5d41ac0 to your computer and use it in GitHub Desktop.
Viewing stacktrace of running process using GDB

Viewing stacktrace of running process using GDB

to view stacktrace of running process, run

sudo gdb -batch -quiet -nx -ex "backtrace full" -p <PID>

to view stacktrace of running process for all threads, run

sudo gdb -batch -quiet -nx -ex "thread apply all backtrace full" -p <PID>    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment