Generate stack trace backs from a caught exception. More...
#include "CxxUtils/SealCommon.h"
#include "CxxUtils/SealDebug.h"
#include <exception>
Go to the source code of this file.
Namespaces | |
namespace | CxxUtils |
Copy the elements of a sequence for which a predicate is true. | |
Functions | |
void | CxxUtils::exctrace (const std::exception &e, IOFD fd=IOFD_INVALID) |
Print out information for the last exception. |
Generate stack trace backs from a caught exception.
If you run with libexctrace_collector.so added to your LD_PRELOAD, then we'll remember the backtrace from the last exception thrown. You can then call CxxUtils::exctrace to print it out. This will behave sensibly if the collector module hasn't been preloaded (just print the exception, with no backtrace).