aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-03-15 16:20:42 +0000
committerNick Clifton <nickc@redhat.com>2005-03-15 16:20:42 +0000
commitf7945f452e55d8a62b16e80fe35b52109a249bf2 (patch)
treec50a8a3a7c10e8ac8132ff6fd5209c36ca7061e3
parent43c3ab55ac48b523629ee064c1a515f2cdb55f83 (diff)
downloadfsf-binutils-gdb-f7945f452e55d8a62b16e80fe35b52109a249bf2.zip
fsf-binutils-gdb-f7945f452e55d8a62b16e80fe35b52109a249bf2.tar.gz
fsf-binutils-gdb-f7945f452e55d8a62b16e80fe35b52109a249bf2.tar.bz2
Step through the sorted array of basic blocks.
-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. */