Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::GDBCrashHandler Class Reference

#include <elm/debug/GDBCrashHandler.h>

+ Inheritance diagram for elm::GDBCrashHandler:

Static Public Attributes

static GDBCrashHandler DEFAULT
 
- Static Public Attributes inherited from elm::CrashHandler
static const t::uint32 DEBUG = 0x01
 
static const t::uint32 INT = 0x02
 
static CrashHandler DEFAULT
 

Protected Member Functions

virtual void handle (void)
 
- Protected Member Functions inherited from elm::CrashHandler
 CrashHandler (void)
 
virtual ~CrashHandler (void)
 

Additional Inherited Members

- Public Types inherited from elm::CrashHandler
typedef t::uint32 mode_t
 
- Public Member Functions inherited from elm::CrashHandler
virtual void setup (void)
 
virtual void cleanup (void)
 
- Static Public Member Functions inherited from elm::CrashHandler
static void set (CrashHandler *handler, mode_t mode)
 
static CrashHandlerget (void)
 
static mode_t mode (void)
 
static void crash (void)
 

Detailed Description

This crash handler calls GDB to debug the current program.

This handler performs only if the ELM_DEBUG environment variable is set to yes.

Warning
It is only compiled if GDB is available and if /proc filesystem is available.

Member Function Documentation

void elm::GDBCrashHandler::handle ( void  )
protectedvirtual

This function is called when a crash need to be handled.

Reimplemented from elm::CrashHandler.

References elm::CrashHandler::cleanup(), and elm::io::out.

Member Data Documentation

GDBCrashHandler elm::GDBCrashHandler::DEFAULT
static

Default handler for GDB.


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