gdb: remove language.h include from frame.h
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 14 Dec 2022 03:34:31 +0000 (22:34 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 20 Jan 2023 19:48:56 +0000 (14:48 -0500)
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
Reviewed-By: Bruno Larsen <blarsen@redhat.com>
16 files changed:
gdb/aarch64-tdep.c
gdb/amd64-tdep.c
gdb/arm-tdep.c
gdb/cp-abi.c
gdb/cp-support.c
gdb/expop.h
gdb/f-lang.h
gdb/frame.h
gdb/gnu-v3-abi.c
gdb/go-lang.h
gdb/m2-typeprint.c
gdb/namespace.c
gdb/ppc-sysv-tdep.c
gdb/python/py-disasm.c
gdb/python/py-frame.c
gdb/thread.c

index 7bf36d825c81376ffd8988ae986e5a0b8e991c0a..aeca30587a53bf28512b62992f944a235f8f5ca8 100644 (file)
@@ -21,6 +21,7 @@
 #include "defs.h"
 
 #include "frame.h"
+#include "language.h"
 #include "gdbcmd.h"
 #include "gdbcore.h"
 #include "dis-asm.h"
index 76e843ecc35fa1caf4e69b27b421fbccc69f9756..70d0d0f33183f2622fca591726ccc6dfa4ebf15a 100644 (file)
@@ -20,6 +20,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
+#include "language.h"
 #include "opcode/i386.h"
 #include "dis-asm.h"
 #include "arch-utils.h"
index 51ec5236af144102a09af1f7fc89875bbd2605d1..56936bd7b5519cbd5465d2cd990df26b007a1d5e 100644 (file)
@@ -22,6 +22,7 @@
 #include <ctype.h>             /* XXX for isupper ().  */
 
 #include "frame.h"
+#include "language.h"
 #include "inferior.h"
 #include "infrun.h"
 #include "gdbcmd.h"
index e9e4224c99da660177e30b6fbe9384a8f339b772..87a3b5c0a9673eec50fb584aae61db71d4328429 100644 (file)
@@ -18,6 +18,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
+#include "language.h"
 #include "value.h"
 #include "cp-abi.h"
 #include "command.h"
index b7ed2101b784147c9daa2be31b1b4d790501fe4e..6a96f9f213e8c8a6ea7bf9ba5228ab4bddfd33ba 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "defs.h"
 #include "cp-support.h"
+#include "language.h"
 #include "demangle.h"
 #include "gdbcmd.h"
 #include "dictionary.h"
index de74e88998f3feda4767b9aa72b8b99d54bf4536..9e6ab0dd244a79cff907ae93303941f863af1af6 100644 (file)
@@ -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"
index b3c13927f262aac6933db2abb983e6ee1be343e9..673e273d31aed26a26916f8754c5b7f1e41c021c 100644 (file)
@@ -23,6 +23,7 @@
 #ifndef F_LANG_H
 #define F_LANG_H
 
+#include "language.h"
 #include "valprint.h"
 
 struct type_print_options;
index 5935465262de8a14c2a97a2c3fbcd99d6d3e82fb..2c2e320bf7dfb718da14e7e91254a7413a3ea765 100644 (file)
@@ -71,7 +71,6 @@
 
    */
 
-#include "language.h"
 #include "cli/cli-option.h"
 #include "gdbsupport/common-debug.h"
 
index 7a0a70f1e11b4c452b93d49f68e4a8b24f66be90..6f5b87f13088e16e84d11f0b0ffcfbcbb90eb52d 100644 (file)
@@ -19,6 +19,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
+#include "language.h"
 #include "value.h"
 #include "cp-abi.h"
 #include "cp-support.h"
index f0929cc3ac54dd2d0e976ee2e86ac1f9325e4697..1820b4c96584c5027683288f63ad2e47c6be2ff7 100644 (file)
@@ -22,6 +22,7 @@
 
 struct type_print_options;
 
+#include "language.h"
 #include "gdbtypes.h"
 #include "symtab.h"
 #include "value.h"
index 62917e8a345e9c5deda0c04ae3433c70b7046411..00a328852e9e8fa8f8f80945ef17a4b21d09755f 100644 (file)
@@ -17,6 +17,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
+#include "language.h"
 #include "gdbsupport/gdb_obstack.h"
 #include "bfd.h"               /* Binary File Description */
 #include "symtab.h"
index 735b102e8b59b10fa805250631a3e27da96d7088..bdf5e8ffab434a517d3075ffc329fa5877ecedc0 100644 (file)
@@ -19,6 +19,7 @@
 #include "defs.h"
 #include "namespace.h"
 #include "frame.h"
+#include "symtab.h"
 
 /* Add a using directive to USING_DIRECTIVES.  If the using directive
    in question has already been added, don't add it twice.
index 9cea63307e6acd506eed2862c5ba3f4494aa988a..3df56c8b75c87faf26433f610566541cb6492e45 100644 (file)
@@ -19,6 +19,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
+#include "language.h"
 #include "gdbcore.h"
 #include "inferior.h"
 #include "regcache.h"
index 13ac85c097d3313a3a77aa84d06089857ccb420d..c3d8d8a79941e199ae6f4d3a385af9fcf16cc650 100644 (file)
@@ -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"
index 6d4e8c20dc12f54670b5f0bf45f0b381c27e2191..f66d22bfa3d8ad0b378c2708d26486bf6658a7bc 100644 (file)
@@ -18,6 +18,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
+#include "language.h"
 #include "charset.h"
 #include "block.h"
 #include "frame.h"
index efcbe6496431a84ddf6eed4edc08d61c3cdb5c2c..1a852f702069f4324b976d1813f93d7c41a9c5fc 100644 (file)
@@ -20,6 +20,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
+#include "language.h"
 #include "symtab.h"
 #include "frame.h"
 #include "inferior.h"