diff options
author | Mark Wielaard <mark@klomp.org> | 2023-08-25 23:09:18 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2023-08-25 23:12:28 +0200 |
commit | 91df9a6f810bca02883dae9275715b4960ea02f0 (patch) | |
tree | 42d9c774f29bd161c91bebf9d21bafa12ab71f70 | |
parent | 58abdf887821a5da09ba184c6e400a3bc5cccd5a (diff) | |
download | gdb-91df9a6f810bca02883dae9275715b4960ea02f0.zip gdb-91df9a6f810bca02883dae9275715b4960ea02f0.tar.gz gdb-91df9a6f810bca02883dae9275715b4960ea02f0.tar.bz2 |
Fix gdb/coffread.c build on 32bit architectures
The getsymname function tries to emit an error using %ld for an
uintptr_t argument. Use PRIxPTR instead. Which works on any architecture
for uintptr_t.
-rw-r--r-- | gdb/coffread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c index ae7632d..c609c96 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -1325,7 +1325,7 @@ getsymname (struct internal_syment *symbol_entry) if (symbol_entry->_n._n_n._n_zeroes == 0) { if (symbol_entry->_n._n_n._n_offset > stringtab_length) - error (_("COFF Error: string table offset (%ld) outside string table (length %ld)"), + error (_("COFF Error: string table offset (%" PRIxPTR ") outside string table (length %ld)"), symbol_entry->_n._n_n._n_offset, stringtab_length); result = stringtab + symbol_entry->_n._n_n._n_offset; } |