|
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
#include <owl/pch.h>#include <windows.h>#include <string>#include <vector>#include <stdio.h>#include <stdlib.h>#include <time.h>#include <crtdbg.h>#include <tchar.h>#include <algorithm>#include "stackwalker.h"#include <imagehlp.h>Go to the source code of this file.
Macros | |
| #define | HASH_ENTRY_REMOVE_AT_FREE |
| #define | ALLOC_HASH_ENTRIES 8192 |
| #define | MAX_ESP_LEN_BUF 0x500 |
| #define | IGNORE_CRT_ALLOC |
| #define | LOG_FILE_MAX_SIZE 1024*128 |
| #define | WITH_IMALLOC_SPY |
| #define | SYMOPT_LOAD_LINES 0x00000010 |
| #define | MAX_EIP_LEN_BUF 4 |
| #define | ALLOC_ENTRY_NOT_FOUND 0xFFFFFFFF |
| #define | nNoMansLandSize 4 |
| #define | pbData(pblock) |
| #define | pHdr(pbData) |
| #define | gle (GetLastError()) |
| #define | lenof(a) |
| #define | MAXNAMELEN 1024 |
| #define | IMGSYMLEN ( sizeof IMAGEHLP_SYMBOL ) |
| #define | TTBUFLEN 8096 |
| #define | MAX_MODULE_NAME32 255 |
| #define | TH32CS_SNAPMODULE 0x00000008 |
Functions | |
| int | InitAllocCheckWN (eAllocCheckOutput eOutput, LPCTSTR pszFileName, ULONG ulShowStackAtAlloc) |
| int | InitAllocCheck (eAllocCheckOutput eOutput, BOOL bSetUnhandledExeptionFilter, ULONG ulShowStackAtAlloc) |
| ULONG | DeInitAllocCheck (void) |
| DWORD | StackwalkFilter (EXCEPTION_POINTERS *ep, DWORD status, LPCTSTR pszLogFile) |
| #define ALLOC_ENTRY_NOT_FOUND 0xFFFFFFFF |
Definition at line 278 of file Stackwalker.cpp.
| #define ALLOC_HASH_ENTRIES 8192 |
Definition at line 58 of file Stackwalker.cpp.
| #define gle (GetLastError()) |
Definition at line 1254 of file Stackwalker.cpp.
| #define HASH_ENTRY_REMOVE_AT_FREE |
Definition at line 44 of file Stackwalker.cpp.
| #define IGNORE_CRT_ALLOC |
Definition at line 66 of file Stackwalker.cpp.
| #define IMGSYMLEN ( sizeof IMAGEHLP_SYMBOL ) |
Definition at line 1257 of file Stackwalker.cpp.
| #define lenof | ( | a | ) |
Definition at line 1255 of file Stackwalker.cpp.
| #define LOG_FILE_MAX_SIZE 1024*128 |
Definition at line 69 of file Stackwalker.cpp.
| #define MAX_EIP_LEN_BUF 4 |
Definition at line 276 of file Stackwalker.cpp.
| #define MAX_ESP_LEN_BUF 0x500 |
Definition at line 62 of file Stackwalker.cpp.
| #define MAX_MODULE_NAME32 255 |
Definition at line 1333 of file Stackwalker.cpp.
| #define MAXNAMELEN 1024 |
Definition at line 1256 of file Stackwalker.cpp.
| #define nNoMansLandSize 4 |
Definition at line 1009 of file Stackwalker.cpp.
| #define pbData | ( | pblock | ) |
Definition at line 1038 of file Stackwalker.cpp.
| #define pHdr | ( | pbData | ) |
Definition at line 1039 of file Stackwalker.cpp.
| #define SYMOPT_LOAD_LINES 0x00000010 |
Definition at line 220 of file Stackwalker.cpp.
| #define TH32CS_SNAPMODULE 0x00000008 |
Definition at line 1334 of file Stackwalker.cpp.
| #define TTBUFLEN 8096 |
Definition at line 1258 of file Stackwalker.cpp.
| #define WITH_IMALLOC_SPY |
Definition at line 72 of file Stackwalker.cpp.
| ULONG DeInitAllocCheck | ( | void | ) |
Definition at line 2177 of file Stackwalker.cpp.
References DeInitAllocCheck().
| int InitAllocCheck | ( | eAllocCheckOutput | eOutput, |
| BOOL | bSetUnhandledExeptionFilter, | ||
| ULONG | ulShowStackAtAlloc ) |
Definition at line 2138 of file Stackwalker.cpp.
References _MAX_PATH, _T, _tcscat, _tcscpy, ACOutput_XML, InitAllocCheck(), and InitAllocCheckWN().
| int InitAllocCheckWN | ( | eAllocCheckOutput | eOutput, |
| LPCTSTR | pszFileName, | ||
| ULONG | ulShowStackAtAlloc ) |
Definition at line 2099 of file Stackwalker.cpp.
References _T, and InitAllocCheckWN().
| DWORD StackwalkFilter | ( | EXCEPTION_POINTERS * | ep, |
| DWORD | status, | ||
| LPCTSTR | pszLogFile ) |
Definition at line 2245 of file Stackwalker.cpp.
References _T, _tcscat, _tcscpy, _tfopen, ACOutput_XML, LOG_FILE_MAX_SIZE, MAX_PATH, and StackwalkFilter().