Skip to content

Instantly share code, notes, and snippets.

@drrost
Created September 14, 2020 14:10
Show Gist options
  • Save drrost/348334b385662fb7dfd0005b223d3a0c to your computer and use it in GitHub Desktop.
Save drrost/348334b385662fb7dfd0005b223d3a0c to your computer and use it in GitHub Desktop.
void *callstack[128]; // 1
int frames = backtrace(callstack, 128); // 2
char **strs = backtrace_symbols(callstack, frames); // 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment