aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-08-04 12:48:05 +0930
committerAlan Modra <amodra@gmail.com>2022-08-06 08:03:16 +0930
commit29136be7df3418fc09555eeac5dde6b43106e9be (patch)
tree5ceeb60bbc9ed5226833523f60444c8ed3e6b641 /sim/erc32
parent99c902690493e35aad16b2083bad34cf79c366bf (diff)
downloadgdb-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/erc32')
-rw-r--r--sim/erc32/func.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/erc32/func.c b/sim/erc32/func.c
index b4f2b42..4d19420 100644
--- a/sim/erc32/func.c
+++ b/sim/erc32/func.c
@@ -1060,8 +1060,8 @@ bfd_load (const char *fname)
section_size = bfd_section_size (section);
if (sis_verbose)
- printf("\nsection %s at 0x%08" BFD_VMA_FMT "x (0x%lx bytes)",
- section_name, section_address, section_size);
+ printf("\nsection %s at 0x%08" PRIx64 " (0x%lx bytes)",
+ section_name, (uint64_t) section_address, section_size);
/* Text, data or lit */
if (bfd_section_flags (section) & SEC_LOAD) {