summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>1999-12-22 21:45:00 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>1999-12-22 21:45:00 +0000
commit2800c5dc333169fb3e1d2bed6f96912ec8cf982c (patch)
treeea29215395ff424fd4060ad305c1b84ae3f3f90c /sim
parent25f56f63638eebc41a9b95296eebb40563ea0db5 (diff)
downloadgdb-2800c5dc333169fb3e1d2bed6f96912ec8cf982c.tar.gz
import gdb-1999-12-21 snapshotgdb-1999-12-21
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog5
-rw-r--r--sim/common/sim-profile.c2
-rw-r--r--sim/common/sim-profile.h4
3 files changed, 10 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 01ef1be00e1..428f4572e8a 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,8 @@
+1999-12-17 Dave Brolley <brolley@cygnus.com>
+
+ * sim-profile.h: (set_profile_option_mask): Add prototype.
+ * sim-profile.c (set_profile_option_mask): No longer static.
+
Wed Dec 8 21:47:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
* sim-arange.c: Include <string.h>
diff --git a/sim/common/sim-profile.c b/sim/common/sim-profile.c
index 5d075d15bd1..9129a38a147 100644
--- a/sim/common/sim-profile.c
+++ b/sim/common/sim-profile.c
@@ -108,7 +108,7 @@ static const OPTION profile_options[] = {
/* Set/reset the profile options indicated in MASK. */
-static SIM_RC
+SIM_RC
set_profile_option_mask (SIM_DESC sd, const char *name, int mask, const char *arg)
{
int profile_nr;
diff --git a/sim/common/sim-profile.h b/sim/common/sim-profile.h
index 8f8d95f43a1..4ffe8503766 100644
--- a/sim/common/sim-profile.h
+++ b/sim/common/sim-profile.h
@@ -65,6 +65,10 @@ enum {
| (1 << PROFILE_MODEL_IDX) \
| (1 << PROFILE_CORE_IDX))
+/* Utility to set profile options. */
+SIM_RC set_profile_option_mask (SIM_DESC sd_, const char *name_, int mask_,
+ const char *arg_);
+
/* Utility to parse a --profile-<foo> option. */
/* ??? On the one hand all calls could be confined to sim-profile.c, but
on the other hand keeping a module's profiling option with the module's