aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog5
-rw-r--r--gprof/basic_blocks.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index 09817ce..333e952 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-15 Nick Clifton <nickc@redhat.com>
+
+ * basic_blocks.c (print_exec_counts): Step through sorted array of
+ basic blocks.
+
2005-03-15 Alan Modra <amodra@bigpond.net.au>
* po/es.po: Commit new Spanish translation.
diff --git a/gprof/basic_blocks.c b/gprof/basic_blocks.c
index ed26cae..e974ee8 100644
--- a/gprof/basic_blocks.c
+++ b/gprof/basic_blocks.c
@@ -281,6 +281,8 @@ print_exec_counts ()
for (i = 0; i < len; ++i)
{
+ sym = sorted_bbs [i];
+
if (sym->ncalls > 0 || ! ignore_zeros)
{
/* FIXME: This only works if bfd_vma is unsigned long. */