aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/sim-options.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 03efafe..9c586fa 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,7 @@
+Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
+
+ * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
+
Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
* sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c
index 8ace37a..94342e4 100644
--- a/sim/common/sim-options.c
+++ b/sim/common/sim-options.c
@@ -264,7 +264,7 @@ standard_option_handler (sd, opt, arg, is_command)
case OPTION_TARGET:
{
- STATE_TARGET (sd) = strdup (arg);
+ STATE_TARGET (sd) = xstrdup (arg);
break;
}