From: Simon Marchi <simon.marchi@efficios.com>
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(-)
@@ -21,6 +21,7 @@
#include "defs.h"
#include "frame.h"
+#include "language.h"
#include "gdbcmd.h"
#include "gdbcore.h"
#include "dis-asm.h"
@@ -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"
@@ -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"
@@ -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"
@@ -20,6 +20,7 @@
#include "defs.h"
#include "cp-support.h"
+#include "language.h"
#include "demangle.h"
#include "gdbcmd.h"
#include "dictionary.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"
@@ -23,6 +23,7 @@
#ifndef F_LANG_H
#define F_LANG_H
+#include "language.h"
#include "valprint.h"
struct type_print_options;
@@ -71,7 +71,6 @@
*/
-#include "language.h"
#include "cli/cli-option.h"
#include "gdbsupport/common-debug.h"
@@ -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"
@@ -22,6 +22,7 @@
struct type_print_options;
+#include "language.h"
#include "gdbtypes.h"
#include "symtab.h"
#include "value.h"
@@ -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"
@@ -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"
@@ -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"
@@ -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"
@@ -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"