oasys::StackTrace Class Reference

#include <StackTrace.h>

List of all members.


Detailed Description

Definition at line 45 of file StackTrace.h.

Static Public Member Functions

static void print_current_trace (bool in_sighandler)
 Print the current stack trace.
static void print_trace (void *stack[], size_t count)
 Print a stack trace to stderr.
static size_t get_trace (void *stack[], size_t size, u_int sighandler_frame)
 Get a stack trace (architecture-specific).

Static Public Attributes

static const int MAX_STACK_DEPTH = 100
 Maximum levels for a stack trace.


Member Function Documentation

void oasys::StackTrace::print_current_trace ( bool  in_sighandler  )  [static]

Print the current stack trace.

Definition at line 51 of file StackTrace.cc.

References count, get_trace(), MAX_STACK_DEPTH, and print_trace().

Referenced by oasys::FatalSignals::die(), oasys::FatalSignals::handler(), and oasys::SpinLock::lock().

void oasys::StackTrace::print_trace ( void *  stack[],
size_t  count 
) [static]

Print a stack trace to stderr.

Definition at line 67 of file StackTrace.cc.

References info.

Referenced by print_current_trace().

size_t oasys::StackTrace::get_trace ( void *  stack[],
size_t  size,
u_int  sighandler_frame 
) [static]

Get a stack trace (architecture-specific).

Definition at line 107 of file StackTrace.cc.

Referenced by print_current_trace().


Member Data Documentation

const int oasys::StackTrace::MAX_STACK_DEPTH = 100 [static]

Maximum levels for a stack trace.

Definition at line 58 of file StackTrace.h.

Referenced by print_current_trace().


The documentation for this class was generated from the following files:
Generated on Fri Dec 22 14:48:06 2006 for DTN Reference Implementation by  doxygen 1.5.1