X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gprof%2Fgprof.h;h=c1b91ad355ccfbc7e08d7b483058c66794615354;hb=73fbbeead4ad2f978769a43cd9582ef1104f6732;hp=d10f50c396a887c4b44c8a9747d6d3be31134f1e;hpb=9d65137307d0efc6f2623614747ffc30b4ef26eb;p=deliverable%2Fbinutils-gdb.git diff --git a/gprof/gprof.h b/gprof/gprof.h index d10f50c396..c1b91ad355 100644 --- a/gprof/gprof.h +++ b/gprof/gprof.h @@ -19,10 +19,14 @@ * @(#)gprof.h 5.9 (Berkeley) 6/1/90 */ +#include #include "sysdep.h" #include "bfd.h" #include "gmon.h" +/* AIX defines hz as a macro. */ +#undef hz + #ifdef MACHINE_H # include MACHINE_H #else @@ -55,7 +59,7 @@ typedef int bool; */ long hz; -typedef unsigned short UNIT; /* unit of profiling */ +typedef unsigned char UNIT[2]; /* unit of profiling */ char *a_outname; #define A_OUTNAME "a.out" @@ -143,6 +147,13 @@ struct hdr { int ncnt; }; + +struct rawhdr { + char lowpc[4]; + char highpc[4]; + char ncnt[4]; +}; + struct hdr h; int debug; @@ -151,7 +162,7 @@ int debug; * Each discretized pc sample has * a count of the number of samples in its range */ -UNIT *samples; +int *samples; unsigned long s_lowpc; /* lowpc from the profile file */ unsigned long s_highpc; /* highpc from the profile file */