aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparcl-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-01-31 01:24:03 +0000
committerAndrew Cagney <cagney@redhat.com>2001-01-31 01:24:03 +0000
commit4fcf66da885273eeeea8e14b771d0e3ea20799d9 (patch)
tree54c8a3ebd35bd426e7f39acd89ac000930cc3a39 /gdb/sparcl-tdep.c
parente191e0abe5e90c81f39b0a428de8e4e44184161f (diff)
downloadgdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.zip
gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.gz
gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.bz2
Replace strsave() with xstrdup().
Diffstat (limited to 'gdb/sparcl-tdep.c')
-rw-r--r--gdb/sparcl-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/sparcl-tdep.c b/gdb/sparcl-tdep.c
index 6df7e70..07b6696 100644
--- a/gdb/sparcl-tdep.c
+++ b/gdb/sparcl-tdep.c
@@ -1,5 +1,5 @@
/* Target dependent code for the Fujitsu SPARClite for GDB, the GNU debugger.
- Copyright 1994, 1995, 1996, 1999 Free Software Foundation, Inc.
+ Copyright 1994, 1995, 1996, 1999, 2001 Free Software Foundation, Inc.
This file is part of GDB.
@@ -413,7 +413,7 @@ sparclite_open (char *name, int from_tty)
if (remote_target_name)
xfree (remote_target_name);
- remote_target_name = strsave (name);
+ remote_target_name = xstrdup (name);
/* We need a 'serial' or 'udp' keyword to disambiguate host:port, which can
mean either a serial port on a terminal server, or the IP address of a