summaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-12-15 01:01:51 +0000
committerKevin Buettner <kevinb@redhat.com>2000-12-15 01:01:51 +0000
commit7fd5097f9fb26871e9f0b329f1cf5554495ed589 (patch)
tree20b4de6e7953169d2402aff4e158b475b5726e67 /gdb/remote-mips.c
parenteac388f33554805a5765a2836926311f77cd8d79 (diff)
downloadgdb-7fd5097f9fb26871e9f0b329f1cf5554495ed589.tar.gz
Replace free() with xfree().
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 82eccd57df3..1905c613b8d 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -1576,9 +1576,9 @@ device is attached to the target board (e.g., /dev/ttya).\n"
the user didn't specify a local name, assume it's the same
as the part of the remote name after the "host:". */
if (tftp_name)
- free (tftp_name);
+ xfree (tftp_name);
if (tftp_localname)
- free (tftp_localname);
+ xfree (tftp_localname);
if (local_name == NULL)
if ((local_name = strchr (remote_name, ':')) != NULL)
local_name++; /* skip over the colon */
@@ -1624,7 +1624,7 @@ device is attached to the target board (e.g., /dev/ttya).\n"
set_current_frame (create_new_frame (read_fp (), stop_pc));
select_frame (get_current_frame (), 0);
print_stack_frame (selected_frame, -1, 1);
- free (serial_port_name);
+ xfree (serial_port_name);
}
static void
@@ -3230,7 +3230,7 @@ pmon_end_download (int final, int bintotal)
strcat (cmd, tftp_name);
strcat (cmd, "\r");
mips_send_command (cmd, 0);
- free (cmd);
+ xfree (cmd);
if (!mips_expect_download ("Downloading from "))
return;
if (!mips_expect_download (tftp_name))