diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-08-12 04:43:32 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-08-12 04:43:32 -0700 |
commit | f3445b37b67deb8f67f7885274b2544684503f78 (patch) | |
tree | 7728c7ad03f97288e55905fe67725498771729c1 /gprof/gmon_io.c | |
parent | 3aade68889268c7d15e121d6d63cb1b753ec12fa (diff) | |
download | gdb-f3445b37b67deb8f67f7885274b2544684503f78.zip gdb-f3445b37b67deb8f67f7885274b2544684503f78.tar.gz gdb-f3445b37b67deb8f67f7885274b2544684503f78.tar.bz2 |
Remove trailing spaces in gprof
Diffstat (limited to 'gprof/gmon_io.c')
-rw-r--r-- | gprof/gmon_io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gprof/gmon_io.c b/gprof/gmon_io.c index 5148275..ac9f7af 100644 --- a/gprof/gmon_io.c +++ b/gprof/gmon_io.c @@ -499,7 +499,7 @@ gmon_out_read (const char *filename) hist_scale = (double)((tmp.high_pc - tmp.low_pc) / sizeof (UNIT)) / hist_num_bins; histograms->sample = (int *) xmalloc (hist_num_bins * sizeof (int)); - memset (histograms->sample, 0, + memset (histograms->sample, 0, hist_num_bins * sizeof (int)); } @@ -532,7 +532,7 @@ gmon_out_read (const char *filename) done (1); } - histograms->sample[i] + histograms->sample[i] += bfd_get_16 (core_bfd, (bfd_byte *) raw_bin_count); } @@ -671,7 +671,7 @@ gmon_out_write (const char *filename) case ptr_64bit: hdrsize = GMON_HDRSIZE_OLDBSD_64; /* FIXME: Checking host compiler defines here means that we can't - use a cross gprof alpha OSF. */ + use a cross gprof alpha OSF. */ #if defined(__alpha__) && defined (__osf__) padsize = 4; #endif @@ -683,7 +683,7 @@ gmon_out_write (const char *filename) old BSD and 4.4BSD formats. */ if (gmon_io_write_vma (ofp, histograms->lowpc) || gmon_io_write_vma (ofp, histograms->highpc) - || gmon_io_write_32 (ofp, histograms->num_bins + || gmon_io_write_32 (ofp, histograms->num_bins * sizeof (UNIT) + hdrsize)) { perror (filename); |