forked from Imagelibrary/binutils-gdb
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user