From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gproxy3-pub.mail.unifiedlayer.com (gproxy3-pub.mail.unifiedlayer.com [69.89.30.42]) by sourceware.org (Postfix) with ESMTPS id 9DF5E3858C50 for ; Sat, 18 Mar 2023 14:45:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9DF5E3858C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com Received: from cmgw11.mail.unifiedlayer.com (unknown [10.0.90.126]) by progateway5.mail.pro1.eigbox.com (Postfix) with ESMTP id 4AEFF10047D63 for ; Sat, 18 Mar 2023 14:45:03 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id dXnrpg6QfA6QfdXnrpsgUb; Sat, 18 Mar 2023 14:45:03 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=TYtTCTch c=1 sm=1 tr=0 ts=6415ce6f a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=k__wU0fu6RkA:10:nop_rcvd_month_year a=Qbun_eYptAEA:10:endurance_base64_authed_username_1 a=bM2CtG8DR9O9SWOkUc0A:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=a5KeaA/ksIRhQYf7e2TC0YrOA8I6JEUk+XWrt1fvzh0=; b=NzVSwDLVSO8vBfRmQguROC8nIm GT9DD4XBLQojc/rPtiVAjREdba5TNn2cBOulrNMpZci2CTRAWhzneA/LOueNKOSiwfzA6Xa7+hqP3 1PWD0nDj8ZJfSTx8mA9GzQqWx; Received: from 71-211-185-113.hlrn.qwest.net ([71.211.185.113]:47294 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pdXnq-004HFu-SM; Sat, 18 Mar 2023 08:45:02 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Remove some unnecessary includes from *-exp.y Date: Sat, 18 Mar 2023 08:44:50 -0600 Message-Id: <20230318144450.1928512-1-tom@tromey.com> X-Mailer: git-send-email 2.39.1 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: 71.211.185.113 X-Source-L: No X-Exim-ID: 1pdXnq-004HFu-SM X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 71-211-185-113.hlrn.qwest.net (localhost.localdomain) [71.211.185.113]:47294 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3025.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,JMQ_SPF_NEUTRAL,RCVD_IN_ABUSEAT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: I noticed a weird comment in one of the .y files, and then ended up removing some unnecessary #includes from these files. Tested by rebuilding. --- gdb/ada-exp.y | 3 --- gdb/c-exp.y | 3 --- gdb/d-exp.y | 3 --- gdb/f-exp.y | 3 --- gdb/go-exp.y | 3 --- gdb/m2-exp.y | 3 --- gdb/p-exp.y | 4 ---- 7 files changed, 22 deletions(-) diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index 9b704968f90..a9c37bedff0 100644 --- a/gdb/ada-exp.y +++ b/gdb/ada-exp.y @@ -42,9 +42,6 @@ #include "parser-defs.h" #include "language.h" #include "ada-lang.h" -#include "bfd.h" /* Required by objfiles.h. */ -#include "symfile.h" /* Required by objfiles.h. */ -#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */ #include "frame.h" #include "block.h" #include "ada-exp.h" diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 00599b0da7f..9ee4115560a 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -43,9 +43,6 @@ #include "language.h" #include "c-lang.h" #include "c-support.h" -#include "bfd.h" /* Required by objfiles.h. */ -#include "symfile.h" /* Required by objfiles.h. */ -#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */ #include "charset.h" #include "block.h" #include "cp-support.h" diff --git a/gdb/d-exp.y b/gdb/d-exp.y index 1c299bf7ac6..3a4e7ee0434 100644 --- a/gdb/d-exp.y +++ b/gdb/d-exp.y @@ -46,9 +46,6 @@ #include "language.h" #include "c-lang.h" #include "d-lang.h" -#include "bfd.h" /* Required by objfiles.h. */ -#include "symfile.h" /* Required by objfiles.h. */ -#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */ #include "charset.h" #include "block.h" #include "type-stack.h" diff --git a/gdb/f-exp.y b/gdb/f-exp.y index 30da537ea84..96d38af363c 100644 --- a/gdb/f-exp.y +++ b/gdb/f-exp.y @@ -48,9 +48,6 @@ #include "parser-defs.h" #include "language.h" #include "f-lang.h" -#include "bfd.h" /* Required by objfiles.h. */ -#include "symfile.h" /* Required by objfiles.h. */ -#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */ #include "block.h" #include #include diff --git a/gdb/go-exp.y b/gdb/go-exp.y index 6aa4c426df6..542a06d06d6 100644 --- a/gdb/go-exp.y +++ b/gdb/go-exp.y @@ -59,9 +59,6 @@ #include "language.h" #include "c-lang.h" #include "go-lang.h" -#include "bfd.h" /* Required by objfiles.h. */ -#include "symfile.h" /* Required by objfiles.h. */ -#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */ #include "charset.h" #include "block.h" #include "expop.h" diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y index 6629974a73e..092a8be248d 100644 --- a/gdb/m2-exp.y +++ b/gdb/m2-exp.y @@ -43,9 +43,6 @@ #include "value.h" #include "parser-defs.h" #include "m2-lang.h" -#include "bfd.h" /* Required by objfiles.h. */ -#include "symfile.h" /* Required by objfiles.h. */ -#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */ #include "block.h" #include "m2-exp.h" diff --git a/gdb/p-exp.y b/gdb/p-exp.y index b5251b932ef..b086bf73a0e 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -50,11 +50,7 @@ #include "parser-defs.h" #include "language.h" #include "p-lang.h" -#include "bfd.h" /* Required by objfiles.h. */ -#include "symfile.h" /* Required by objfiles.h. */ -#include "objfiles.h" /* For have_full_symbols and have_partial_symbols. */ #include "block.h" -#include "completer.h" #include "expop.h" #define parse_type(ps) builtin_type (ps->gdbarch ()) -- 2.39.1