diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-01-31 01:24:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-01-31 01:24:03 +0000 |
commit | 4fcf66da885273eeeea8e14b771d0e3ea20799d9 (patch) | |
tree | 54c8a3ebd35bd426e7f39acd89ac000930cc3a39 /gdb/m32r-rom.c | |
parent | e191e0abe5e90c81f39b0a428de8e4e44184161f (diff) | |
download | gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.zip gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.gz gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.bz2 |
Replace strsave() with xstrdup().
Diffstat (limited to 'gdb/m32r-rom.c')
-rw-r--r-- | gdb/m32r-rom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/m32r-rom.c b/gdb/m32r-rom.c index b283279..2dfac77 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')"); } |