| 62 | { |
| 63 | public: |
| 64 | typedef enum StackWalkOptions |
| 65 | { |
| 66 | // No addition info will be retrieved |
| 67 | // (only the address is available) |
| 68 | RetrieveNone = 0, |
| 69 | |
| 70 | // Try to get the symbol-name |
| 71 | RetrieveSymbol = 1, |
| 72 | |
| 73 | // Try to get the line for this symbol |
| 74 | RetrieveLine = 2, |
| 75 | |
| 76 | // Try to retrieve the module-infos |
| 77 | RetrieveModuleInfo = 4, |
| 78 | |
| 79 | // Also retrieve the version for the DLL/EXE |
| 80 | RetrieveFileVersion = 8, |
| 81 | |
| 82 | // Contains all the above |
| 83 | RetrieveVerbose = 0xF, |
| 84 | |
| 85 | // Generate a "good" symbol-search-path |
| 86 | SymBuildPath = 0x10, |
| 87 | |
| 88 | // Also use the public Microsoft-Symbol-Server |
| 89 | SymUseSymSrv = 0x20, |
| 90 | |
| 91 | // Contains all the above "Sym"-options |
| 92 | SymAll = 0x30, |
| 93 | |
| 94 | // Contains all options (default) |
| 95 | OptionsAll = 0x3F |
| 96 | } StackWalkOptions; |
| 97 | |
| 98 | StackWalker(int options = OptionsAll, // 'int' is by design, to combine the enum-flags |
| 99 | LPCSTR szSymPath = NULL, |
nothing calls this directly
no outgoing calls
no test coverage detected