aboutsummaryrefslogtreecommitdiff
path: root/gprof/gprof.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-07-13 02:24:24 +0000
committerJohn Gilmore <gnu@cygnus>1992-07-13 02:24:24 +0000
commit9388476b43b2b36431b06d3ba53e27087b98839f (patch)
treeb6e0941676d54efcf092fb2780201a273320e5b3 /gprof/gprof.c
parentf8f1415a4af940e1c64ad75102916ecda459aa42 (diff)
downloadgdb-9388476b43b2b36431b06d3ba53e27087b98839f.zip
gdb-9388476b43b2b36431b06d3ba53e27087b98839f.tar.gz
gdb-9388476b43b2b36431b06d3ba53e27087b98839f.tar.bz2
* blurbs.c: New file, created from gprof.flat and gprof.callg by
* make-c-prog.awk: which processes text files into C programs. * printgprof.c (flatprofheader, gprofheader): Call new functions to print blurbs. (printblurb): Remove. * Makefile.in: Infrastructure to build blurbs. * pathnames.h: has been removed. Gprof now has no filename dependencies in it. * gprof.c: Lint. Sat Jul 11 18:07:21 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) * Makefile.in: define man1dir and install the man page Fri Jul 10 21:14:08 1992 david d `zoo' zuhn (zoo@cygnus.com) * Makefile.in: added dummy info and install-info targets
Diffstat (limited to 'gprof/gprof.c')
-rw-r--r--gprof/gprof.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gprof/gprof.c b/gprof/gprof.c
index 32e297f..2102e93 100644
--- a/gprof/gprof.c
+++ b/gprof/gprof.c
@@ -330,9 +330,9 @@ getpfile(filename)
* a bunch of <from,self,count> tuples.
*/
while ( fread( &arc , sizeof arc , 1 , pfile ) == 1 ) {
- arc.raw_frompc = bfd_get_32 (abfd, &arc.raw_frompc);
- arc.raw_selfpc = bfd_get_32 (abfd, &arc.raw_selfpc);
- arc.raw_count = bfd_get_32 (abfd, &arc.raw_count);
+ arc.raw_frompc = bfd_get_32 (abfd, (bfd_byte *) &arc.raw_frompc);
+ arc.raw_selfpc = bfd_get_32 (abfd, (bfd_byte *) &arc.raw_selfpc);
+ arc.raw_count = bfd_get_32 (abfd, (bfd_byte *) &arc.raw_count);
# ifdef DEBUG
if ( debug & SAMPLEDEBUG ) {
printf( "[getpfile] frompc 0x%x selfpc 0x%x count %d\n" ,
@@ -359,9 +359,9 @@ openpfile(filename)
done();
}
fread(&tmp, sizeof(struct hdr), 1, pfile);
- tmp.lowpc = (char*)bfd_get_32 (abfd, &tmp.lowpc);
- tmp.highpc = (char*)bfd_get_32 (abfd, &tmp.highpc);
- tmp.ncnt = bfd_get_32 (abfd, &tmp.ncnt);
+ tmp.lowpc = (UNIT *)bfd_get_32 (abfd, (bfd_byte *) &tmp.lowpc);
+ tmp.highpc = (UNIT *)bfd_get_32 (abfd, (bfd_byte *) &tmp.highpc);
+ tmp.ncnt = bfd_get_32 (abfd, (bfd_byte *) &tmp.ncnt);
if ( s_highpc != 0 && ( tmp.lowpc != h.lowpc ||
tmp.highpc != h.highpc || tmp.ncnt != h.ncnt ) ) {
@@ -494,7 +494,7 @@ readsamples(pfile)
}
for (i = 0; i < nsamples; i++) {
fread(&sample, sizeof (UNIT), 1, pfile);
- sample = bfd_get_16 (abfd, &sample);
+ sample = bfd_get_16 (abfd, (bfd_byte *) &sample);
if (feof(pfile))
break;
samples[i] += sample;