This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC 2/2] delete gdbserver's freeargv


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]