diff options
author | Tom Tromey <tromey@redhat.com> | 2014-01-19 19:34:23 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-06-12 14:35:49 -0600 |
commit | f9d1eeed58ec0b3063e014273164179586b1f141 (patch) | |
tree | 15573be34f4748be407e839175107e13ea981f3c /gdb/gdbserver/utils.c | |
parent | 0b04e52316079981b2b77124198a405d826a05cd (diff) | |
download | gdb-f9d1eeed58ec0b3063e014273164179586b1f141.zip gdb-f9d1eeed58ec0b3063e014273164179586b1f141.tar.gz gdb-f9d1eeed58ec0b3063e014273164179586b1f141.tar.bz2 |
delete gdbserver's freeargv
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.
Diffstat (limited to 'gdb/gdbserver/utils.c')
-rw-r--r-- | gdb/gdbserver/utils.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gdb/gdbserver/utils.c b/gdb/gdbserver/utils.c index 19955dc..2d0b331 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. */ |