Go to the source code of this file.
Macros | |
#define | MI_SIZE_V1 584 |
#define | MI_SIZE_V2 1664 |
#define | MI_SIZE_V3 1672 |
#define | PRIxx64 "#.16I64x" |
#define | PRIxx32 "#.8I32x" |
#define | PRIxx PRIxx32 |
#define | WORDxx(x) ((DWORD32)(x)) |
#define | CRASH_TITLE PRODUCT " Unhandled Exception" |
#define | LL(x) |
#define | GPA(x, y) |
Typedefs | |
typedef DWORD(WINAPI * | SETSYMOPTIONS) (DWORD) |
typedef BOOL(WINAPI * | SYMGETMODULEINFO64) (HANDLE, DWORD64, PIMAGEHLP_MODULE64) |
typedef BOOL(WINAPI * | SYMINITIALIZE) (HANDLE, PSTR, BOOL) |
typedef BOOL(WINAPI * | SYMCLEANUP) (HANDLE) |
typedef BOOL(WINAPI * | ENUMERATELOADEDMODULES64) (HANDLE, PENUMLOADED_MODULES_CALLBACK64, PVOID) |
typedef BOOL(WINAPI * | STACKWALK64) (DWORD, HANDLE, HANDLE, LPSTACKFRAME64, PVOID, PREAD_PROCESS_MEMORY_ROUTINE64, PFUNCTION_TABLE_ACCESS_ROUTINE64, PGET_MODULE_BASE_ROUTINE64, PTRANSLATE_ADDRESS_ROUTINE64) |
typedef BOOL(WINAPI * | SYMFROMADDR) (HANDLE, DWORD64, PDWORD64, PSYMBOL_INFO) |
typedef PVOID(WINAPI * | SYMFUNCTIONTABLEACCESS64) (HANDLE, DWORD64) |
typedef DWORD64(WINAPI * | SYMGETMODULEBASE64) (HANDLE, DWORD64) |
typedef BOOL(WINAPI * | GETFILEVERSIONINFOA) (LPCSTR, DWORD, DWORD, PVOID) |
typedef BOOL(WINAPI * | VERQUERYVALUEA) (const LPVOID, LPSTR, LPVOID *, PUINT) |
typedef HINSTANCE(WINAPI * | SHELLEXECUTEA) (HWND, LPCSTR, LPCSTR, LPCSTR, LPCSTR, INT) |
Functions | |
STATIC VOID | write_report (LPCTSTR fmt,...) |
STATIC BOOL CALLBACK | enum_modules_callback (PCSTR ModuleName, DWORD64 ModuleBase, ULONG ModuleSize, PVOID UserContext) |
LONG WINAPI | Sys_ExceptionFilter (LPEXCEPTION_POINTERS exceptionInfo) |
#define GPA | ( | x, | |
y | |||
) |
#define LL | ( | x | ) |
typedef BOOL(WINAPI * ENUMERATELOADEDMODULES64) (HANDLE, PENUMLOADED_MODULES_CALLBACK64, PVOID) |
typedef BOOL(WINAPI * GETFILEVERSIONINFOA) (LPCSTR, DWORD, DWORD, PVOID) |
typedef HINSTANCE(WINAPI * SHELLEXECUTEA) (HWND, LPCSTR, LPCSTR, LPCSTR, LPCSTR, INT) |
typedef BOOL(WINAPI * STACKWALK64) (DWORD, HANDLE, HANDLE, LPSTACKFRAME64, PVOID, PREAD_PROCESS_MEMORY_ROUTINE64, PFUNCTION_TABLE_ACCESS_ROUTINE64, PGET_MODULE_BASE_ROUTINE64, PTRANSLATE_ADDRESS_ROUTINE64) |
typedef BOOL(WINAPI * SYMFROMADDR) (HANDLE, DWORD64, PDWORD64, PSYMBOL_INFO) |
typedef PVOID(WINAPI * SYMFUNCTIONTABLEACCESS64) (HANDLE, DWORD64) |
typedef DWORD64(WINAPI * SYMGETMODULEBASE64) (HANDLE, DWORD64) |
typedef BOOL(WINAPI * SYMGETMODULEINFO64) (HANDLE, DWORD64, PIMAGEHLP_MODULE64) |
typedef BOOL(WINAPI * VERQUERYVALUEA) (const LPVOID, LPSTR, LPVOID *, PUINT) |
STATIC BOOL CALLBACK enum_modules_callback | ( | PCSTR | ModuleName, |
DWORD64 | ModuleBase, | ||
ULONG | ModuleSize, | ||
PVOID | UserContext | ||
) |
LONG WINAPI Sys_ExceptionFilter | ( | LPEXCEPTION_POINTERS | exceptionInfo | ) |
STATIC VOID write_report | ( | LPCTSTR | fmt, |
... | |||
) |
Definition at line 89 of file debug.c.
Referenced by enum_modules_callback(), and Sys_ExceptionFilter().
STATIC HANDLE crashReport |
Definition at line 58 of file debug.c.
Referenced by Sys_ExceptionFilter(), and write_report().
STATIC CHAR faultyModuleName[MAX_PATH] |
Definition at line 59 of file debug.c.
Referenced by enum_modules_callback(), and Sys_ExceptionFilter().
STATIC DWORD moduleInfoSize |
Definition at line 60 of file debug.c.
Referenced by enum_modules_callback(), and Sys_ExceptionFilter().
|
static |
Definition at line 71 of file debug.c.
Referenced by Sys_ExceptionFilter().
STATIC ENUMERATELOADEDMODULES64 pEnumerateLoadedModules64 |
Definition at line 48 of file debug.c.
Referenced by Sys_ExceptionFilter().
STATIC GETFILEVERSIONINFOA pGetFileVersionInfoA |
Definition at line 53 of file debug.c.
Referenced by enum_modules_callback().
STATIC HANDLE processHandle |
Definition at line 57 of file debug.c.
Referenced by enum_modules_callback(), and Sys_ExceptionFilter().
STATIC SHELLEXECUTEA pShellExecuteA |
Definition at line 55 of file debug.c.
Referenced by Sys_ExceptionFilter().
STATIC STACKWALK64 pStackWalk64 |
Definition at line 49 of file debug.c.
Referenced by Sys_ExceptionFilter().
STATIC SYMCLEANUP pSymCleanup |
Definition at line 47 of file debug.c.
Referenced by Sys_ExceptionFilter().
STATIC SYMFROMADDR pSymFromAddr |
Definition at line 50 of file debug.c.
Referenced by Sys_ExceptionFilter().
STATIC SYMFUNCTIONTABLEACCESS64 pSymFunctionTableAccess64 |
Definition at line 51 of file debug.c.
Referenced by Sys_ExceptionFilter().
STATIC SYMGETMODULEBASE64 pSymGetModuleBase64 |
Definition at line 52 of file debug.c.
Referenced by Sys_ExceptionFilter().
STATIC SYMGETMODULEINFO64 pSymGetModuleInfo64 |
Definition at line 45 of file debug.c.
Referenced by enum_modules_callback(), and Sys_ExceptionFilter().
STATIC SYMINITIALIZE pSymInitialize |
Definition at line 46 of file debug.c.
Referenced by Sys_ExceptionFilter().
STATIC SETSYMOPTIONS pSymSetOptions |
Definition at line 44 of file debug.c.
Referenced by Sys_ExceptionFilter().
STATIC VERQUERYVALUEA pVerQueryValueA |
Definition at line 54 of file debug.c.
Referenced by enum_modules_callback().
STATIC HANDLE threadHandle |
Definition at line 57 of file debug.c.
Referenced by Sys_ExceptionFilter().
STATIC CONST DWORD tryModuleSizes[4] |
Definition at line 67 of file debug.c.
Referenced by Sys_ExceptionFilter().