winedbg: Replace wine_dbgstr_longlong with I64 width modifier.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2021-11-26 17:30:28 +01:00 committed by Alexandre Julliard
parent a29a8a317a
commit 07502a0646
4 changed files with 8 additions and 9 deletions

View File

@ -402,8 +402,7 @@ static void break_add_watch(const struct dbg_lvalue* lvalue, BOOL is_write)
{ {
case 4: case 2: case 1: break; case 4: case 2: case 1: break;
default: default:
dbg_printf("Unsupported length (%s) for watch-points, defaulting to 4\n", dbg_printf("Unsupported length (%I64x) for watch-points, defaulting to 4\n", l);
wine_dbgstr_longlong(l));
break; break;
} }
} }
@ -752,8 +751,8 @@ BOOL break_should_continue(ADDRESS64* addr, DWORD code)
case be_xpoint_watch_write: case be_xpoint_watch_write:
dbg_printf("Stopped on watchpoint %d at ", dbg_curr_thread->stopped_xpoint); dbg_printf("Stopped on watchpoint %d at ", dbg_curr_thread->stopped_xpoint);
print_address(addr, TRUE); print_address(addr, TRUE);
dbg_printf(" new value %s\n", dbg_printf(" new value %I64x\n",
wine_dbgstr_longlong(dbg_curr_process->bp[dbg_curr_thread->stopped_xpoint].w.oldval)); dbg_curr_process->bp[dbg_curr_thread->stopped_xpoint].w.oldval);
} }
return FALSE; return FALSE;
} }

View File

@ -1420,7 +1420,7 @@ static enum packet_return packet_read_register(struct gdb_context* gdbctx)
return packet_error; return packet_error;
} }
TRACE("%Iu => %s\n", reg, wine_dbgstr_longlong(cpu_register(gdbctx, &ctx, reg))); TRACE("%Iu => %I64x\n", reg, cpu_register(gdbctx, &ctx, reg));
packet_reply_open(gdbctx); packet_reply_open(gdbctx);
packet_reply_register_hex_to(gdbctx, &ctx, reg); packet_reply_register_hex_to(gdbctx, &ctx, reg);

View File

@ -168,9 +168,9 @@ struct info_modules
static void module_print_info(const struct info_module *module, BOOL is_embedded) static void module_print_info(const struct info_module *module, BOOL is_embedded)
{ {
dbg_printf("%*.*s-%*.*s\t%-16s%s\n", dbg_printf("%*.*I64x-%*.*I64x\t%-16s%s\n",
ADDRWIDTH, ADDRWIDTH, wine_dbgstr_longlong(module->mi.BaseOfImage), ADDRWIDTH, ADDRWIDTH, module->mi.BaseOfImage,
ADDRWIDTH, ADDRWIDTH, wine_dbgstr_longlong(module->mi.BaseOfImage + module->mi.ImageSize), ADDRWIDTH, ADDRWIDTH, module->mi.BaseOfImage + module->mi.ImageSize,
is_embedded ? "\\" : get_symtype_str(&module->mi), module->name); is_embedded ? "\\" : get_symtype_str(&module->mi), module->name);
} }

View File

@ -83,7 +83,7 @@ LONGLONG types_extract_as_longlong(const struct dbg_lvalue* lvalue,
} }
if (size > sizeof(rtn)) if (size > sizeof(rtn))
{ {
WINE_ERR("Size too large (%s)\n", wine_dbgstr_longlong(size)); WINE_ERR("Size too large (%I64x)\n", size);
RaiseException(DEBUG_STATUS_NOT_AN_INTEGER, 0, 0, NULL); RaiseException(DEBUG_STATUS_NOT_AN_INTEGER, 0, 0, NULL);
return rtn; return rtn;
} }