Don't include gdbarch.h from defs.h

I touched symtab.h and was surprised to see how many files were
rebuilt.  I looked into it a bit, and found that defs.h includes
gdbarch.h, which in turn includes many things.

gdbarch.h is only needed by a minority ofthe files in gdb, so this
patch removes the include from defs.h and updates the fallout.

I did "wc -l" on the files in build/gdb/.deps; this patch reduces the
line count from 139935 to 137030; so there are definitely future
build-time savings here.

Note that while I configured with --enable-targets=all, it's possible
that some *-nat.c file needs an update.  I could not test all of
these.  The buildbot caught a few problems along these lines.

gdb/ChangeLog
2019-07-10  Tom Tromey  <tom@tromey.com>

	* defs.h: Don't include gdbarch.h.
	* aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
	alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
	ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
	cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
	cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
	compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
	cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
	dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
	dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
	dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
	frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
	go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
	i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
	linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
	mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
	objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
	parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
	record-btrace.c, record.h, regcache-dump.c, regcache.h,
	riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
	sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
	sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
	sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
	target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
	tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
	utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
	xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
	* s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
This commit is contained in:
Tom Tromey 2019-06-09 15:21:02 -06:00 committed by Tom Tromey
parent f06f1252b0
commit 0d12e84cfc
103 changed files with 144 additions and 8 deletions

View File

@ -1,3 +1,34 @@
2019-07-10 Tom Tromey <tom@tromey.com>
* defs.h: Don't include gdbarch.h.
* aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
record-btrace.c, record.h, regcache-dump.c, regcache.h,
riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
* s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2019-07-10 Tom Tromey <tromey@adacore.com> 2019-07-10 Tom Tromey <tromey@adacore.com>
* ada-lang.h (is_ada_exception_catchpoint): Declare. * ada-lang.h (is_ada_exception_catchpoint): Declare.

View File

@ -24,6 +24,7 @@
#include "inferior.h" #include "inferior.h"
#include "ravenscar-thread.h" #include "ravenscar-thread.h"
#include "aarch64-ravenscar-thread.h" #include "aarch64-ravenscar-thread.h"
#include "gdbarch.h"
#define NO_OFFSET -1 #define NO_OFFSET -1

View File

@ -57,6 +57,7 @@
#include "record.h" #include "record.h"
#include "record-full.h" #include "record-full.h"
#include "arch/aarch64-insn.h" #include "arch/aarch64-insn.h"
#include "gdbarch.h"
#include "opcode/aarch64.h" #include "opcode/aarch64.h"
#include <algorithm> #include <algorithm>

View File

@ -20,6 +20,8 @@
#ifndef ALPHA_BSD_TDEP_H #ifndef ALPHA_BSD_TDEP_H
#define ALPHA_BSD_TDEP_H #define ALPHA_BSD_TDEP_H
#include "gdbarch.h"
struct regcache; struct regcache;
void alphabsd_supply_reg (struct regcache *, const char *, int); void alphabsd_supply_reg (struct regcache *, const char *, int);

View File

@ -25,6 +25,7 @@
#include "regcache.h" #include "regcache.h"
#include "linux-tdep.h" #include "linux-tdep.h"
#include "alpha-tdep.h" #include "alpha-tdep.h"
#include "gdbarch.h"
/* This enum represents the signals' numbers on the Alpha /* This enum represents the signals' numbers on the Alpha
architecture. It just contains the signal definitions which are architecture. It just contains the signal definitions which are

View File

@ -27,6 +27,7 @@
#include "alpha-tdep.h" #include "alpha-tdep.h"
#include "mdebugread.h" #include "mdebugread.h"
#include "gdbarch.h"
/* FIXME: Some of this code should perhaps be merged with mips. */ /* FIXME: Some of this code should perhaps be merged with mips. */

View File

@ -20,7 +20,8 @@
#ifndef ARCH_UTILS_H #ifndef ARCH_UTILS_H
#define ARCH_UTILS_H #define ARCH_UTILS_H
struct gdbarch; #include "gdbarch.h"
struct frame_info; struct frame_info;
struct minimal_symbol; struct minimal_symbol;
struct type; struct type;

View File

@ -20,13 +20,13 @@
#define ARM_TDEP_H #define ARM_TDEP_H
/* Forward declarations. */ /* Forward declarations. */
struct gdbarch;
struct regset; struct regset;
struct address_space; struct address_space;
struct get_next_pcs; struct get_next_pcs;
struct arm_get_next_pcs; struct arm_get_next_pcs;
struct gdb_get_next_pcs; struct gdb_get_next_pcs;
#include "gdbarch.h"
#include "arch/arm.h" #include "arch/arm.h"
#include "infrun.h" #include "infrun.h"

View File

@ -23,6 +23,7 @@
#include "defs.h" #include "defs.h"
#include "ax.h" #include "ax.h"
#include "gdbarch.h"
#include "value.h" #include "value.h"
#include "user-regs.h" #include "user-regs.h"

