diff options
author | Steve Chamberlain <sac@cygnus> | 1993-06-16 19:58:37 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1993-06-16 19:58:37 +0000 |
commit | 73fbbeead4ad2f978769a43cd9582ef1104f6732 (patch) | |
tree | 99a3d4c6b77911d910dcbf5546684617114a385d /gprof/gprof.h | |
parent | 3ef6f6045e6a54551391d308b6be214ce9782bab (diff) | |
download | gdb-73fbbeead4ad2f978769a43cd9582ef1104f6732.zip gdb-73fbbeead4ad2f978769a43cd9582ef1104f6732.tar.gz gdb-73fbbeead4ad2f978769a43cd9582ef1104f6732.tar.bz2 |
* gmon.h, gprof.h: structs of chars used to hold external
representations.
* gprof.c (getpfile, openpfile, readsamples): Swap data in using
new structures.
Diffstat (limited to 'gprof/gprof.h')
-rw-r--r-- | gprof/gprof.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gprof/gprof.h b/gprof/gprof.h index 8431a9d..c1b91ad 100644 --- a/gprof/gprof.h +++ b/gprof/gprof.h @@ -59,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" @@ -147,6 +147,13 @@ struct hdr { int ncnt; }; + +struct rawhdr { + char lowpc[4]; + char highpc[4]; + char ncnt[4]; +}; + struct hdr h; int debug; @@ -155,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 */ |