diff options
author | Alan Modra <amodra@gmail.com> | 2022-08-04 12:48:05 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-08-06 08:03:16 +0930 |
commit | 29136be7df3418fc09555eeac5dde6b43106e9be (patch) | |
tree | 5ceeb60bbc9ed5226833523f60444c8ed3e6b641 /sim/d10v | |
parent | 99c902690493e35aad16b2083bad34cf79c366bf (diff) | |
download | binutils-29136be7df3418fc09555eeac5dde6b43106e9be.zip binutils-29136be7df3418fc09555eeac5dde6b43106e9be.tar.gz binutils-29136be7df3418fc09555eeac5dde6b43106e9be.tar.bz2 |
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.
Diffstat (limited to 'sim/d10v')
-rw-r--r-- | sim/d10v/interp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c index 5716a10..fde96aa 100644 --- a/sim/d10v/interp.c +++ b/sim/d10v/interp.c @@ -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); |