View File

@ -34,6 +34,7 @@
#include "gdbsupport/rsp-low.h" #include "gdbsupport/rsp-low.h"
#include "gdbcmd.h" #include "gdbcmd.h"
#include "cli/cli-utils.h" #include "cli/cli-utils.h"
#include "gdbarch.h"
/* For maintenance commands. */ /* For maintenance commands. */
#include "record-btrace.h" #include "record-btrace.h"

View File

@ -18,6 +18,7 @@
#include "defs.h" #include "defs.h"
#include "buildsym-legacy.h" #include "buildsym-legacy.h"
#include "symtab.h"
/* The work-in-progress of the compunit we are building. /* The work-in-progress of the compunit we are building.
This is created first, before any subfiles by start_symtab. */ This is created first, before any subfiles by start_symtab. */

View File

@ -19,6 +19,8 @@
#if !defined (BUILDSYM_H) #if !defined (BUILDSYM_H)
#define BUILDSYM_H 1 #define BUILDSYM_H 1
#include "gdb_obstack.h"
struct objfile; struct objfile;
struct symbol; struct symbol;
struct addrmap; struct addrmap;

View File

@ -35,6 +35,7 @@
#include "gdb_obstack.h" #include "gdb_obstack.h"
#include <ctype.h> #include <ctype.h>
#include "gdbcore.h" #include "gdbcore.h"
#include "gdbarch.h"
/* Given a C string type, STR_TYPE, return the corresponding target /* Given a C string type, STR_TYPE, return the corresponding target
character set name. */ character set name. */

View File

@ -19,6 +19,7 @@
#include "gdbsupport/filestuff.h" #include "gdbsupport/filestuff.h"
#include "gdbsupport/gdb_optional.h" #include "gdbsupport/gdb_optional.h"
#include "completer.h"
/* Chain containing all defined commands. */ /* Chain containing all defined commands. */

View File

@ -25,6 +25,7 @@
#include "command.h" #include "command.h"
#include "gdb_regex.h" #include "gdb_regex.h"
#include "cli-script.h" #include "cli-script.h"
#include "completer.h"
#if 0 #if 0
/* FIXME: cagney/2002-03-17: Once cmd_type() has been removed, ``enum /* FIXME: cagney/2002-03-17: Once cmd_type() has been removed, ``enum

View File

@ -32,6 +32,7 @@
#include "gdb_bfd.h" #include "gdb_bfd.h"
#include "gdbsupport/filestuff.h" #include "gdbsupport/filestuff.h"
#include "gdbsupport/byte-vector.h" #include "gdbsupport/byte-vector.h"
#include "gdbarch.h"
static gdb::unique_xmalloc_ptr<char> static gdb::unique_xmalloc_ptr<char>
scan_expression (const char **cmd, const char *def) scan_expression (const char **cmd, const char *def)

View File

@ -17,6 +17,8 @@
#ifndef CLI_CLI_SCRIPT_H #ifndef CLI_CLI_SCRIPT_H
#define CLI_CLI_SCRIPT_H #define CLI_CLI_SCRIPT_H
#include "gdbsupport/function-view.h"
struct ui_file; struct ui_file;
struct cmd_list_element; struct cmd_list_element;

View File

@ -21,6 +21,7 @@
#define CLI_CLI_STYLE_H #define CLI_CLI_STYLE_H
#include "ui-file.h" #include "ui-file.h"
#include "command.h"
/* A single CLI style option. */ /* A single CLI style option. */
class cli_style_option class cli_style_option

View File

@ -22,6 +22,7 @@
#if !defined (COFF_PE_READ_H) #if !defined (COFF_PE_READ_H)
#define COFF_PE_READ_H #define COFF_PE_READ_H
class minimal_symbol_reader;
struct objfile; struct objfile;
struct bfd; struct bfd;

View File

@ -29,6 +29,7 @@
#include "regcache.h" #include "regcache.h"
#include "gdbsupport/function-view.h" #include "gdbsupport/function-view.h"
#include "gdbsupport/preprocessor.h" #include "gdbsupport/preprocessor.h"
#include "gdbarch.h"
/* See compile-internal.h. */ /* See compile-internal.h. */

View File

@ -19,6 +19,7 @@
#include "gdbsupport/enum-flags.h" #include "gdbsupport/enum-flags.h"
#include "gcc-cp-plugin.h" #include "gcc-cp-plugin.h"
#include "symtab.h"
struct type; struct type;
struct block; struct block;

View File

@ -30,6 +30,7 @@
#include "dwarf2-frame.h" #include "dwarf2-frame.h"
#include "gdbsupport/gdb_vecs.h" #include "gdbsupport/gdb_vecs.h"
#include "value.h" #include "value.h"
#include "gdbarch.h"

View File

