summaryrefslogtreecommitdiff
path: root/gdb/m32r-rom.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
commit515fe7971c2f812953bf4a117263739727eb7336 (patch)
tree4adbd23bd3af86230b780a1b7bfe6cd6b7572a6d /gdb/m32r-rom.c
parent56101a1dbfea61e1633a3b53f88696a150ae6c1c (diff)
downloadgdb-515fe7971c2f812953bf4a117263739727eb7336.tar.gz
Replace strsave() with xstrdup().
Diffstat (limited to 'gdb/m32r-rom.c')
-rw-r--r--gdb/m32r-rom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/m32r-rom.c b/gdb/m32r-rom.c
index b2832792121..2dfac770ea2 100644
--- a/gdb/m32r-rom.c
+++ b/gdb/m32r-rom.c
@@ -1,6 +1,6 @@
/* Remote debugging interface to m32r and mon2000 ROM monitors for GDB,
the GNU debugger.
- Copyright 1996 Free Software Foundation, Inc.
+ Copyright 1996, 2001 Free Software Foundation, Inc.
Adapted by Michael Snyder of Cygnus Support.
@@ -480,7 +480,7 @@ m32r_upload_command (char *args, int from_tty)
error ("Please use 'set board-address' to set the M32R-EVA board's IP address.");
if (strchr (myIPaddress, '('))
*(strchr (myIPaddress, '(')) = '\0'; /* delete trailing junk */
- board_addr = strsave (myIPaddress);
+ board_addr = xstrdup (myIPaddress);
}
if (server_addr == 0)
{
@@ -508,7 +508,7 @@ m32r_upload_command (char *args, int from_tty)
if (args[0] != '/' && download_path == 0)
{
if (current_directory)
- download_path = strsave (current_directory);
+ download_path = xstrdup (current_directory);
else
error ("Need to know default download path (use 'set download-path')");
}