diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-10-19 00:54:03 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-10-19 00:54:03 +0000 |
commit | 7d7cfa07a6bf37e33296d960dda2187cd944f118 (patch) | |
tree | e2d6b95e0a3b10c59f01bb3e824945d349dcafce /sim/common/sim-profile.c | |
parent | 5a049d5c3979bb4bd5397b1081122e9a4899e171 (diff) | |
download | gdb-7d7cfa07a6bf37e33296d960dda2187cd944f118.tar.gz |
[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/sim-profile.c')
-rw-r--r-- | sim/common/sim-profile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/common/sim-profile.c b/sim/common/sim-profile.c index 76964196834..83e964d470a 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; } } |