aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-utils.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-09-03 07:26:11 +0000
committerAndrew Cagney <cagney@redhat.com>1997-09-03 07:26:11 +0000
commitfdd64f952debd1000ed87f077f0fea0ea1fb63dd (patch)
treed5e1c35f1c743a18409ae2ec4900fd2ebcbf11ae /sim/common/sim-utils.h
parentc2d708261f3e55146cbc12b5b00722e137c6d833 (diff)
downloadgdb-fdd64f952debd1000ed87f077f0fea0ea1fb63dd.zip
gdb-fdd64f952debd1000ed87f077f0fea0ea1fb63dd.tar.gz
gdb-fdd64f952debd1000ed87f077f0fea0ea1fb63dd.tar.bz2
Add support for suspending/resumeing the simulator in sim-modules.
Use in sim-events.
Diffstat (limited to 'sim/common/sim-utils.h')
-rw-r--r--sim/common/sim-utils.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/common/sim-utils.h b/sim/common/sim-utils.h
index dfb991c..cd7cc59c 100644
--- a/sim/common/sim-utils.h
+++ b/sim/common/sim-utils.h
@@ -34,9 +34,11 @@ char *sim_add_commas (char *, int, unsigned long);
/* Utilities for elapsed time reporting. */
-/* Opaque type, known only inside sim_elapsed_time_foo fns. */
+/* Opaque type, known only inside sim_elapsed_time_foo fns. Externally
+ it is known to never have the value zero. */
typedef unsigned long SIM_ELAPSED_TIME;
+
/* Get reference point for future call to sim_time_elapsed. */
SIM_ELAPSED_TIME sim_elapsed_time_get (void);