summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/StackTrace.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2017-06-19 11:05:19 +0200
committerGitHub <noreply@github.com>2017-06-19 11:05:19 +0200
commit7ac3b0fa0b22cb531667995099afd5eea8607884 (patch)
tree79634067fdfd779cf8a5409d9f04279ee7cfdb93 /src/OSSupport/StackTrace.cpp
parentNetworkSingleton: Fixed an object leak upon termination. (diff)
downloadcuberite-7ac3b0fa0b22cb531667995099afd5eea8607884.tar
cuberite-7ac3b0fa0b22cb531667995099afd5eea8607884.tar.gz
cuberite-7ac3b0fa0b22cb531667995099afd5eea8607884.tar.bz2
cuberite-7ac3b0fa0b22cb531667995099afd5eea8607884.tar.lz
cuberite-7ac3b0fa0b22cb531667995099afd5eea8607884.tar.xz
cuberite-7ac3b0fa0b22cb531667995099afd5eea8607884.tar.zst
cuberite-7ac3b0fa0b22cb531667995099afd5eea8607884.zip
Diffstat (limited to 'src/OSSupport/StackTrace.cpp')
-rw-r--r--src/OSSupport/StackTrace.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/OSSupport/StackTrace.cpp b/src/OSSupport/StackTrace.cpp
index c84e2cbca..b8f80f5f3 100644
--- a/src/OSSupport/StackTrace.cpp
+++ b/src/OSSupport/StackTrace.cpp
@@ -6,7 +6,7 @@
#include "Globals.h"
#include "StackTrace.h"
#ifdef _WIN32
- #include "../StackWalker.h"
+ #include "WinStackWalker.h"
#elif !defined(ANDROID) // The Android NDK has no execinfo header
#ifdef __GLIBC__
#include <execinfo.h>
@@ -21,10 +21,8 @@
void PrintStackTrace(void)
{
#ifdef _WIN32
- // Reuse the StackWalker from the LeakFinder project already bound to MCS
- // Define a subclass of the StackWalker that outputs everything to stdout
- class PrintingStackWalker :
- public StackWalker
+ class PrintingStackWalker:
+ public WinStackWalker
{
virtual void OnOutput(LPCSTR szText) override
{