alpha linux fix for gprof

Brad Lucier lucier@math.purdue.edu
Fri Aug 6 09:14:00 GMT 1999


gprof from binutils.2.9.5.04 was dumping core with glibc2.1.1, kernel 2.2.10,
gcc-2.95 on alpha dumps core.

When building it I got the following message:

../../gprof/corefile.c:728: warning: int format, different type arg (arg 2)

The following change seemed to fix the problem:

RCS file: RCS/corefile.c,v
retrieving revision 1.1
diff -c -r1.1 corefile.c
*** corefile.c  1999/08/06 15:30:23     1.1
--- corefile.c  1999/08/06 15:31:22
***************
*** 724,730 ****
        }
  
        DBG (AOUTDEBUG, printf ("[core_create_line_syms] %d %s 0x%lx\n",
!                             ltab.limit - ltab.base, ltab.limit->name,
                              (unsigned long) ltab.limit->addr));
        ++ltab.limit;
      }
--- 724,730 ----
        }
  
        DBG (AOUTDEBUG, printf ("[core_create_line_syms] %d %s 0x%lx\n",
!                             (long)(ltab.limit - ltab.base), ltab.limit->name,
                              (unsigned long) ltab.limit->addr));
        ++ltab.limit;
      }


Brad Lucier    lucier@math.purdue.edu


More information about the Binutils mailing list