Free Electron
Macros | Functions
backtrace.cc File Reference
#include <platform/platform.pmh>

Macros

#define FE_BACKTRACE_GDB   (FE_CODEGEN<=FE_DEBUG)
 
#define FE_BATCH_GDB   FALSE
 

Functions

fe::String feGenerateBacktrace (U32 skip)
 Get the program stack. More...
 
void feLogBacktrace (U32 skip)
 Dump the program stack. More...
 
void feAttachDebugger (void)
 Start debugger if env FE_SEGV_ATTACH is 1. More...
 
void feRegisterSegvHandler (void)
 Register a built-in handler for SIGSEGV. More...
 

Function Documentation

◆ feAttachDebugger()

void feAttachDebugger ( void  )

Start debugger if env FE_SEGV_ATTACH is 1.

◆ feGenerateBacktrace()

fe::String feGenerateBacktrace ( U32  skip = 2)

Get the program stack.

The default skip of 2 will hide the calls to feSegvHandler and feLogBacktrace.

◆ feLogBacktrace()

void feLogBacktrace ( U32  skip)

Dump the program stack.

◆ feRegisterSegvHandler()

void feRegisterSegvHandler ( void  )

Register a built-in handler for SIGSEGV.

References fe::System::getVerbose().