From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brad Lucier To: binutils@sourceware.cygnus.com, lucier@math.purdue.edu Cc: staff@math.purdue.edu, wilker@math.purdue.edu Subject: Re: alpha linux fix for gprof Date: Fri, 06 Aug 1999 10:00:00 -0000 Message-id: <199908061659.LAA00484@polya.math.purdue.edu> X-SW-Source: 1999-08/msg00040.html > > gprof from binutils.2.9.5.04 was dumping core with glibc2.1.1, kernel 2.2.10, > gcc-2.95. > > 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: > Sorry, I should have been more careful; now it doesn't dump core, but it gives me nonsense answers when trying to profile gcc-2.95. At any rate, the following change gets rid of the error message. =================================================================== 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 16:39:13 *************** *** 723,730 **** discard_underscores = 0; } ! 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; } --- 723,730 ---- discard_underscores = 0; } ! DBG (AOUTDEBUG, printf ("[core_create_line_syms] %ld %s 0x%lx\n", ! (unsigned long)(ltab.limit - ltab.base), ltab.limit->name, (unsigned long) ltab.limit->addr)); ++ltab.limit; } Brad Lucier lucier@math.purdue.edu