From fd819b09194b182e1429536454f8a80a423aaf1b Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 3 Mar 2016 17:29:48 +0100 Subject: Core/Debugging: Make abort() less bad on windows by forcing crash log generation (cherry picked from commit dea7d429abe5143672154784f93e4b19020062d5) # Conflicts: # src/server/bnetserver/Main.cpp --- src/common/Debugging/Errors.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/common/Debugging/Errors.cpp') diff --git a/src/common/Debugging/Errors.cpp b/src/common/Debugging/Errors.cpp index 1ec66ff6d59..749cdec2742 100644 --- a/src/common/Debugging/Errors.cpp +++ b/src/common/Debugging/Errors.cpp @@ -96,4 +96,11 @@ void Abort(char const* file, int line, char const* function) exit(1); } +void AbortHandler(int sigval) +{ + // nothing useful to log here, no way to pass args + *((volatile int*)NULL) = 0; + exit(1); +} + } // namespace Trinity -- cgit v1.2.3