From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gateway23.websitewelcome.com (gateway23.websitewelcome.com [192.185.49.180]) by sourceware.org (Postfix) with ESMTPS id C2E1B386F47E for ; Sun, 28 Feb 2021 20:38:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C2E1B386F47E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway23.websitewelcome.com (Postfix) with ESMTP id 3F5F8DBD9 for ; Sun, 28 Feb 2021 14:38:08 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id GSpMldsGp4HRaGSpMllWTt; Sun, 28 Feb 2021 14:38:08 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: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=xVtX2dZ1YhNB7sZ6UNjw0tiU43edgcVpMWOdhNrC0hA=; b=gE6NMvoL6D/McMpbSJlqJ9nB6M ZPlDJdXML1FrUhb0jL/MLLCFccRLHqUlhsclF6S2pU1bWSexpKlwJaS7osP36yp3hYHsS6agpGJsL OvPrcx/onwtufz/wewhF3MRTb; Received: from 97-122-70-152.hlrn.qwest.net ([97.122.70.152]:36730 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lGSpL-000Xf8-Py for gdb-patches@sourceware.org; Sun, 28 Feb 2021 13:38:07 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH 01/26] Move some DWARF code out of symfile.h Date: Sun, 28 Feb 2021 13:37:38 -0700 Message-Id: <20210228203803.1693413-2-tom@tromey.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210228203803.1693413-1-tom@tromey.com> References: <20210228203803.1693413-1-tom@tromey.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.70.152 X-Source-L: No X-Exim-ID: 1lGSpL-000Xf8-Py X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-70-152.hlrn.qwest.net (localhost.localdomain) [97.122.70.152]:36730 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3034.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Feb 2021 20:38:10 -0000 This moves a bit of the DWARF-specific code out of symfile.h and into dwarf2/read.h. gdb/ChangeLog 2021-02-28 Tom Tromey * symfile.h (enum dwarf2_section_enum) (dwarf2_get_section_info): Move to dwarf2/read.h. * dwarf2/read.h (enum dwarf2_section_enum) (dwarf2_get_section_info): Move from symfile.h. --- gdb/ChangeLog | 7 +++++++ gdb/dwarf2/read.h | 11 +++++++++++ gdb/symfile.h | 11 ----------- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h index c7f6a111b8c..fbcd8ad0380 100644 --- a/gdb/dwarf2/read.h +++ b/gdb/dwarf2/read.h @@ -694,4 +694,15 @@ struct type *dwarf2_fetch_die_type_sect_off /* When non-zero, dump line number entries as they are read in. */ extern unsigned int dwarf_line_debug; +/* Dwarf2 sections that can be accessed by dwarf2_get_section_info. */ +enum dwarf2_section_enum { + DWARF2_DEBUG_FRAME, + DWARF2_EH_FRAME +}; + +extern void dwarf2_get_section_info (struct objfile *, + enum dwarf2_section_enum, + asection **, const gdb_byte **, + bfd_size_type *); + #endif /* DWARF2READ_H */ diff --git a/gdb/symfile.h b/gdb/symfile.h index 23e2ad8c3a9..b7e2009b669 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -603,17 +603,6 @@ extern int dwarf2_has_info (struct objfile *, const struct dwarf2_debug_sections *, bool = false); -/* Dwarf2 sections that can be accessed by dwarf2_get_section_info. */ -enum dwarf2_section_enum { - DWARF2_DEBUG_FRAME, - DWARF2_EH_FRAME -}; - -extern void dwarf2_get_section_info (struct objfile *, - enum dwarf2_section_enum, - asection **, const gdb_byte **, - bfd_size_type *); - /* A DWARF names index variant. */ enum class dw_index_kind { -- 2.26.2