diff options
author | Nick Clifton <nickc@redhat.com> | 2011-10-26 09:51:57 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-10-26 09:51:57 +0000 |
commit | cef976f513db5e7521eb74b350e6ae901e9cc81a (patch) | |
tree | fd61d9967d8d036fe3f7a0c23a6523fe7d72596b /gprof/hist.c | |
parent | 29942be8257fab7860da956e5119ef7879045192 (diff) | |
download | gdb-cef976f513db5e7521eb74b350e6ae901e9cc81a.zip gdb-cef976f513db5e7521eb74b350e6ae901e9cc81a.tar.gz gdb-cef976f513db5e7521eb74b350e6ae901e9cc81a.tar.bz2 |
* hist.c (hist_assign_samples_1): Update comment.
Diffstat (limited to 'gprof/hist.c')
-rw-r--r-- | gprof/hist.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gprof/hist.c b/gprof/hist.c index 3b77ab0..91b0000 100644 --- a/gprof/hist.c +++ b/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; |