This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC 2/2] delete gdbserver's freeargv
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>
- Date: Mon, 20 Jan 2014 11:49:52 -0700
- Subject: [RFC 2/2] delete gdbserver's freeargv
- Authentication-results: sourceware.org; auth=none
- References: <1390243792-31176-1-git-send-email-tromey at redhat dot com>
gdbserver defines freeargv, but it is now trivial to just use the one
in libiberty.
2014-01-20 Tom Tromey <tromey@redhat.com>
* utils.c (freeargv): Remove.
---
gdb/gdbserver/ChangeLog | 4 ++++
gdb/gdbserver/utils.c | 21 ---------------------
2 files changed, 4 insertions(+), 21 deletions(-)
diff --git a/gdb/gdbserver/utils.c b/gdb/gdbserver/utils.c
index eff4499..dae351e 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. */
--
1.8.1.4