code::SegFaultHandler Class Reference

List of all members.

Detailed Description

Dumps a backtrace to the console upon a process crash.

Even without a crash, you can use SegFaultHandler to find out where a problem routine is being invoked by calling SegFaultHandler::instance().printStackTrace().

Author:
Lakshman
Version:
Id
code_SegFaultHandler.h,v 1.6 2009/06/02 20:17:40 lakshman Exp


Public Member Functions

void printStackTrace () const
 this method does not use any more memory, so it can be called safely even after a segmentation fault.
void getStackTrace (std::vector< std::string > *stack_trace) const
 WARNING! this function uses memory, so it CAN NOT be called after a bus error or segmentation fault.

Static Public Member Functions

static const SegFaultHandlerinstance ()
 the first time this is called, all the handlers are set up


Member Function Documentation

void code::SegFaultHandler::getStackTrace ( std::vector< std::string > *  stack_trace  )  const

WARNING! this function uses memory, so it CAN NOT be called after a bus error or segmentation fault.

static const SegFaultHandler& code::SegFaultHandler::instance (  )  [static]

the first time this is called, all the handlers are set up

void code::SegFaultHandler::printStackTrace (  )  const

this method does not use any more memory, so it can be called safely even after a segmentation fault.


Generated on Fri May 4 13:40:13 2012 for WDSS-IIw2 by  doxygen 1.4.7