Browse Source

* hist.c (hist_assign_samples_1): Update comment.

gdb_7_4-branch
Nick Clifton 15 years ago
parent
commit
cef976f513
  1. 4
      gprof/ChangeLog
  2. 6
      gprof/hist.c

4
gprof/ChangeLog

@ -1,3 +1,7 @@
2011-10-26 Nick Clifton <nickc@redhat.com>
* hist.c (hist_assign_samples_1): Update comment.
2011-10-25 Wei Guozhi <carrot@google.com>
PR gprof/13325

6
gprof/hist.c

@ -389,8 +389,10 @@ hist_assign_samples_1 (histogram *r)
bin_count));
total_time += count_time;
/* Credit all symbols that are covered by bin I. */
/* PR gprof/13325: Make sure that J does not go below I. */
/* Credit all symbols that are covered by bin I.
PR gprof/13325: Make sure that K does not get decremented
and J will never be less than 0. */
for (j = k - 1; j < symtab.len; k = ++j)
{
sym_low_pc = symtab.base[j].hist.scaled_addr;

Loading…
Cancel
Save