gdb: remove language.h include from frame.h

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>
This commit is contained in:
Simon Marchi 2022-12-13 22:34:31 -05:00
parent 6ad66f21fc
commit 83b6e1f1c5
16 changed files with 15 additions and 1 deletions

View file

@ -21,6 +21,7 @@
#include "defs.h"
#include "frame.h"
#include "language.h"
#include "gdbcmd.h"
#include "gdbcore.h"
#include "dis-asm.h"

View 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"

View 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"

View 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"

View file

@ -20,6 +20,7 @@
#include "defs.h"
#include "cp-support.h"
#include "language.h"
#include "demangle.h"
#include "gdbcmd.h"
#include "dictionary.h"

View 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"

View file

@ -23,6 +23,7 @@
#ifndef F_LANG_H
#define F_LANG_H
#include "language.h"
#include "valprint.h"
struct type_print_options;

View file

@ -71,7 +71,6 @@
*/
#include "language.h"
#include "cli/cli-option.h"
#include "gdbsupport/common-debug.h"

View 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"

View file

@ -22,6 +22,7 @@
struct type_print_options;
#include "language.h"
#include "gdbtypes.h"
#include "symtab.h"
#include "value.h"

View 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"

View 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.

View 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"

View 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"

View 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"

View 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"