Put mi and tui comments for free -> xfree change in proper ChangeLogs.
[deliverable/binutils-gdb.git] / gdb / corefile.c
index 5c816b125e772873d07515c988983f54fe82613f..4447f77747372a1f5fbd5dd1cf2894b6c3f0ae3e 100644 (file)
@@ -37,6 +37,7 @@
 #include "gdb_stat.h"
 #include "symfile.h"
 #include "objfiles.h"
+#include "completer.h"
 
 /* Local function declarations.  */
 
@@ -90,7 +91,7 @@ core_file_command (char *filename, int from_tty)
              {
                char *symfile_copy = xstrdup (symfile);
 
-               make_cleanup (free, symfile_copy);
+               make_cleanup (xfree, symfile_copy);
                symbol_file_command (symfile_copy, from_tty);
              }
            else
@@ -182,7 +183,7 @@ reopen_exec_file (void)
 
   /* If the timestamp of the exec file has changed, reopen it. */
   filename = xstrdup (bfd_get_filename (exec_bfd));
-  make_cleanup (free, filename);
+  make_cleanup (xfree, filename);
   mtime = bfd_get_mtime (exec_bfd);
   res = stat (filename, &st);
 
@@ -396,7 +397,7 @@ void
 set_gnutarget (char *newtarget)
 {
   if (gnutarget_string != NULL)
-    free (gnutarget_string);
+    xfree (gnutarget_string);
   gnutarget_string = savestring (newtarget, strlen (newtarget));
   set_gnutarget_command (NULL, 0, NULL);
 }
This page took 0.023636 seconds and 4 git commands to generate.