This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/symtab] fix one 32x64
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [patch/symtab] fix one 32x64
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 11 Jul 2000 17:53:12 +1000
FYI,
I've checked in the attatched.
Andrew
? diffs
? new-gdbarch.log
? new-ser-unix.c
? new-gdbarch.h
? new-gdbarch.c
? testsuite/diffs
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.524
diff -p -r1.524 ChangeLog
*** ChangeLog 2000/07/11 05:42:25 1.524
--- ChangeLog 2000/07/11 07:50:59
***************
*** 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
Index: symtab.c
===================================================================
RCS file: /cvs/src/src/gdb/symtab.c,v
retrieving revision 1.8
diff -p -r1.8 symtab.c
*** symtab.c 2000/06/14 00:59:07 1.8
--- symtab.c 2000/07/11 07:51:15
*************** find_pc_sect_symtab (pc, section)
*** 1472,1481 ****
/* 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);
s = PSYMTAB_TO_SYMTAB (ps);
}
return (s);
--- 1472,1480 ----
/* 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. */
warning ("\
! (Internal error: pc 0x%s in read in psymtab, but not in symtab.)\n",
! paddr_nz (pc));
s = PSYMTAB_TO_SYMTAB (ps);
}
return (s);