Don't use BFD_VMA_FMT in gdb and sim

Like commit b82817674f, this replaces BFD_VMA_FMT "x" in sim/ with
PRIx64 and casts to promote bfd_vma to uint64_t.  The one file using
BFD_VMA_FMT in gdb/ instead now uses hex_string, and a typo in the
warning message is fixed.
This commit is contained in:
Alan Modra
2022-08-04 12:48:05 +09:30
parent 99c9026904
commit 29136be7df
10 changed files with 58 additions and 54 deletions

View File

@ -1171,8 +1171,8 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
start_address = 0xffc0 << 2;
#ifdef DEBUG
if (d10v_debug)
sim_io_printf (sd, "sim_create_inferior: PC=0x%" BFD_VMA_FMT "x\n",
start_address);
sim_io_printf (sd, "sim_create_inferior: PC=0x%" PRIx64 "\n",
(uint64_t) start_address);
#endif
{
SIM_CPU *cpu = STATE_CPU (sd, 0);