Commit 316ad76a authored by Ralf Habacker's avatar Ralf Habacker Committed by Simon McVittie

sysdeps-win: Print word-size-dependent offset correctly

AddrPC.Offset is the same size as a pointer, but previously
we printed it as though it was the same size as a long,
which is 32 bits on 64-bit Windows.
Reviewed-by: Simon McVittie's avatarSimon McVittie <>
(cherry picked from commit 577813cf)
parent cface8bb
......@@ -2556,7 +2556,7 @@ static void dump_backtrace_for_thread (HANDLE hThread)
DPRINTF ("%3d %s", i++, pSymbol->Name);
DPRINTF ("%3d 0x%lx", i++, sf.AddrPC.Offset);
DPRINTF ("%3d 0x%Ix", i++, sf.AddrPC.Offset);
line.SizeOfStruct = sizeof(IMAGEHLP_LINE);
if (SymGetLineFromAddr (GetCurrentProcess (), sf.AddrPC.Offset, &dwDisplacement, &line))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment