aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
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
commitd730266bb0c67c82fd60fd1998bdcba2e1b5bb1c (patch)
tree6663e90ee8dd5b3f0269bfaf52cc3fb8dffcea18 /gdb/symtab.c
parent6d9019e4c003d8676c973ce8f6d65807f5ce8120 (diff)
downloadgdb-d730266bb0c67c82fd60fd1998bdcba2e1b5bb1c.zip
gdb-d730266bb0c67c82fd60fd1998bdcba2e1b5bb1c.tar.gz
gdb-d730266bb0c67c82fd60fd1998bdcba2e1b5bb1c.tar.bz2
* symtab.c: Use paddr_nz() to print addresses.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index fd9c150..4e15cbc 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);