1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/crashrpt.h
3 // Purpose: helpers for the structured exception handling (SEH)
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MSW_SEH_H_
13 #define _WX_MSW_SEH_H_
17 #if wxUSE_ON_FATAL_EXCEPTION
19 // ----------------------------------------------------------------------------
20 // report generation flags
21 // ----------------------------------------------------------------------------
25 // we always report where the crash occured
26 wxCRASH_REPORT_LOCATION
= 0,
28 // if this flag is given, the call stack is dumped
30 // this results in dump/crash report as small as possible, this is the
32 wxCRASH_REPORT_STACK
= 1,
34 // if this flag is given, the values of the local variables are dumped
36 // note that this will result in huge file containing the dump of the
37 // entire process memory space when using mini dumps!
38 wxCRASH_REPORT_LOCALS
= 2,
40 // if this flag is given, the values of all global variables are dumped
42 // this creates a much larger mini dump and also takes more time to
43 // generate if our own crash reporting code is used
44 wxCRASH_REPORT_GLOBALS
= 4
47 // ----------------------------------------------------------------------------
48 // wxCrashReport: this class is used to create crash reports
49 // ----------------------------------------------------------------------------
51 struct WXDLLIMPEXP_BASE wxCrashReport
53 // set the name of the file to which the report is written, it is
54 // constructed from the .exe name by default
55 static void SetFileName(const wxChar
*filename
);
57 // return the current file name
58 static const wxChar
*GetFileName();
60 // write the exception report to the file, return true if it could be done
62 static bool Generate(int flags
= wxCRASH_REPORT_LOCATION
|
63 wxCRASH_REPORT_STACK
);
66 #endif // wxUSE_ON_FATAL_EXCEPTION
68 #endif // _WX_MSW_SEH_H_