https://git.reactos.org/?p=reactos.git;a=commitdiff;h=86ced3f237c00a6681423…
commit 86ced3f237c00a66814230ca43e5d4e543db2529
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sun Nov 11 15:39:37 2018 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Nov 11 17:21:16 2018 +0100
[DRWTSN32] Include displacement in stacktrace.
---
base/applications/drwtsn32/stacktrace.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/base/applications/drwtsn32/stacktrace.cpp
b/base/applications/drwtsn32/stacktrace.cpp
index 0dbd5d06f4..cbd9697ed3 100644
--- a/base/applications/drwtsn32/stacktrace.cpp
+++ b/base/applications/drwtsn32/stacktrace.cpp
@@ -98,16 +98,16 @@ void PrintStackBacktrace(FILE* output, DumpData& data,
ThreadData& thread)
memset(sym, '\0', sizeof(*sym) + STACKWALK_MAX_NAMELEN);
sym->SizeOfStruct = sizeof(*sym);
sym->MaxNameLen = STACKWALK_MAX_NAMELEN;
- DWORD64 displacement;
+ DWORD64 displacement = 0;
if (!StackFrame.AddrPC.Offset || !SymFromAddr(data.ProcessHandle,
StackFrame.AddrPC.Offset, &displacement, sym))
strcpy(sym->Name, "<nosymbols>");
- xfprintf(output, "%p %p %p %p %p %p %s!%s" NEWLINE,
+ xfprintf(output, "%p %p %p %p %p %p %s!%s +0x%I64x" NEWLINE,
(ULONG_PTR)StackFrame.AddrFrame.Offset,
(ULONG_PTR)StackFrame.AddrPC.Offset,
(ULONG_PTR)StackFrame.Params[0], (ULONG_PTR)StackFrame.Params[1],
(ULONG_PTR)StackFrame.Params[2], (ULONG_PTR)StackFrame.Params[3],
- Module.ModuleName, sym->Name);
+ Module.ModuleName, sym->Name, displacement);
}
UCHAR stackData[0x10 * 10];