diff options
| author | TanninOne <seppleviathan@gmx.de> | 2015-12-06 15:03:38 +0100 |
|---|---|---|
| committer | TanninOne <seppleviathan@gmx.de> | 2015-12-06 15:03:38 +0100 |
| commit | eca56079d5625c3ddc908d5e8fc9550ce298b1af (patch) | |
| tree | 4fc3a4f2c56a41d750baab84c392eec09fe6f75f /src/shared/stackdata.cpp | |
| parent | e31cf3f2fd99073d22fdddfdb106a59858e14299 (diff) | |
| parent | ec9c78f8fa49ce960fb708d4a140c44ed3130989 (diff) | |
Merge branch 'master' of https://github.com/ThosRTanner/modorganizer into ThosRTanner-master
Diffstat (limited to 'src/shared/stackdata.cpp')
| -rw-r--r-- | src/shared/stackdata.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/stackdata.cpp b/src/shared/stackdata.cpp index 6c5a0968..b336593a 100644 --- a/src/shared/stackdata.cpp +++ b/src/shared/stackdata.cpp @@ -24,7 +24,7 @@ static void initDbgIfNecess() firstCall = false;
}
if (!::SymInitialize(process, NULL, TRUE)) {
- printf("failed to initialize symbols: %d", ::GetLastError());
+ printf("failed to initialize symbols: %lu", ::GetLastError());
}
initialized.insert(::GetCurrentProcessId());
}
@@ -99,7 +99,8 @@ void StackData::initTrace() { CONTEXT context;
std::memset(&context, 0, sizeof(CONTEXT));
context.ContextFlags = CONTEXT_CONTROL;
-#if BOOST_ARCH_X86_64
+ //Why only for 64 bit?
+#if BOOST_ARCH_X86_64 || defined(__clang__)
::RtlCaptureContext(&context);
#else
__asm
|
