Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

vul_debug.h File Reference


Detailed Description

Author:
Ian Scott

Definition in file vul_debug.h.

#include <vcl_config_compiler.h>

Go to the source code of this file.

Classes

class  vul_debug_windows_structured_exception

Functions

void vul_debug_core_dump (const char *filename)
 Dump a core file.
void vul_debug_core_dump_in_windows_se (const char *filename, void *pep)
 Force a core dump whilst inside a Structured Exception Handler in a windows program.
void vul_debug_set_coredump_and_throw_on_windows_se (const char *filename)
 Setup the system to core dump and throw a C++ exception on detection of a Structured Exception.
void vul_debug_set_coredump_and_throw_on_out_of_memory (const char *filename)
 Setup the system to core dump and throw a C++ exception on detection of out of memory.


Function Documentation

void vul_debug_core_dump const char *  filename  ) 
 

Dump a core file.

Parameters:
filename can have up to one "%d" option, which will be given a different index number on each core dump.

Definition at line 183 of file vul_debug.cxx.

void vul_debug_core_dump_in_windows_se const char *  filename,
void *  pep
 

Force a core dump whilst inside a Structured Exception Handler in a windows program.

To get a core dump from a Windows structured exceptions

   void main()
   {
     __try
     {
       // Rest of program
     }
     __except(vul_debug_core_dump2(filename, GetExceptionInformation()))
     {}
   }
   
Parameters:
filename can have up to one "%d" option, which will be given a different index number on each core dump.

void vul_debug_set_coredump_and_throw_on_out_of_memory const char *  filename  ) 
 

Setup the system to core dump and throw a C++ exception on detection of out of memory.

The system will throw vcl_bad_alloc.

Definition at line 230 of file vul_debug.cxx.

void vul_debug_set_coredump_and_throw_on_windows_se const char *  filename  ) 
 

Setup the system to core dump and throw a C++ exception on detection of a Structured Exception.

Exceptions:
vul_debug_windows_structured_exception. 

Definition at line 203 of file vul_debug.cxx.


Generated on Thu Jan 10 14:41:00 2008 for core/vul by  doxygen 1.4.4