This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/common/Thread.cc b/src/common/Thread.cc | |
| index 3e8d343..d46baae 100644 | |
| --- a/src/common/Thread.cc | |
| +++ b/src/common/Thread.cc | |
| @@ -32,6 +32,7 @@ | |
| #ifdef HAVE_SCHED | |
| #include <sched.h> | |
| #endif | |
| +#include <execinfo.h> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # usage: | |
| # | |
| # import this script | |
| # (gdb) python sys.path.insert(0, '<path_to_supertrace.py>'); import supertrace | |
| # or alternatively, import this script by using supertrace.gdb | |
| # $ gdb -x supertrace.gdb <debugee> | |
| # | |
| # then insert some breakpoints ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set pagination off | |
| python | |
| sys.path.insert(0, './') | |
| import supertrace | |
| end |