This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: struct gmon_cg_arc_record


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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]