diff options
author | Emma Miler <emma.pi@protonmail.com> | 2022-11-14 01:05:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 00:05:57 +0000 |
commit | 2139e0ec6d95ed7c5f673b53dec71f39a013dd93 (patch) | |
tree | 75bcf71b30f245f46f703f23c3ba46c5097073ea /NorthstarDLL/crashhandler.h | |
parent | 02a473ed10475b5560b3d8100f179a31a487893e (diff) | |
download | NorthstarLauncher-2139e0ec6d95ed7c5f673b53dec71f39a013dd93.tar.gz NorthstarLauncher-2139e0ec6d95ed7c5f673b53dec71f39a013dd93.zip |
New crashhandler (#325)
* New crashhandler
* Formatting
* Add version number to crash log
* Fix Xmm dumping
* Update crashhandler.cpp
* Fix formatting
* Moved to using reinterpret_cast and foreground messagebox
* Update crashhandler.cpp
Diffstat (limited to 'NorthstarDLL/crashhandler.h')
-rw-r--r-- | NorthstarDLL/crashhandler.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/NorthstarDLL/crashhandler.h b/NorthstarDLL/crashhandler.h index e0dc6906..990457cc 100644 --- a/NorthstarDLL/crashhandler.h +++ b/NorthstarDLL/crashhandler.h @@ -2,3 +2,25 @@ void InitialiseCrashHandler(); void RemoveCrashHandler(); + +struct BacktraceModule +{ + std::string name; + std::string relativeAddress; + std::string address; +}; + +struct ExceptionLog +{ + std::string cause; + HMODULE crashedModule; + PEXCEPTION_RECORD exceptionRecord; + PCONTEXT contextRecord; + std::vector<BacktraceModule> trace; + std::vector<std::string> registerDump; + + std::string runtimeInfo; + + int longestModuleNameLength; + int longestRelativeAddressLength; +}; |