|
CPN
Computational Process Networks
|
function for printing out a stack trace Note that we need to pass -rdynamic to the linker to be able to see the function names with these functios. More...
Include dependency graph for StackTrace.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | STACKTRACE_MAXTRACE 100 |
Functions | |
| void | PrintStack () |
| std::string | GetStack (unsigned ignore=0) |
function for printing out a stack trace Note that we need to pass -rdynamic to the linker to be able to see the function names with these functios.
Definition in file StackTrace.h.
| #define STACKTRACE_MAXTRACE 100 |
Definition at line 33 of file StackTrace.h.
Referenced by GetStack(), and PrintStack().
| std::string GetStack | ( | unsigned | ignore = 0 | ) |
Returns a std::string to the stack trace. May fail if out of memory.
| ignore | the number of top stacks to ignore. This is useful because this function is often used in error messages and it is useless garbage to report the stack from the error handler. |
Definition at line 39 of file StackTrace.cc.
References STACKTRACE_MAXTRACE.
Referenced by __ASSERT().
Here is the caller graph for this function:| void PrintStack | ( | ) |
Prints the stack trace to stderr Should work even if we are out of memory
Definition at line 33 of file StackTrace.cc.
References STACKTRACE_MAXTRACE.
1.8.5