diff options
author | Nick Clifton <nickc@redhat.com> | 2005-03-15 16:20:42 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-03-15 16:20:42 +0000 |
commit | f7945f452e55d8a62b16e80fe35b52109a249bf2 (patch) | |
tree | c50a8a3a7c10e8ac8132ff6fd5209c36ca7061e3 /gprof | |
parent | 43c3ab55ac48b523629ee064c1a515f2cdb55f83 (diff) | |
download | gdb-f7945f452e55d8a62b16e80fe35b52109a249bf2.zip gdb-f7945f452e55d8a62b16e80fe35b52109a249bf2.tar.gz gdb-f7945f452e55d8a62b16e80fe35b52109a249bf2.tar.bz2 |
Step through the sorted array of basic blocks.
Diffstat (limited to 'gprof')
-rw-r--r-- | gprof/ChangeLog | 5 | ||||
-rw-r--r-- | gprof/basic_blocks.c | 2 |
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. */ |