From patchwork Fri Jul 20 04:27:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 28512 Received: (qmail 14611 invoked by alias); 20 Jul 2018 04:28:18 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 13605 invoked by uid 89); 20 Jul 2018 04:28:09 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: gateway22.websitewelcome.com Received: from gateway22.websitewelcome.com (HELO gateway22.websitewelcome.com) (192.185.46.225) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Jul 2018 04:28:06 +0000 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 28A117293 for ; Thu, 19 Jul 2018 23:28:05 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id gN1IfPxoIbXuJgN1NfXQH2; Thu, 19 Jul 2018 23:28:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rwUf/gCrdM4vZJ+5FRJA5OQ0auDXMsHHPQWtRog72fw=; b=mYgn1Pcgzu/0fxj4tlrcrlGTq1 pYqTNgY79a1DZz1ZRisucERZLDwhp0E8jACdQlj/IkAztSn1Tn57zQhDR3zob2ZXjaHqDqRhgK71L KFoCq4gEwjA07MyUrdJH2aRHZ; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:39336 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fgN1I-003pgz-G0; Thu, 19 Jul 2018 23:27:56 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA v2 22/23] Remove record_line_ftype Date: Thu, 19 Jul 2018 22:27:46 -0600 Message-Id: <20180720042747.18473-23-tom@tromey.com> In-Reply-To: <20180720042747.18473-1-tom@tromey.com> References: <20180720042747.18473-1-tom@tromey.com> The record_line_ftype typedef was only used in the DWARF reader, and we removed those uses a few patches ago. So, remove the typedef. gdb/ChangeLog 2018-07-19 Tom Tromey * buildsym-legacy.h (record_line): Don't use record_line_ftype. * buildsym.h (record_line_ftype): Remove typedef. --- gdb/ChangeLog | 5 +++++ gdb/buildsym-legacy.h | 2 +- gdb/buildsym.h | 4 ---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gdb/buildsym-legacy.h b/gdb/buildsym-legacy.h index aaa9152c4eb..ed825b4b74d 100644 --- a/gdb/buildsym-legacy.h +++ b/gdb/buildsym-legacy.h @@ -79,7 +79,7 @@ extern struct context_stack *push_context (int desc, CORE_ADDR valu); extern struct context_stack pop_context (); -extern record_line_ftype record_line; +extern void record_line (struct subfile *subfile, int line, CORE_ADDR pc); extern struct compunit_symtab *start_symtab (struct objfile *objfile, const char *name, diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 36b3e99dc56..141adfdebe4 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -396,10 +396,6 @@ private: struct pending *m_local_symbols = nullptr; }; -/* The type of the record_line function. */ -typedef void (record_line_ftype) (struct subfile *subfile, int line, - CORE_ADDR pc); - extern void add_symbol_to_list (struct symbol *symbol,