aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-10-19 00:54:03 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-10-19 00:54:03 +0000
commitf1a81b376af4c8f09ecb6b11334b87e5badfc340 (patch)
treee3eca2bd7a3b1a6d70e2cc780796dc5396a9a24e /sim/common
parentabd242a90836b535b2f98be634e16c70012a3c5d (diff)
downloadfsf-binutils-gdb-f1a81b376af4c8f09ecb6b11334b87e5badfc340.zip
fsf-binutils-gdb-f1a81b376af4c8f09ecb6b11334b87e5badfc340.tar.gz
fsf-binutils-gdb-f1a81b376af4c8f09ecb6b11334b87e5badfc340.tar.bz2
[sim]: Only print the profile info title once.
sim/common/ChangeLog: From John Wehle <john@feith.com> (tiny patch) * sim-profile.c (profile_info): Only print the title once.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/sim-profile.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 1dcbe3f..3ea3422 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-18 John Wehle <john@feith.com> (tiny patch)
+
+ * sim-profile.c (profile_info): Only print the title once.
+
2011-10-17 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Rename from aclocal.m4.
diff --git a/sim/common/sim-profile.c b/sim/common/sim-profile.c
index 7696419..83e964d 100644
--- a/sim/common/sim-profile.c
+++ b/sim/common/sim-profile.c
@@ -1132,7 +1132,7 @@ profile_info (SIM_DESC sd, int verbose)
/* FIXME: If the number of processors can be selected on the command line,
then MAX_NR_PROCESSORS will need to take an argument of `sd'. */
- for (c = 0; c < MAX_NR_PROCESSORS; ++c)
+ for (c = 0; c < MAX_NR_PROCESSORS && !print_title_p; ++c)
{
sim_cpu *cpu = STATE_CPU (sd, c);
PROFILE_DATA *data = CPU_PROFILE_DATA (cpu);
@@ -1142,6 +1142,7 @@ profile_info (SIM_DESC sd, int verbose)
{
profile_printf (sd, cpu, "Summary profiling results:\n\n");
print_title_p = 1;
+ break;
}
}