aboutsummaryrefslogtreecommitdiff
path: root/gprof/basic_blocks.c
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 /gprof/basic_blocks.c
parent43c3ab55ac48b523629ee064c1a515f2cdb55f83 (diff)
downloadgdb-f7945f452e55d8a62b16e80fe35b52109a249bf2.zip
gdb-f7945f452e55d8a62b16e80fe35b52109a249bf2.tar.gz
gdb-f7945f452e55d8a62b16e80fe35b52109a249bf2.tar.bz2
Step through the sorted array of basic blocks.
Diffstat (limited to 'gprof/basic_blocks.c')
-rw-r--r--gprof/basic_blocks.c2
1 files changed, 2 insertions, 0 deletions
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. */