Commit aa25fcde authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

winedbg: Print parameter values in backtraces in hex.

parent 3d18a77a
...@@ -338,6 +338,20 @@ static void dbg_print_longlong(LONGLONG sv, BOOL is_signed) ...@@ -338,6 +338,20 @@ static void dbg_print_longlong(LONGLONG sv, BOOL is_signed)
dbg_printf("%s", ptr); dbg_printf("%s", ptr);
} }
static void dbg_print_hex(ULONGLONG sv)
{
if (!sv)
{
dbg_printf("0");
return;
}
if (sv >> 32)
dbg_printf("0x%lx%08lx", (unsigned long)(sv >> 32), (unsigned long)sv);
else
dbg_printf("0x%04lx", (unsigned long)sv);
}
static void print_typed_basic(const struct dbg_lvalue* lvalue) static void print_typed_basic(const struct dbg_lvalue* lvalue)
{ {
LONGLONG val_int; LONGLONG val_int;
...@@ -367,12 +381,12 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue) ...@@ -367,12 +381,12 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue)
case btLong: case btLong:
if (!be_cpu->fetch_integer(lvalue, size, TRUE, &val_int)) return; if (!be_cpu->fetch_integer(lvalue, size, TRUE, &val_int)) return;
if (size == 1) goto print_char; if (size == 1) goto print_char;
dbg_print_longlong(val_int, TRUE); dbg_print_hex(val_int);
break; break;
case btUInt: case btUInt:
case btULong: case btULong:
if (!be_cpu->fetch_integer(lvalue, size, FALSE, &val_int)) return; if (!be_cpu->fetch_integer(lvalue, size, FALSE, &val_int)) return;
dbg_print_longlong(val_int, FALSE); dbg_print_hex(val_int);
break; break;
case btFloat: case btFloat:
if (!be_cpu->fetch_float(lvalue, size, &val_real)) return; if (!be_cpu->fetch_float(lvalue, size, &val_real)) return;
......
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