@ -32,6 +32,7 @@
#include "completer.h" #include "completer.h"
#include "observable.h" #include "observable.h"
#include "cli/cli-utils.h" #include "cli/cli-utils.h"
#include "gdbarch.h"
/* You can have any number of hooks for `exec_file_command' command to /* You can have any number of hooks for `exec_file_command' command to
call. If there's only one hook, it is set in exec_file_display call. If there's only one hook, it is set in exec_file_display

View File

@ -36,6 +36,7 @@
#include "extension.h" #include "extension.h"
#include "typeprint.h" #include "typeprint.h"
#include "gdbsupport/byte-vector.h" #include "gdbsupport/byte-vector.h"
#include "gdbarch.h"
static struct obstack dont_print_vb_obstack; static struct obstack dont_print_vb_obstack;
static struct obstack dont_print_statmem_obstack; static struct obstack dont_print_statmem_obstack;

View File

@ -26,6 +26,7 @@
#include "linux-tdep.h" #include "linux-tdep.h"
#include "solib-svr4.h" #include "solib-svr4.h"
#include "symtab.h" #include "symtab.h"
#include "gdbarch.h"
#include "cris-tdep.h" #include "cris-tdep.h"

View File

@ -32,6 +32,7 @@
#include <ctype.h> #include <ctype.h>
#include <algorithm> #include <algorithm>
#include "gdbsupport/filestuff.h" #include "gdbsupport/filestuff.h"
#include "gdbarch.h"
/* The CTF target. */ /* The CTF target. */

View File

@ -25,6 +25,7 @@
#include "c-lang.h" #include "c-lang.h"
#include "demangle.h" #include "demangle.h"
#include "cp-support.h" #include "cp-support.h"
#include "gdbarch.h"
/* The name of the symbol to use to get the name of the main subprogram. */ /* The name of the symbol to use to get the name of the main subprogram. */
static const char D_MAIN[] = "D main"; static const char D_MAIN[] = "D main";

View File

@ -24,6 +24,7 @@
#include "namespace.h" #include "namespace.h"
#include "d-lang.h" #include "d-lang.h"
#include "gdb_obstack.h" #include "gdb_obstack.h"
#include "gdbarch.h"
/* This returns the length of first component of NAME, which should be /* This returns the length of first component of NAME, which should be
the demangled name of a D variable/function/method/etc. the demangled name of a D variable/function/method/etc.

View File

@ -24,6 +24,7 @@
#include "target-dcache.h" #include "target-dcache.h"
#include "inferior.h" #include "inferior.h"
#include "splay-tree.h" #include "splay-tree.h"
#include "gdbarch.h"
/* Commands with a prefix of `{set,show} dcache'. */ /* Commands with a prefix of `{set,show} dcache'. */
static struct cmd_list_element *dcache_set_list = NULL; static struct cmd_list_element *dcache_set_list = NULL;

View File

@ -519,9 +519,6 @@ enum symbol_needs_kind
SYMBOL_NEEDS_FRAME SYMBOL_NEEDS_FRAME
}; };
/* Dynamic target-system-dependent parameters for GDB. */
#include "gdbarch.h"
/* In findvar.c. */ /* In findvar.c. */
template<typename T, typename = RequireLongest<T>> template<typename T, typename = RequireLongest<T>>

View File

@ -23,6 +23,7 @@
#include "solib-target.h" #include "solib-target.h"
#include "inferior.h" #include "inferior.h"
#include "dicos-tdep.h" #include "dicos-tdep.h"
#include "gdbarch.h"
void void
dicos_init_abi (struct gdbarch *gdbarch) dicos_init_abi (struct gdbarch *gdbarch)

View File

@ -28,6 +28,7 @@
#include "dictionary.h" #include "dictionary.h"
#include "safe-ctype.h" #include "safe-ctype.h"
#include <unordered_map> #include <unordered_map>
#include "language.h"
/* This file implements dictionaries, which are tables that associate /* This file implements dictionaries, which are tables that associate
symbols to names. They are represented by an opaque type 'struct symbols to names. They are represented by an opaque type 'struct

View File

@ -23,6 +23,7 @@
#if GDB_SELF_TEST #if GDB_SELF_TEST
#include "gdbsupport/selftest.h" #include "gdbsupport/selftest.h"
#include "selftest-arch.h" #include "selftest-arch.h"
#include "gdbarch.h"
namespace selftests { namespace selftests {

View File

@ -29,6 +29,7 @@
#include "observable.h" #include "observable.h"
#include "gdbthread.h" #include "gdbthread.h"
#include "infcall.h" #include "infcall.h"
#include "gdbarch.h"
struct dummy_frame_id struct dummy_frame_id
{ {

View File

@ -24,6 +24,7 @@
struct infcall_suspend_state; struct infcall_suspend_state;
struct frame_unwind; struct frame_unwind;
class thread_info;
/* Push the information needed to identify, and unwind from, a dummy /* Push the information needed to identify, and unwind from, a dummy
frame onto the dummy frame stack. */ frame onto the dummy frame stack. */

View File

