HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_StackTrace Class Reference

Helper class to output stack traces from the current execution point. More...

#include <UT_StackTrace.h>

Public Member Functions

 UT_StackTrace (FILE *output=stderr)
 
void doTraceback (UTsignalHandlerArg sig_arg, const char *label=0, bool add_markers=false)
 
void doTraceback (const char *label=0, bool add_markers=false)
 
void doCondTraceback (const char *symbol, const char *label=0, bool add_markers=false)
 
void doTracebackIntoBuffer (UT_WorkBuffer &result, UTsignalHandlerArg sig_arg, const char *label=0, bool add_markers=false)
 
void doTracebackIntoBuffer (UT_WorkBuffer &result, const char *label=0, bool add_markers=false)
 
bool getSymbolNameAtAddress (const void *address, UT_WorkBuffer &result)
 
void setShowPC (bool state)
 
void setVerbose (bool state)
 
void setTraceAllThreads (bool state)
 
void setMaxStackLevel (int level)
 

Static Public Member Functions

static void enableTraceBacks (bool state)
 
static void enableCondTrace (const char *symbol, bool enable)
 

Detailed Description

Helper class to output stack traces from the current execution point.

Definition at line 47 of file UT_StackTrace.h.

Constructor & Destructor Documentation

UT_StackTrace::UT_StackTrace ( FILE *  output = stderr)
explicit

Member Function Documentation

void UT_StackTrace::doCondTraceback ( const char *  symbol,
const char *  label = 0,
bool  add_markers = false 
)
void UT_StackTrace::doTraceback ( UTsignalHandlerArg  sig_arg,
const char *  label = 0,
bool  add_markers = false 
)
void UT_StackTrace::doTraceback ( const char *  label = 0,
bool  add_markers = false 
)
void UT_StackTrace::doTracebackIntoBuffer ( UT_WorkBuffer result,
UTsignalHandlerArg  sig_arg,
const char *  label = 0,
bool  add_markers = false 
)
void UT_StackTrace::doTracebackIntoBuffer ( UT_WorkBuffer result,
const char *  label = 0,
bool  add_markers = false 
)
static void UT_StackTrace::enableCondTrace ( const char *  symbol,
bool  enable 
)
static
static void UT_StackTrace::enableTraceBacks ( bool  state)
inlinestatic

Definition at line 102 of file UT_StackTrace.h.

bool UT_StackTrace::getSymbolNameAtAddress ( const void address,
UT_WorkBuffer result 
)
void UT_StackTrace::setMaxStackLevel ( int  level)
inline

Definition at line 94 of file UT_StackTrace.h.

void UT_StackTrace::setShowPC ( bool  state)
inline

Definition at line 75 of file UT_StackTrace.h.

void UT_StackTrace::setTraceAllThreads ( bool  state)
inline

Definition at line 85 of file UT_StackTrace.h.

void UT_StackTrace::setVerbose ( bool  state)
inline

Definition at line 79 of file UT_StackTrace.h.


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