sofa::helper::BackTrace Class Reference

#include <BackTrace.h>


Static Public Member Functions

static void dump ()
 Dump current backtrace to stderr.
static void autodump ()
 Enable dump of backtrace when a signal is received.

Static Protected Member Functions

static void sig (int sig)
 Callback for signals.


Detailed Description

Definition at line 36 of file BackTrace.h.


Member Function Documentation

void sofa::helper::BackTrace::autodump (  )  [static]

Enable dump of backtrace when a signal is received.

Useful to have information about crashes without starting a debugger (as it is not always easy to do, i.e. for parallel/distributed applications). Currently only works on Linux. NOOP on other architectures

Useful to have information about crashes without starting a debugger (as it is not always easy to do, i.e. for parallel/distributed applications). Currently only works on Linux. NOOP on other architectures

Definition at line 115 of file BackTrace.cpp.

References sig().

Referenced by main().

void sofa::helper::BackTrace::dump (  )  [static]

Dump current backtrace to stderr.

Currently only works on Linux. NOOP on other architectures.

Currently only works on Linux. NOOP on other architectures.

Definition at line 51 of file BackTrace.cpp.

Referenced by sig().

void sofa::helper::BackTrace::sig ( int  sig  )  [static, protected]

Callback for signals.

Definition at line 127 of file BackTrace.cpp.

References dump().

Referenced by autodump().


The documentation for this class was generated from the following files:

Generated on Sun Nov 23 04:24:15 2008 for Sofa by  doxygen 1.5.7.1