aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-07-27 11:49:07 +0000
committerAndrew Cagney <cagney@redhat.com>2000-07-27 11:49:07 +0000
commitf9cbceb6b756ca1dea8faddefe87b2718086018c (patch)
treed260e91a659cafc8bdfc55d7d1af1431b6ad38bf
parent38e64f358e2894319381e195c699c337b6dbb29d (diff)
downloadgdb-f9cbceb6b756ca1dea8faddefe87b2718086018c.zip
gdb-f9cbceb6b756ca1dea8faddefe87b2718086018c.tar.gz
gdb-f9cbceb6b756ca1dea8faddefe87b2718086018c.tar.bz2
2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* nrun.c (main): Print the simulator statistics only in verbose mode. * hw-properties.h (hw_find_integer_array_property): Fix prototype (use signed_cell).
-rw-r--r--sim/common/ChangeLog6
-rw-r--r--sim/common/hw-properties.h2
-rw-r--r--sim/common/nrun.c3
3 files changed, 9 insertions, 2 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index eb07b92..ef7b8eb 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,6 +1,12 @@
Thu Jul 27 20:37:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
+ * nrun.c (main): Print the simulator statistics only in
+ verbose mode.
+ * hw-properties.h (hw_find_integer_array_property): Fix
+ prototype (use signed_cell).
+
+ From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
* sim-events.c (sim_events_remain_time): New function returning
the time that remains before the event is raised.
* hw-events.c (hw_event_remain_time): Likewise.
diff --git a/sim/common/hw-properties.h b/sim/common/hw-properties.h
index 511fba3..198878f 100644
--- a/sim/common/hw-properties.h
+++ b/sim/common/hw-properties.h
@@ -166,7 +166,7 @@ int hw_find_integer_array_property
(struct hw *me,
const char *property,
unsigned index,
- signed_word *integer);
+ signed_cell *integer);
diff --git a/sim/common/nrun.c b/sim/common/nrun.c
index c5b43a2..ef25d68 100644
--- a/sim/common/nrun.c
+++ b/sim/common/nrun.c
@@ -165,7 +165,8 @@ main (int argc, char **argv)
}
/* Print any stats the simulator collected. */
- sim_info (sd, 0);
+ if (STATE_VERBOSE_P (sd))
+ sim_info (sd, 0);
/* Shutdown the simulator. */
sim_close (sd, 0);