summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-07-11 07:56:23 +0000
committerAndrew Cagney <cagney@redhat.com>2000-07-11 07:56:23 +0000
commit8bbf0f4ba825d004c66fd69cb34cec63318cbab3 (patch)
tree68ca9ce61182824b8e1112efeb3d198d82fabab0
parent73febefd250e76f9183638036d70381e43130fea (diff)
downloadgdb-8bbf0f4ba825d004c66fd69cb34cec63318cbab3.tar.gz
* symtab.c: Use paddr_nz() to print addresses.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/symtab.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fb767fd9202..738ed615b93 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jul 11 17:50:31 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * symtab.c: Use paddr_nz() to print addresses.
+
Tue Jul 11 12:52:31 2000 Andrew Cagney <cagney@b1.cygnus.com>
* value.h (read_register, read_signed_register): Change return
diff --git a/gdb/symtab.c b/gdb/symtab.c
index fd9c150affa..4e15cbcb35c 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -1472,10 +1472,9 @@ find_pc_sect_symtab (pc, section)
/* Might want to error() here (in case symtab is corrupt and
will cause a core dump), but maybe we can successfully
continue, so let's not. */
- /* FIXME-32x64: assumes pc fits in a long */
warning ("\
-(Internal error: pc 0x%lx in read in psymtab, but not in symtab.)\n",
- (unsigned long) pc);
+(Internal error: pc 0x%s in read in psymtab, but not in symtab.)\n",
+ paddr_nz (pc));
s = PSYMTAB_TO_SYMTAB (ps);
}
return (s);