aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1997-08-28 17:37:30 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1997-08-28 17:37:30 +0000
commit36db8e64abf2772b35db7e9405f7ce8cdb21f31f (patch)
tree6e1eb5727b4b609b9861fc9ac392e91d1a33b270
parent0c0b16f9d44be08326dc6a78be013951c14d7ae2 (diff)
downloadgdb-36db8e64abf2772b35db7e9405f7ce8cdb21f31f.zip
gdb-36db8e64abf2772b35db7e9405f7ce8cdb21f31f.tar.gz
gdb-36db8e64abf2772b35db7e9405f7ce8cdb21f31f.tar.bz2
* sim-options.c (standard_option_handler): Use xstrdup, not strdup.
-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;
}