From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56113 invoked by alias); 10 Aug 2018 23:31:13 -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 55980 invoked by uid 89); 10 Aug 2018 23:30:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=819 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; Fri, 10 Aug 2018 23:30:58 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0296D30832C9 for ; Fri, 10 Aug 2018 23:25:37 +0000 (UTC) Received: from theo.uglyboxes.com (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id CEE4552FD4 for ; Fri, 10 Aug 2018 23:25:36 +0000 (UTC) From: Keith Seitz To: gdb-patches@sourceware.org Subject: [PATCH 6/9] Remove VEC definitions from linespec.c Date: Fri, 10 Aug 2018 23:31:00 -0000 Message-Id: <20180810232534.481-7-keiths@redhat.com> In-Reply-To: <20180810232534.481-1-keiths@redhat.com> References: <20180810232534.481-1-keiths@redhat.com> X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00308.txt.bz2 Since they are now no longer necessary, this patch removes the typedefs and VEC definitions for bound_minimal_symbol_d and symbolp. gdb/ChangeLog: * linespec.c (symbolp): Remove typedef and VEC definitions. (bound_minimal_symbol_d): Likewise. --- gdb/ChangeLog | 5 +++++ gdb/linespec.c | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8e0bbd9a9f..8bd7ac01df 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ YYYY-MM-DD Keith Seitz + * linespec.c (symbolp): Remove typedef and VEC definitions. + (bound_minimal_symbol_d): Likewise. + +YYYY-MM-DD Keith Seitz + * linespec.c (decode_compound_collector::decode_compound_collector): Remove initialization for `m_symtabs'. (decode_compound_collector::release_symbols): Change return type diff --git a/gdb/linespec.c b/gdb/linespec.c index c3e5f484b8..dea02381b9 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -81,9 +81,6 @@ enum class linespec_complete_what typedef std::unique_ptr> symtab_vector_up; -typedef struct symbol *symbolp; -DEF_VEC_P (symbolp); - /* An address entry is used to ensure that any given location is only added to the result a single time. It holds an address and the program space from which the address came. */ @@ -94,10 +91,6 @@ struct address_entry CORE_ADDR addr; }; -typedef struct bound_minimal_symbol bound_minimal_symbol_d; - -DEF_VEC_O (bound_minimal_symbol_d); - /* A linespec. Elements of this structure are filled in by a parser (either parse_linespec or some other function). The structure is then converted into SALs by convert_linespec_to_sals. */ -- 2.13.6