@ -28,6 +28,7 @@
#include "regcache.h" #include "regcache.h"
#include "value.h" #include "value.h"
#include "dwarf2-frame.h" #include "dwarf2-frame.h"
#include "gdbarch.h"
/* Contains struct tailcall_cache indexed by next_bottom_frame. */ /* Contains struct tailcall_cache indexed by next_bottom_frame. */
static htab_t cache_htab; static htab_t cache_htab;

View File

@ -28,6 +28,7 @@
#include "dwarf2expr.h" #include "dwarf2expr.h"
#include "dwarf2loc.h" #include "dwarf2loc.h"
#include "gdbsupport/underlying.h" #include "gdbsupport/underlying.h"
#include "gdbarch.h"
/* Cookie for gdbarch data. */ /* Cookie for gdbarch data. */

View File

@ -20,6 +20,8 @@
#if !defined (EXPRESSION_H) #if !defined (EXPRESSION_H)
#define EXPRESSION_H 1 #define EXPRESSION_H 1
#include "gdbtypes.h"
/* While parsing expressions we need to track the innermost lexical block /* While parsing expressions we need to track the innermost lexical block
that we encounter. In some situations we need to track the innermost that we encounter. In some situations we need to track the innermost
block just for symbols, and in other situations we want to track the block just for symbols, and in other situations we want to track the

View File

@ -35,6 +35,7 @@
#include "charset.h" #include "charset.h"
#include "c-lang.h" #include "c-lang.h"
#include "target-float.h" #include "target-float.h"
#include "gdbarch.h"
#include <math.h> #include <math.h>

View File

@ -21,6 +21,7 @@
#include "frame-base.h" #include "frame-base.h"
#include "frame.h" #include "frame.h"
#include "gdb_obstack.h" #include "gdb_obstack.h"
#include "gdbarch.h"
/* A default frame base implementations. If it wasn't for the old /* A default frame base implementations. If it wasn't for the old
DEPRECATED_FRAME_LOCALS_ADDRESS and DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS and DEPRECATED_FRAME_ARGS_ADDRESS,

View File

@ -26,6 +26,7 @@
#include "regcache.h" #include "regcache.h"
#include "gdb_obstack.h" #include "gdb_obstack.h"
#include "target.h" #include "target.h"
#include "gdbarch.h"
static struct gdbarch_data *frame_unwind_data; static struct gdbarch_data *frame_unwind_data;

View File

@ -31,6 +31,7 @@
#include "frame-unwind.h" #include "frame-unwind.h"
#include "regset.h" #include "regset.h"
#include "linux-tdep.h" #include "linux-tdep.h"
#include "gdbarch.h"
/* Define the size (in bytes) of an FR-V instruction. */ /* Define the size (in bytes) of an FR-V instruction. */
static const int frv_instr_size = 4; static const int frv_instr_size = 4;

View File

@ -27,6 +27,7 @@
#include "test-target.h" #include "test-target.h"
#include "target-float.h" #include "target-float.h"
#include "gdbsupport/def-vector.h" #include "gdbsupport/def-vector.h"
#include "gdbarch.h"
namespace selftests { namespace selftests {

View File

@ -50,7 +50,6 @@
#include "gdbsupport/enum-flags.h" #include "gdbsupport/enum-flags.h"
#include "gdbsupport/underlying.h" #include "gdbsupport/underlying.h"
#include "gdbsupport/print-utils.h" #include "gdbsupport/print-utils.h"
#include "gdbarch.h"
/* Forward declarations for prototypes. */ /* Forward declarations for prototypes. */
struct field; struct field;

View File

@ -40,6 +40,7 @@
#include "go-lang.h" #include "go-lang.h"
#include "c-lang.h" #include "c-lang.h"
#include "parser-defs.h" #include "parser-defs.h"
#include "gdbarch.h"
#include <ctype.h> #include <ctype.h>

View File

@ -27,6 +27,7 @@
#include "hppa-tdep.h" #include "hppa-tdep.h"
#include "hppa-bsd-tdep.h" #include "hppa-bsd-tdep.h"
#include "gdbarch.h"
/* From <machine/mcontext.h>. */ /* From <machine/mcontext.h>. */
static int hppanbsd_mc_reg_offset[] = static int hppanbsd_mc_reg_offset[] =

View File

@ -24,6 +24,7 @@
#include "hppa-tdep.h" #include "hppa-tdep.h"
#include "hppa-bsd-tdep.h" #include "hppa-bsd-tdep.h"
#include "gdbarch.h"
/* Core file support. */ /* Core file support. */

View File

@ -20,6 +20,7 @@
#include "defs.h" #include "defs.h"
#include "osabi.h" #include "osabi.h"
#include "dicos-tdep.h" #include "dicos-tdep.h"
#include "gdbarch.h"
static void static void
i386_dicos_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) i386_dicos_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)

View File

@ -20,6 +20,7 @@
#ifndef I386_TDEP_H #ifndef I386_TDEP_H
#define I386_TDEP_H #define I386_TDEP_H
#include "gdbarch.h"
#include "infrun.h" #include "infrun.h"
struct frame_info; struct frame_info;

