From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7995 invoked by alias); 20 Jan 2014 18:49:59 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 7954 invoked by uid 89); 20 Jan 2014 18:49:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 20 Jan 2014 18:49:56 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0KInttn008334 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 20 Jan 2014 13:49:55 -0500 Received: from barimba.redhat.com (ovpn-113-85.phx2.redhat.com [10.3.113.85]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s0KIns52016576; Mon, 20 Jan 2014 13:49:55 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFC 2/2] delete gdbserver's freeargv Date: Mon, 20 Jan 2014 18:49:00 -0000 Message-Id: <1390243792-31176-3-git-send-email-tromey@redhat.com> In-Reply-To: <1390243792-31176-1-git-send-email-tromey@redhat.com> References: <1390243792-31176-1-git-send-email-tromey@redhat.com> X-SW-Source: 2014-01/txt/msg00744.txt.bz2 gdbserver defines freeargv, but it is now trivial to just use the one in libiberty. 2014-01-20 Tom Tromey * 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