This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: struct gmon_cg_arc_record
- To: Jes Sorensen <jes at linuxcare dot com>
- Subject: Re: struct gmon_cg_arc_record
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Wed, 15 Nov 2000 14:22:10 +1100 (EST)
- cc: Ulrich Drepper <drepper at cygnus dot com>, libc-hacker at sourceware dot cygnus dot com, binutils at sourceware dot cygnus dot com
On 14 Nov 2000, Jes Sorensen wrote:
> 2000-11-14 Jes Sorensen <jes@linuxcare.com>
>
> * gmon.h: Make definitions of low_pc, high_pc, from_pc, self_pc
> sizeof(char *) to work on 64 bit architectures and not just the
> Alpha which was special cased.
>
> * gmon_out.h (struct gmon_cg_arc_record): count element should be
> 64 bit on 64 bit architectures under Linux to match glibc-2.2.
Hi Jes,
This needs a few more tweaks. Changing the size of the count fields,
requires modifications to gmon_io.c and call_graph.c to suit.
If you're interested in fixing gprof properly, it would be nice to avoid
horrible hacks like "sizeof (char *)" too, as that kills any cross target
where host pointer size differs from target pointer size. Of course,
gprof already uses this hack elsewhere, so you'd have a little more work
on your plate...
Alan Modra
--
Linuxcare. Support for the Revolution.