diff options
author | Doug Evans <dje@google.com> | 1998-02-25 07:36:23 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-02-25 07:36:23 +0000 |
commit | 751197f2318c36444b47b55c1746bd708f86008f (patch) | |
tree | a51d429042a78214ad3e004381a29725f0f61fe6 /sim/common/sim-profile.c | |
parent | 3910fb4a5148aeba066d32985be4c72c23635c7e (diff) | |
download | gdb-751197f2318c36444b47b55c1746bd708f86008f.zip gdb-751197f2318c36444b47b55c1746bd708f86008f.tar.gz gdb-751197f2318c36444b47b55c1746bd708f86008f.tar.bz2 |
(profile_print_core): Simplify by calling sim_core_map_to_str.
* sim-core.h (sim_core_map_to_str): Declare.
* sim-core.c (sim_core_map_to_str): Make non-static.
Diffstat (limited to 'sim/common/sim-profile.c')
-rw-r--r-- | sim/common/sim-profile.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sim/common/sim-profile.c b/sim/common/sim-profile.c index ff882df..f9807da 100644 --- a/sim/common/sim-profile.c +++ b/sim/common/sim-profile.c @@ -711,20 +711,7 @@ profile_print_core (sim_cpu *cpu, int verbose) { if (PROFILE_CORE_COUNT (data) [map] != 0) { - switch (map) - { - case sim_core_read_map: - sim_io_printf (sd, " read:"); - break; - case sim_core_write_map: - sim_io_printf (sd, " write:"); - break; - case sim_core_execute_map: - sim_io_printf (sd, " exec:"); - break; - case nr_sim_core_maps: - ; /* ignore */ - } + sim_io_printf (sd, "%10s:", sim_core_map_to_str (map)); sim_io_printf (sd, "%*s: ", max_val < 10000 ? 5 : 10, COMMAS (PROFILE_CORE_COUNT (data) [map])); |