From: Tom Tromey Date: Mon, 20 Jan 2014 02:34:23 +0000 (-0700) Subject: delete gdbserver's freeargv X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9d1eeed58ec0b3063e014273164179586b1f141;p=binutils-gdb.git delete gdbserver's freeargv gdbserver defines freeargv, but it is now trivial to just use the one in libiberty. 2014-06-12 Tom Tromey * utils.c (freeargv): Remove. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 199338b6218..a348d9a3473 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2014-06-12 Tom Tromey + + * utils.c (freeargv): Remove. + 2014-06-12 Tom Tromey * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks. diff --git a/gdb/gdbserver/utils.c b/gdb/gdbserver/utils.c index 19955dc8a61..2d0b3319f6a 100644 --- a/gdb/gdbserver/utils.c +++ b/gdb/gdbserver/utils.c @@ -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. */