From 29136be7df3418fc09555eeac5dde6b43106e9be Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 4 Aug 2022 12:48:05 +0930 Subject: 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. --- sim/cr16/interp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sim/cr16') 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); -- cgit v1.1