mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-08 06:48:01 +02:00
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 <smcv@collabora.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=105662
This commit is contained in:
parent
18d4ff6644
commit
577813cf3a
1 changed files with 1 additions and 1 deletions
|
|
@ -2659,7 +2659,7 @@ static void dump_backtrace_for_thread (HANDLE hThread)
|
|||
DPRINTF ("%3d %s", i++, pSymbol->Name);
|
||||
}
|
||||
else
|
||||
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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue