delete gdbserver's freeargv
authorTom Tromey <tromey@redhat.com>
Mon, 20 Jan 2014 02:34:23 +0000 (19:34 -0700)
committerTom Tromey <tromey@redhat.com>
Thu, 12 Jun 2014 20:35:49 +0000 (14:35 -0600)
gdbserver defines freeargv, but it is now trivial to just use the one
in libiberty.

2014-06-12  Tom Tromey  <tromey@redhat.com>

* utils.c (freeargv): Remove.

gdb/gdbserver/ChangeLog
gdb/gdbserver/utils.c

index 199338b..a348d9a 100644 (file)
@@ -1,5 +1,9 @@
 2014-06-12  Tom Tromey  <tromey@redhat.com>
 
+       * utils.c (freeargv): Remove.
+
+2014-06-12  Tom Tromey  <tromey@redhat.com>
+
        * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
        * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
        (parse_debug_format_options): Likewise.
index 19955dc..2d0b331 100644 (file)
@@ -55,27 +55,6 @@ xstrdup (const char *s)
   return ret;
 }
 
-#ifndef IN_PROCESS_AGENT
-
-/* Free a standard argv vector.  */
-
-void
-freeargv (char **vector)
-{
-  char **scan;
-
-  if (vector != NULL)
-    {
-      for (scan = vector; *scan != NULL; scan++)
-       {
-         free (*scan);
-       }
-      free (vector);
-    }
-}
-
-#endif
-
 /* Print the system error message for errno, and also mention STRING
    as the file name for which the error was encountered.
    Then return to command level.  */