View File

@ -23,6 +23,7 @@
#include "osabi.h" #include "osabi.h"
#include "gdbtypes.h" #include "gdbtypes.h"
#include "gdbcore.h" #include "gdbcore.h"
#include "gdbarch.h"
#ifdef HAVE_LIBUNWIND_IA64_H #ifdef HAVE_LIBUNWIND_IA64_H

View File

@ -33,6 +33,7 @@
#include "gdbthread.h" #include "gdbthread.h"
#include "nat/fork-inferior.h" #include "nat/fork-inferior.h"
#include "utils.h" #include "utils.h"
#include "gdbarch.h"

View File

@ -25,6 +25,7 @@
struct ui_out; struct ui_out;
struct interp; struct interp;
struct ui; struct ui;
class completion_tracker;
typedef struct interp *(*interp_factory_func) (const char *name); typedef struct interp *(*interp_factory_func) (const char *name);

View File

@ -45,6 +45,7 @@
#include "frame.h" #include "frame.h"
#include "c-lang.h" #include "c-lang.h"
#include <algorithm> #include <algorithm>
#include "gdbarch.h"
static int unk_lang_parser (struct parser_state *); static int unk_lang_parser (struct parser_state *);

View File

@ -24,6 +24,7 @@
#include "record.h" #include "record.h"
#include "record-full.h" #include "record-full.h"
#include "linux-record.h" #include "linux-record.h"
#include "gdbarch.h"
/* These macros are the values of the first argument of system call /* These macros are the values of the first argument of system call
"sys_ptrace". The values of these macros were obtained from Linux "sys_ptrace". The values of these macros were obtained from Linux

View File

@ -19,6 +19,8 @@
#ifndef LOCATION_H #ifndef LOCATION_H
#define LOCATION_H #define LOCATION_H
#include "symtab.h"
struct language_defn; struct language_defn;
struct event_location; struct event_location;

View File

@ -27,6 +27,7 @@
#include "m2-lang.h" #include "m2-lang.h"
#include "c-lang.h" #include "c-lang.h"
#include "valprint.h" #include "valprint.h"
#include "gdbarch.h"
static void m2_printchar (int, struct type *, struct ui_file *); static void m2_printchar (int, struct type *, struct ui_file *);
static void m2_emit_char (int, struct type *, struct ui_file *, int); static void m2_emit_char (int, struct type *, struct ui_file *, int);

View File

@ -36,6 +36,7 @@
#include "m32r-tdep.h" #include "m32r-tdep.h"
#include "linux-tdep.h" #include "linux-tdep.h"
#include "gdbarch.h"

View File

@ -24,6 +24,8 @@
#include "breakpoint.h" #include "breakpoint.h"
#include "inferior.h" #include "inferior.h"
#include "target.h" #include "target.h"
#include "gdbarch.h"
/* Insert a breakpoint on targets that don't have any better /* Insert a breakpoint on targets that don't have any better
breakpoint support. We read the contents of the target location breakpoint support. We read the contents of the target location
and stash it, then overwrite it with a breakpoint instruction. and stash it, then overwrite it with a breakpoint instruction.

View File

@ -29,6 +29,7 @@
#include "breakpoint.h" #include "breakpoint.h"
#include "cli/cli-utils.h" #include "cli/cli-utils.h"
#include <algorithm> #include <algorithm>
#include "gdbarch.h"
static std::vector<mem_region> user_mem_region_list, target_mem_region_list; static std::vector<mem_region> user_mem_region_list, target_mem_region_list;
static std::vector<mem_region> *mem_region_list = &target_mem_region_list; static std::vector<mem_region> *mem_region_list = &target_mem_region_list;

View File

@ -30,6 +30,7 @@
#include "trad-frame.h" #include "trad-frame.h"
#include "tramp-frame.h" #include "tramp-frame.h"
#include "linux-tdep.h" #include "linux-tdep.h"
#include "gdbarch.h"
/* Transliterated from <asm-mn10300/elf.h>... */ /* Transliterated from <asm-mn10300/elf.h>... */
#define MN10300_ELF_NGREG 28 #define MN10300_ELF_NGREG 28

View File

@ -29,6 +29,7 @@
#include "linux-tdep.h" #include "linux-tdep.h"
#include "glibc-tdep.h" #include "glibc-tdep.h"
#include "nios2-tdep.h" #include "nios2-tdep.h"
#include "gdbarch.h"
/* Core file and register set support. */ /* Core file and register set support. */

View File

@ -33,6 +33,7 @@
#include "gdbsupport/next-iterator.h" #include "gdbsupport/next-iterator.h"
#include "gdbsupport/safe-iterator.h" #include "gdbsupport/safe-iterator.h"
#include "bcache.h" #include "bcache.h"
#include "gdbarch.h"
struct htab; struct htab;
struct objfile_data; struct objfile_data;

