From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 32BBD3838163 for ; Wed, 14 Dec 2022 03:34:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 32BBD3838163 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 2BE3YhKW029137 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 22:34:48 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 2BE3YhKW029137 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1670988888; bh=B/MwJIqee99D/SM4vAYQRTBZ0neZHWOumcHk/EDNtK0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kSaZxYEKFQE+rnPHsvmraFtwNYQPGSGZzWVu8qXWVOqrYbjJ3IqESCiMORnilELMi OyYllvM6OfYhSydVB1PLIIvafqMok/maK2wRtMor8gOW6CApLDY8XT2UbMJ4S/xFBG AEzwZV3sKWZZm8ENos/rFptLLgnzQnQzfsKt33Kk= Received: from simark.localdomain (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id B7FEC1E128; Tue, 13 Dec 2022 22:34:43 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH v2 03/13] gdb: remove language.h include from frame.h Date: Tue, 13 Dec 2022 22:34:31 -0500 Message-Id: <20221214033441.499512-4-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221214033441.499512-1-simon.marchi@polymtl.ca> References: <20221214033441.499512-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Wed, 14 Dec 2022 03:34:43 +0000 X-Spam-Status: No, score=-3189.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_SHORT,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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: From: Simon Marchi This helps resolve some cyclic include problem later in the series. The only language-related thing frame.h needs is enum language, and that is in defs.h. Doing so reveals that a bunch of files were relying on frame.h to include language.h, so fix the fallouts here and there. Change-Id: I178a7efec1953c2d088adb58483bade1f349b705 --- gdb/aarch64-tdep.c | 1 + gdb/amd64-tdep.c | 1 + gdb/arm-tdep.c | 1 + gdb/cp-abi.c | 1 + gdb/cp-support.c | 1 + gdb/expop.h | 1 + gdb/f-lang.h | 1 + gdb/frame.h | 1 - gdb/gnu-v3-abi.c | 1 + gdb/go-lang.h | 1 + gdb/m2-typeprint.c | 1 + gdb/ppc-sysv-tdep.c | 1 + gdb/python/py-disasm.c | 1 + gdb/python/py-frame.c | 1 + gdb/thread.c | 1 + 15 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c index 024385a9fd81..6db50c710834 100644 --- a/gdb/aarch64-tdep.c +++ b/gdb/aarch64-tdep.c @@ -21,6 +21,7 @@ #include "defs.h" #include "frame.h" +#include "language.h" #include "gdbcmd.h" #include "gdbcore.h" #include "dis-asm.h" diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index bbfc509319cb..4ed547e6e520 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -20,6 +20,7 @@ along with this program. If not, see . */ #include "defs.h" +#include "language.h" #include "opcode/i386.h" #include "dis-asm.h" #include "arch-utils.h" diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 6f02f04b5cb2..d291fbd8645d 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -22,6 +22,7 @@ #include /* XXX for isupper (). */ #include "frame.h" +#include "language.h" #include "inferior.h" #include "infrun.h" #include "gdbcmd.h" diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c index c32b1f7d2f04..8c24c9d4ac61 100644 --- a/gdb/cp-abi.c +++ b/gdb/cp-abi.c @@ -18,6 +18,7 @@ along with this program. If not, see . */ #include "defs.h" +#include "language.h" #include "value.h" #include "cp-abi.h" #include "command.h" diff --git a/gdb/cp-support.c b/gdb/cp-support.c index 77895a8bc98a..50cf00453177 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -20,6 +20,7 @@ #include "defs.h" #include "cp-support.h" +#include "language.h" #include "demangle.h" #include "gdbcmd.h" #include "dictionary.h" diff --git a/gdb/expop.h b/gdb/expop.h index 635580da2205..ed10b6dc36cc 100644 --- a/gdb/expop.h +++ b/gdb/expop.h @@ -24,6 +24,7 @@ #include "c-lang.h" #include "cp-abi.h" #include "expression.h" +#include "language.h" #include "objfiles.h" #include "gdbsupport/traits.h" #include "gdbsupport/enum-flags.h" diff --git a/gdb/f-lang.h b/gdb/f-lang.h index 6a97fabbd48a..afff9c8217d5 100644 --- a/gdb/f-lang.h +++ b/gdb/f-lang.h @@ -23,6 +23,7 @@ #ifndef F_LANG_H #define F_LANG_H +#include "language.h" #include "valprint.h" struct type_print_options; diff --git a/gdb/frame.h b/gdb/frame.h index cf8bbc6a52bd..5c292cd2b952 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -71,7 +71,6 @@ */ -#include "language.h" #include "cli/cli-option.h" #include "gdbsupport/common-debug.h" diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index 2f000e634a4f..136630cda3b6 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -19,6 +19,7 @@ along with this program. If not, see . */ #include "defs.h" +#include "language.h" #include "value.h" #include "cp-abi.h" #include "cp-support.h" diff --git a/gdb/go-lang.h b/gdb/go-lang.h index 523501bba4c3..5a098dc8a3eb 100644 --- a/gdb/go-lang.h +++ b/gdb/go-lang.h @@ -22,6 +22,7 @@ struct type_print_options; +#include "language.h" #include "gdbtypes.h" #include "symtab.h" #include "value.h" diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c index 67afddd5c391..6d1be6ff8b36 100644 --- a/gdb/m2-typeprint.c +++ b/gdb/m2-typeprint.c @@ -17,6 +17,7 @@ along with this program. If not, see . */ #include "defs.h" +#include "language.h" #include "gdbsupport/gdb_obstack.h" #include "bfd.h" /* Binary File Description */ #include "symtab.h" diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c index 32d007235660..ac721aa0ca1e 100644 --- a/gdb/ppc-sysv-tdep.c +++ b/gdb/ppc-sysv-tdep.c @@ -19,6 +19,7 @@ along with this program. If not, see . */ #include "defs.h" +#include "language.h" #include "gdbcore.h" #include "inferior.h" #include "regcache.h" diff --git a/gdb/python/py-disasm.c b/gdb/python/py-disasm.c index a25252b43067..242cf6a57582 100644 --- a/gdb/python/py-disasm.c +++ b/gdb/python/py-disasm.c @@ -19,6 +19,7 @@ #include "defs.h" #include "python-internal.h" +#include "language.h" #include "dis-asm.h" #include "arch-utils.h" #include "charset.h" diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c index cbce9457755c..fac51a420320 100644 --- a/gdb/python/py-frame.c +++ b/gdb/python/py-frame.c @@ -18,6 +18,7 @@ along with this program. If not, see . */ #include "defs.h" +#include "language.h" #include "charset.h" #include "block.h" #include "frame.h" diff --git a/gdb/thread.c b/gdb/thread.c index cd7f1a7d5bb4..10ecda63e8b7 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -20,6 +20,7 @@ along with this program. If not, see . */ #include "defs.h" +#include "language.h" #include "symtab.h" #include "frame.h" #include "inferior.h" -- 2.38.1