mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-01 05:55:23 +08:00
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.
This commit is contained in:
parent
0b04e52316
commit
f9d1eeed58
@ -1,3 +1,7 @@
|
||||
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.
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user