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/cr16 | |
parent | 99c902690493e35aad16b2083bad34cf79c366bf (diff) | |
download | gdb-29136be7df3418fc09555eeac5dde6b43106e9be.zip gdb-29136be7df3418fc09555eeac5dde6b43106e9be.tar.gz gdb-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/cr16')
-rw-r--r-- | sim/cr16/interp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/cr16/interp.c b/sim/cr16/interp.c index 47fb647..b375dad 100644 --- a/sim/cr16/interp.c +++ b/sim/cr16/interp.c @@ -677,8 +677,8 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd, start_address = 0x0; #ifdef DEBUG if (cr16_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); |