struct gmon_cg_arc_record

Alan Modra alan@linuxcare.com.au
Tue Nov 14 19:22:00 GMT 2000


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.





More information about the Binutils mailing list