OSDN Git Service

* symtab.c: Use paddr_nz() to print addresses.
authorAndrew Cagney <cagney@redhat.com>
Tue, 11 Jul 2000 07:56:23 +0000 (07:56 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 11 Jul 2000 07:56:23 +0000 (07:56 +0000)
gdb/ChangeLog
gdb/symtab.c

index fb767fd..738ed61 100644 (file)
@@ -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 fd9c150..4e15cbc 100644 (file)
@@ -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);