View File

@ -26,6 +26,7 @@
#include "language.h" #include "language.h"
#include "varobj.h" #include "varobj.h"
#include "c-lang.h" #include "c-lang.h"
#include "gdbarch.h"
/* This macro generates enum values from a given type. */ /* This macro generates enum values from a given type. */

View File

@ -25,6 +25,7 @@
#include "regset.h" #include "regset.h"
#include "tramp-frame.h" #include "tramp-frame.h"
#include "trad-frame.h" #include "trad-frame.h"
#include "gdbarch.h"
/* Define the general register mapping. The kernel puts the PC at offset 0, /* Define the general register mapping. The kernel puts the PC at offset 0,
gdb puts it at offset 32. Register x0 is always 0 and can be ignored. gdb puts it at offset 32. Register x0 is always 0 and can be ignored.

View File

@ -31,6 +31,7 @@
#include "value.h" #include "value.h"
#include <ctype.h> #include <ctype.h>
#include "c-lang.h" #include "c-lang.h"
#include "gdbarch.h"
/* All GPC versions until now (2007-09-27) also define a symbol called /* All GPC versions until now (2007-09-27) also define a symbol called
'_p_initialize'. Check for the presence of this symbol first. */ '_p_initialize'. Check for the presence of this symbol first. */

View File

@ -25,6 +25,7 @@
#include "gdbsupport/vec.h" #include "gdbsupport/vec.h"
#include "expression.h" #include "expression.h"
#include "symtab.h"
struct block; struct block;
struct language_defn; struct language_defn;

View File

@ -20,6 +20,8 @@
#ifndef PPC_TDEP_H #ifndef PPC_TDEP_H
#define PPC_TDEP_H #define PPC_TDEP_H
#include "gdbarch.h"
struct gdbarch; struct gdbarch;
struct frame_info; struct frame_info;
struct value; struct value;

View File

@ -20,6 +20,8 @@
#if !defined (PROBE_H) #if !defined (PROBE_H)
#define PROBE_H 1 #define PROBE_H 1
#include "symtab.h"
struct event_location; struct event_location;
struct linespec_result; struct linespec_result;

View File

@ -31,7 +31,7 @@
#include "regcache.h" #include "regcache.h"
#include "inf-child.h" #include "inf-child.h"
#include "nat/fork-inferior.h" #include "nat/fork-inferior.h"
#include "gdbsupport/filestuff.h" #include "gdbarch.h"
#define _STRUCTURED_PROC 1 /* Should be done by configure script. */ #define _STRUCTURED_PROC 1 /* Should be done by configure script. */

View File

@ -26,6 +26,7 @@
#include "py-record-btrace.h" #include "py-record-btrace.h"
#include "record-btrace.h" #include "record-btrace.h"
#include "disasm.h" #include "disasm.h"
#include "gdbarch.h"
#if defined (IS_PY3K) #if defined (IS_PY3K)

View File

