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/m32c | |
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/m32c')
-rw-r--r-- | sim/m32c/load.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/m32c/load.c b/sim/m32c/load.c index ce0bddc..9a432d0 100644 --- a/sim/m32c/load.c +++ b/sim/m32c/load.c @@ -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); |