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 /gdb | |
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 'gdb')
-rw-r--r-- | gdb/windows-tdep.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gdb/windows-tdep.c b/gdb/windows-tdep.c index a34ac5e..702af65 100644 --- a/gdb/windows-tdep.c +++ b/gdb/windows-tdep.c @@ -1007,10 +1007,11 @@ is_linked_with_cygwin_dll (bfd *abfd) || import_table_va >= idata_section_end_va) { warning (_("\ -%s: import table's virtual address (0x%" BFD_VMA_FMT "x) is outside .idata \ -section's range [0x%" BFD_VMA_FMT "x, 0x%" BFD_VMA_FMT "x[."), - bfd_get_filename (abfd), import_table_va, idata_section_va, - idata_section_end_va); +%s: import table's virtual address (%s) is outside .idata \ +section's range [%s, %s]."), + bfd_get_filename (abfd), hex_string (import_table_va), + hex_string (idata_section_va), + hex_string (idata_section_end_va)); return false; } @@ -1057,10 +1058,11 @@ section's range [0x%" BFD_VMA_FMT "x, 0x%" BFD_VMA_FMT "x[."), if (name_va < idata_section_va || name_va >= idata_section_end_va) { warning (_("\ -%s: name's virtual address (0x%" BFD_VMA_FMT "x) is outside .idata section's \ -range [0x%" BFD_VMA_FMT "x, 0x%" BFD_VMA_FMT "x[."), - bfd_get_filename (abfd), name_va, idata_section_va, - idata_section_end_va); +%s: name's virtual address (%s) is outside .idata section's \ +range [%s, %s]."), + bfd_get_filename (abfd), hex_string (name_va), + hex_string (idata_section_va), + hex_string (idata_section_end_va)); break; } |