/cvmfs/atlas.cern.ch/repo/sw/ASG/AnalysisBase/2.4.31/CxxUtils/CxxUtils/exctrace.h File Reference

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.

Detailed Description

Generate stack trace backs from a caught exception.

Author:
scott snyder <snyder@bnl.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).

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1