ATLAS Offline Software
Namespaces | Functions
exctrace.h File Reference

Generate stack trace backs from a caught exception. More...

#include "CxxUtils/SealCommon.h"
#include "CxxUtils/SealDebug.h"
#include "CxxUtils/checker_macros.h"
#include <exception>
Include dependency graph for exctrace.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 CxxUtils
 

Functions

void CxxUtils::exctrace (const std::exception &e, IOFD fd=IOFD_INVALID)
 Print out information for the last exception. More...
 

Detailed Description

Generate stack trace backs from a caught exception.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Date
Oct, 2009 When an exception is caught, we'd sometimes want to dump out the stack at the point where the exception was thrown.

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).

Definition in file exctrace.h.