From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100600 invoked by alias); 23 May 2018 06:15: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 100223 invoked by uid 89); 23 May 2018 06:15:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 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: gateway36.websitewelcome.com Received: from gateway36.websitewelcome.com (HELO gateway36.websitewelcome.com) (192.185.185.36) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 May 2018 06:15:25 +0000 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 05F1E400C8A40 for ; Wed, 23 May 2018 01:15:10 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id LN3Ffx2lhBcCXLN3GfrTaw; Wed, 23 May 2018 01:15:10 -0500 X-Authority-Reason: nr=8 Received: from 174-29-44-154.hlrn.qwest.net ([174.29.44.154]:56108 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1fLLrl-003S5D-1e; Tue, 22 May 2018 23:59:13 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 42/42] Remove record_line_ftype Date: Wed, 23 May 2018 06:16:00 -0000 Message-Id: <20180523045851.11660-43-tom@tromey.com> In-Reply-To: <20180523045851.11660-1-tom@tromey.com> References: <20180523045851.11660-1-tom@tromey.com> X-BWhitelist: no X-Source-L: No X-Exim-ID: 1fLLrl-003S5D-1e X-Source-Sender: 174-29-44-154.hlrn.qwest.net (bapiya.Home) [174.29.44.154]:56108 X-Source-Auth: tom+tromey.com X-Email-Count: 11 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-SW-Source: 2018-05/txt/msg00610.txt.bz2 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-05-22 Tom Tromey * legacy-buildsym.h (record_line): Don't use record_line_ftype. * buildsym.h (record_line_ftype): Remove typedef. --- gdb/ChangeLog | 5 +++++ gdb/buildsym.h | 4 ---- gdb/legacy-buildsym.h | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 05b80f5cb7..d90faff903 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -399,10 +399,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, diff --git a/gdb/legacy-buildsym.h b/gdb/legacy-buildsym.h index 55f9d14f7e..43d3e6c09c 100644 --- a/gdb/legacy-buildsym.h +++ b/gdb/legacy-buildsym.h @@ -79,7 +79,7 @@ extern struct context_stack *push_context (int desc, CORE_ADDR valu); extern struct context_stack *pop_context (void); -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, -- 2.13.6