|
CPN
Computational Process Networks
|
functino for printing out a stack trace lookup the backtrace etc. in the man pages. More...
#include "common_priv.h"#include <cpn/utils/StackTrace.h>#include <execinfo.h>#include <cstdlib>#include <cstdio>#include <sstream>
Include dependency graph for StackTrace.cc:Go to the source code of this file.
Functions | |
| void | PrintStack () |
| std::string | GetStack (unsigned ignore) |
functino for printing out a stack trace lookup the backtrace etc. in the man pages.
Definition in file StackTrace.cc.
| 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