@ -41,6 +41,7 @@
#include "gdbsupport/vec.h" #include "gdbsupport/vec.h"
#include "inferior.h" #include "inferior.h"
#include <algorithm> #include <algorithm>
#include "gdbarch.h"
static const target_info record_btrace_target_info = { static const target_info record_btrace_target_info = {
"record-btrace", "record-btrace",

View File

@ -23,6 +23,7 @@
#include "target/waitstatus.h" /* For enum target_stop_reason. */ #include "target/waitstatus.h" /* For enum target_stop_reason. */
#include "gdbsupport/enum-flags.h" #include "gdbsupport/enum-flags.h"
struct address_space;
struct cmd_list_element; struct cmd_list_element;
struct inferior; struct inferior;

View File

@ -23,6 +23,7 @@
#include "remote.h" #include "remote.h"
#include "reggroups.h" #include "reggroups.h"
#include "target.h" #include "target.h"
#include "gdbarch.h"
/* Dump registers from regcache, used for dumping raw registers and /* Dump registers from regcache, used for dumping raw registers and
cooked registers. */ cooked registers. */

View File

@ -21,12 +21,14 @@
#define REGCACHE_H #define REGCACHE_H
#include "gdbsupport/common-regcache.h" #include "gdbsupport/common-regcache.h"
#include "gdbsupport/function-view.h"
#include <forward_list> #include <forward_list>
struct regcache; struct regcache;
struct regset; struct regset;
struct gdbarch; struct gdbarch;
struct address_space; struct address_space;
class thread_info;
extern struct regcache *get_current_regcache (void); extern struct regcache *get_current_regcache (void);
extern struct regcache *get_thread_regcache (ptid_t ptid); extern struct regcache *get_thread_regcache (ptid_t ptid);

View File

@ -25,6 +25,7 @@
#include "target.h" #include "target.h"
#include "trad-frame.h" #include "trad-frame.h"
#include "tramp-frame.h" #include "tramp-frame.h"
#include "gdbarch.h"
/* Register maps. */ /* Register maps. */

View File

@ -25,6 +25,7 @@
#include "regset.h" #include "regset.h"
#include "tramp-frame.h" #include "tramp-frame.h"
#include "trad-frame.h" #include "trad-frame.h"
#include "gdbarch.h"
/* Define the general register mapping. The kernel puts the PC at offset 0, /* Define the general register mapping. The kernel puts the PC at offset 0,
gdb puts it at offset 32. Register x0 is always 0 and can be ignored. gdb puts it at offset 32. Register x0 is always 0 and can be ignored.

View File

@ -41,6 +41,7 @@
#include "gdbsupport/selftest.h" #include "gdbsupport/selftest.h"
#include "value.h" #include "value.h"
#include "gdbsupport/vec.h" #include "gdbsupport/vec.h"
#include "gdbarch.h"
#define GDB_YY_REMAP_PREFIX rust #define GDB_YY_REMAP_PREFIX rust
#include "yy-remap.h" #include "yy-remap.h"

View File

@ -43,6 +43,7 @@
#include <algorithm> #include <algorithm>
#include "inf-ptrace.h" #include "inf-ptrace.h"
#include "linux-tdep.h" #include "linux-tdep.h"
#include "gdbarch.h"
/* Per-thread arch-specific data. */ /* Per-thread arch-specific data. */

View File

@ -29,6 +29,7 @@
#include "glibc-tdep.h" #include "glibc-tdep.h"
#include "sh-tdep.h" #include "sh-tdep.h"
#include "linux-tdep.h" #include "linux-tdep.h"
#include "gdbarch.h"
#define REGSx16(base) \ #define REGSx16(base) \
{(base), 0}, \ {(base), 0}, \

View File

@ -27,6 +27,7 @@
#include "sh-tdep.h" #include "sh-tdep.h"
#include "solib-svr4.h" #include "solib-svr4.h"
#include "gdbarch.h"
/* Convert a register number into an offset into a ptrace /* Convert a register number into an offset into a ptrace
register structure. */ register structure. */

View File

@ -21,6 +21,7 @@
#include "gdbsupport/scoped_fd.h" #include "gdbsupport/scoped_fd.h"
#include "source.h" #include "source.h"
#include "cli/cli-style.h" #include "cli/cli-style.h"
#include "symtab.h"
#ifdef HAVE_SOURCE_HIGHLIGHT #ifdef HAVE_SOURCE_HIGHLIGHT
/* If Gnulib redirects 'open' and 'close' to its replacements /* If Gnulib redirects 'open' and 'close' to its replacements

View File

@ -29,6 +29,7 @@
#include "solib-svr4.h" #include "solib-svr4.h"
#include "symtab.h" #include "symtab.h"
#include "trad-frame.h" #include "trad-frame.h"
#include "gdbarch.h"
#include "sparc-tdep.h" #include "sparc-tdep.h"
#include "nbsd-tdep.h" #include "nbsd-tdep.h"

View File

@ -30,6 +30,7 @@
#include "sparc-tdep.h" #include "sparc-tdep.h"
#include "solib-svr4.h" #include "solib-svr4.h"
#include "bsd-uthread.h" #include "bsd-uthread.h"
#include "gdbarch.h"
/* Signal trampolines. */ /* Signal trampolines. */

View File

@ -24,6 +24,7 @@
#include "inferior.h" #include "inferior.h"
#include "ravenscar-thread.h" #include "ravenscar-thread.h"
#include "sparc-ravenscar-thread.h" #include "sparc-ravenscar-thread.h"
#include "gdbarch.h"
struct sparc_ravenscar_ops : public ravenscar_arch_ops struct sparc_ravenscar_ops : public ravenscar_arch_ops
{ {

View File

@ -30,6 +30,7 @@
#include "sparc64-tdep.h" #include "sparc64-tdep.h"
#include "fbsd-tdep.h" #include "fbsd-tdep.h"
#include "solib-svr4.h" #include "solib-svr4.h"
#include "gdbarch.h"
/* From <machine/reg.h>. */ /* From <machine/reg.h>. */
const struct sparc_gregmap sparc64fbsd_gregmap = const struct sparc_gregmap sparc64fbsd_gregmap =

View File

@ -24,6 +24,8 @@
#include "frame.h" #include "frame.h"
#include "gdbtypes.h" #include "gdbtypes.h"
#include "value.h" #include "value.h"
#include "gdbarch.h"
static struct value * static struct value *
value_of_builtin_frame_fp_reg (struct frame_info *frame, const void *baton) value_of_builtin_frame_fp_reg (struct frame_info *frame, const void *baton)
{ {

View File

@ -22,6 +22,7 @@
#ifndef TARGET_DESCRIPTIONS_H #ifndef TARGET_DESCRIPTIONS_H
#define TARGET_DESCRIPTIONS_H 1 #define TARGET_DESCRIPTIONS_H 1
#include "gdbsupport/tdesc.h" #include "gdbsupport/tdesc.h"
#include "gdbarch.h"
struct tdesc_arch_data; struct tdesc_arch_data;
struct target_ops; struct target_ops;

View File

@ -21,7 +21,7 @@
#include "gdbtypes.h" #include "gdbtypes.h"
#include "floatformat.h" #include "floatformat.h"
#include "target-float.h" #include "target-float.h"
#include "gdbarch.h"
/* Target floating-point operations. /* Target floating-point operations.

View File

@ -26,6 +26,7 @@
#include "tramp-frame.h" #include "tramp-frame.h"
#include "elf-bfd.h" #include "elf-bfd.h"
#include "elf/tic6x.h" #include "elf/tic6x.h"
#include "gdbarch.h"
/* The offset from rt_sigframe pointer to SP register. */ /* The offset from rt_sigframe pointer to SP register. */
#define TIC6X_SP_RT_SIGFRAME 8 #define TIC6X_SP_RT_SIGFRAME 8

View File

@ -28,6 +28,7 @@
#include "tramp-frame.h" #include "tramp-frame.h"
#include "trad-frame.h" #include "trad-frame.h"
#include "tilegx-tdep.h" #include "tilegx-tdep.h"
#include "gdbarch.h"
/* Signal trampoline support. */ /* Signal trampoline support. */

View File

@ -53,6 +53,7 @@
#include "gdbsupport/buffer.h" #include "gdbsupport/buffer.h"
#include "gdb_select.h" #include "gdb_select.h"
#include "gdbsupport/scope-exit.h" #include "gdbsupport/scope-exit.h"
#include "gdbarch.h"
/* readline include files. */ /* readline include files. */
#include "readline/readline.h" #include "readline/readline.h"

View File

@ -23,6 +23,7 @@
#include "exec.h" #include "exec.h"
#include "regcache.h" #include "regcache.h"
#include "gdbsupport/byte-vector.h" #include "gdbsupport/byte-vector.h"
#include "gdbarch.h"
/* Helper macros. */ /* Helper macros. */

View File

@ -24,6 +24,7 @@
#include "frame-unwind.h" #include "frame-unwind.h"
#include "target.h" #include "target.h"
#include "value.h" #include "value.h"
#include "gdbarch.h"
struct trad_frame_cache struct trad_frame_cache
{ {

View File

@ -20,6 +20,7 @@
#ifndef TYPE_STACK_H #ifndef TYPE_STACK_H
#define TYPE_STACK_H #define TYPE_STACK_H
#include "gdbtypes.h"
#include <vector> #include <vector>
struct type; struct type;

View File

@ -18,6 +18,7 @@
#include "defs.h" #include "defs.h"
#include "ui-style.h" #include "ui-style.h"
#include "gdb_regex.h"
/* A regular expression that is used for matching ANSI terminal escape /* A regular expression that is used for matching ANSI terminal escape
sequences. */ sequences. */

View File

@ -73,6 +73,7 @@
#include "gdbsupport/pathstuff.h" #include "gdbsupport/pathstuff.h"
#include "cli/cli-style.h" #include "cli/cli-style.h"
#include "gdbsupport/scope-exit.h" #include "gdbsupport/scope-exit.h"
#include "gdbarch.h"
void (*deprecated_error_begin_hook) (void); void (*deprecated_error_begin_hook) (void);

View File

@ -25,6 +25,9 @@
#include "gdbsupport/scoped_restore.h" #include "gdbsupport/scoped_restore.h"
#include <chrono> #include <chrono>
struct completion_match_for_lcd;
class compiled_regex;
extern void initialize_utils (void); extern void initialize_utils (void);
/* String utilities. */ /* String utilities. */

View File

@ -27,6 +27,7 @@
#include "target-float.h" #include "target-float.h"
#include "infcall.h" #include "infcall.h"
#include "gdbsupport/byte-vector.h" #include "gdbsupport/byte-vector.h"
#include "gdbarch.h"
/* Define whether or not the C operator '/' truncates towards zero for /* Define whether or not the C operator '/' truncates towards zero for
differently signed operands (truncation direction is undefined in C). */ differently signed operands (truncation direction is undefined in C). */

View File

@ -37,6 +37,7 @@
#include <algorithm> #include <algorithm>
#include "gdbsupport/byte-vector.h" #include "gdbsupport/byte-vector.h"
#include "cli/cli-option.h" #include "cli/cli-option.h"
#include "gdbarch.h"
/* Maximum number of wchars returned from wchar_iterate. */ /* Maximum number of wchars returned from wchar_iterate. */
#define MAX_WCHARS 4 #define MAX_WCHARS 4

View File

@ -31,6 +31,7 @@
#include "inferior.h" #include "inferior.h"
#include "varobj-iter.h" #include "varobj-iter.h"
#include "parser-defs.h" #include "parser-defs.h"
#include "gdbarch.h"
#if HAVE_PYTHON #if HAVE_PYTHON
#include "python/python.h" #include "python/python.h"

Some files were not shown because too many files have changed in this diff Show More