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

@@ -99,8 +99,8 @@ m32c_load (bfd * prog)
base = bfd_section_lma (s);
if (verbose)
fprintf (stderr, "[load a=%08" BFD_VMA_FMT "x s=%08x %s]\n",
base, (int) size, bfd_section_name (s));
fprintf (stderr, "[load a=%08" PRIx64 " s=%08x %s]\n",
(uint64_t) base, (int) size, bfd_section_name (s));
buf = (char *) malloc (size);
bfd_get_section_contents (prog, s, buf, 0, size);
mem_put_blk (base, buf, size);