Commit 5fc54e32 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Use debuggee's bitness for 'examine /a' command.

Also fixes stack dump in crash summary and 'info stack' command. (We were using debugger's bitness instead). Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com>
parent ad21db2e
......@@ -248,13 +248,13 @@ void memory_examine(const struct dbg_lvalue *lvalue, int count, char format)
case 'd': DO_DUMP(unsigned int, 4, " %4.4d"); break;
case 'w': DO_DUMP(unsigned short, 8, " %04x"); break;
case 'a':
if (sizeof(DWORD_PTR) == 4)
if (ADDRSIZE == 4)
{
DO_DUMP(DWORD_PTR, 4, " %8.8Ix");
DO_DUMP(DWORD, 4, " %8.8lx");
}
else
{
DO_DUMP(DWORD_PTR, 2, " %16.16Ix");
DO_DUMP(DWORD64, 2, " %16.16I64x");
}
break;
case 'c': DO_DUMP2(char, 32, " %c", (_v < 0x20) ? ' ' : _v); break;
......
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