* Re: alpha linux fix for gprof
@ 1999-08-06 10:00 Brad Lucier
1999-08-06 11:59 ` Ian Lance Taylor
0 siblings, 1 reply; 3+ messages in thread
From: Brad Lucier @ 1999-08-06 10:00 UTC (permalink / raw)
To: binutils, lucier; +Cc: staff, wilker
>
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: alpha linux fix for gprof
1999-08-06 10:00 alpha linux fix for gprof Brad Lucier
@ 1999-08-06 11:59 ` Ian Lance Taylor
0 siblings, 0 replies; 3+ messages in thread
From: Ian Lance Taylor @ 1999-08-06 11:59 UTC (permalink / raw)
To: lucier; +Cc: binutils, staff, wilker
Date: Fri, 6 Aug 1999 11:59:59 -0500 (EST)
From: Brad Lucier <lucier@math.purdue.edu>
> 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.
Thanks, I checked in this patch.
That only changes a debugging message, though, so I don't see how it
could be at the root of your problem.
Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
* alpha linux fix for gprof
@ 1999-08-06 9:14 Brad Lucier
0 siblings, 0 replies; 3+ messages in thread
From: Brad Lucier @ 1999-08-06 9:14 UTC (permalink / raw)
To: binutils; +Cc: lucier, staff, wilker
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-08-06 11:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-06 10:00 alpha linux fix for gprof Brad Lucier
1999-08-06 11:59 ` Ian Lance Taylor
-- strict thread matches above, loose matches on Subject: below --
1999-08-06 9:14 Brad Lucier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).