Remove explanatory comments from includes

I noticed a comment by an include and remembered that I think these
don't really provide much value -- sometimes they are just editorial,
and sometimes they are obsolete.  I think it's better to just remove
them.  Tested by rebuilding.

Approved-By: Andrew Burgess <aburgess@redhat.com>
This commit is contained in:
Tom Tromey
2023-09-19 20:34:23 -06:00
parent 0b7de6d3ee
commit ef0f16ccf8
93 changed files with 129 additions and 132 deletions

View File

@@ -17,7 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h" #include "defs.h"
#include "bfd.h" /* Binary File Description */ #include "bfd.h"
#include "gdbtypes.h" #include "gdbtypes.h"
#include "value.h" #include "value.h"
#include "c-lang.h" #include "c-lang.h"

View File

@@ -21,7 +21,7 @@
#include "arch-utils.h" #include "arch-utils.h"
#include "gdbcmd.h" #include "gdbcmd.h"
#include "inferior.h" /* enum CALL_DUMMY_LOCATION et al. */ #include "inferior.h"
#include "infrun.h" #include "infrun.h"
#include "regcache.h" #include "regcache.h"
#include "sim-regno.h" #include "sim-regno.h"

View File

@@ -19,7 +19,7 @@
#include "defs.h" #include "defs.h"
#include <ctype.h> /* XXX for isupper (). */ #include <ctype.h>
#include "frame.h" #include "frame.h"
#include "language.h" #include "language.h"
@@ -27,7 +27,7 @@
#include "infrun.h" #include "infrun.h"
#include "gdbcmd.h" #include "gdbcmd.h"
#include "gdbcore.h" #include "gdbcore.h"
#include "dis-asm.h" /* For register styles. */ #include "dis-asm.h"
#include "disasm.h" #include "disasm.h"
#include "regcache.h" #include "regcache.h"
#include "reggroups.h" #include "reggroups.h"

View File

@@ -19,7 +19,7 @@
#ifndef AX_GDB_H #ifndef AX_GDB_H
#define AX_GDB_H #define AX_GDB_H
#include "ax.h" /* For agent_expr_up. */ #include "ax.h"
struct expression; struct expression;

View File

@@ -28,7 +28,7 @@
#include "process-stratum-target.h" #include "process-stratum-target.h"
#include "value.h" #include "value.h"
#include "gdbcore.h" #include "gdbcore.h"
#include "inferior.h" /* for get_exec_file */ #include "inferior.h"
#include "gdbthread.h" #include "gdbthread.h"
#include "gdbsupport/pathstuff.h" #include "gdbsupport/pathstuff.h"
#include "gdbsupport/gdb_tilde_expand.h" #include "gdbsupport/gdb_tilde_expand.h"

View File

@@ -27,7 +27,7 @@
list of sequential control-flow blocks, one such list per thread. */ list of sequential control-flow blocks, one such list per thread. */
#include "gdbsupport/btrace-common.h" #include "gdbsupport/btrace-common.h"
#include "target/waitstatus.h" /* For enum target_stop_reason. */ #include "target/waitstatus.h"
#include "gdbsupport/enum-flags.h" #include "gdbsupport/enum-flags.h"
#if defined (HAVE_LIBIPT) #if defined (HAVE_LIBIPT)

View File

@@ -26,10 +26,10 @@
#include "objfiles.h" #include "objfiles.h"
#include "gdbtypes.h" #include "gdbtypes.h"
#include "complaints.h" #include "complaints.h"
#include "expression.h" /* For "enum exp_opcode" used by... */ #include "expression.h"
#include "filenames.h" /* For DOSish file names. */ #include "filenames.h"
#include "macrotab.h" #include "macrotab.h"
#include "demangle.h" /* Needed by SYMBOL_INIT_DEMANGLED_NAME. */ #include "demangle.h"
#include "block.h" #include "block.h"
#include "cp-support.h" #include "cp-support.h"
#include "dictionary.h" #include "dictionary.h"

View File

@@ -18,7 +18,7 @@
#include "defs.h" #include "defs.h"
#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/gdb_obstack.h"
#include "bfd.h" /* Binary File Description. */ #include "bfd.h"
#include "symtab.h" #include "symtab.h"
#include "gdbtypes.h" #include "gdbtypes.h"
#include "expression.h" #include "expression.h"

View File

@@ -21,17 +21,17 @@
#include "arch-utils.h" #include "arch-utils.h"
#include "readline/tilde.h" #include "readline/tilde.h"
#include "completer.h" #include "completer.h"
#include "target.h" /* For baud_rate, remote_debug and remote_timeout. */ #include "target.h"
#include "gdbsupport/gdb_wait.h" /* For shell escape implementation. */ #include "gdbsupport/gdb_wait.h"
#include "gdbcmd.h" #include "gdbcmd.h"
#include "gdbsupport/gdb_regex.h" /* Used by apropos_command. */ #include "gdbsupport/gdb_regex.h"
#include "gdb_vfork.h" #include "gdb_vfork.h"
#include "linespec.h" #include "linespec.h"
#include "expression.h" #include "expression.h"
#include "frame.h" #include "frame.h"
#include "value.h" #include "value.h"
#include "language.h" #include "language.h"
#include "filenames.h" /* For DOSish file names. */ #include "filenames.h"
#include "objfiles.h" #include "objfiles.h"
#include "source.h" #include "source.h"
#include "disasm.h" #include "disasm.h"
@@ -59,7 +59,7 @@
#include "gdbsupport/gdb_tilde_expand.h" #include "gdbsupport/gdb_tilde_expand.h"
#ifdef TUI #ifdef TUI
#include "tui/tui.h" /* For tui_active et.al. */ #include "tui/tui.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>

View File

@@ -23,7 +23,7 @@
#include "event-top.h" #include "event-top.h"
#include "ui-out.h" #include "ui-out.h"
#include "cli-out.h" #include "cli-out.h"
#include "top.h" /* for "execute_command" */ #include "top.h"
#include "ui.h" #include "ui.h"
#include "infrun.h" #include "infrun.h"
#include "observable.h" #include "observable.h"

View File

@@ -27,8 +27,8 @@
#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/gdb_obstack.h"
#include <ctype.h> #include <ctype.h>
#include "coff/internal.h" /* Internal format of COFF symbols in BFD */ #include "coff/internal.h"
#include "libcoff.h" /* FIXME secret internal data from BFD */ #include "libcoff.h"
#include "objfiles.h" #include "objfiles.h"
#include "buildsym-legacy.h" #include "buildsym-legacy.h"
#include "stabsread.h" #include "stabsread.h"

View File

@@ -20,7 +20,7 @@
#include "symtab.h" #include "symtab.h"
#include "gdbtypes.h" #include "gdbtypes.h"
#include "expression.h" #include "expression.h"
#include "filenames.h" /* For DOSish file names. */ #include "filenames.h"
#include "language.h" #include "language.h"
#include "gdbsupport/gdb_signals.h" #include "gdbsupport/gdb_signals.h"
#include "target.h" #include "target.h"

View File

@@ -21,7 +21,7 @@
#include "arch-utils.h" #include "arch-utils.h"
#include <signal.h> #include <signal.h>
#include <fcntl.h> #include <fcntl.h>
#include "frame.h" /* required by inferior.h */ #include "frame.h"
#include "inferior.h" #include "inferior.h"
#include "infrun.h" #include "infrun.h"
#include "symtab.h" #include "symtab.h"

View File

@@ -22,8 +22,6 @@
#ifndef CP_SUPPORT_H #ifndef CP_SUPPORT_H
#define CP_SUPPORT_H #define CP_SUPPORT_H
/* We need this for 'domain_enum', alas... */
#include "symtab.h" #include "symtab.h"
#include "gdbsupport/gdb_vecs.h" #include "gdbsupport/gdb_vecs.h"
#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/gdb_obstack.h"

View File

@@ -41,7 +41,7 @@
#include "objfiles.h" #include "objfiles.h"
#include "solib.h" /* Support for shared libraries. */ #include "solib.h"
#include "solib-svr4.h" #include "solib-svr4.h"
#include "dis-asm.h" #include "dis-asm.h"

View File

@@ -37,8 +37,8 @@
#include "symtab.h" #include "symtab.h"
#include "breakpoint.h" #include "breakpoint.h"
#include "target.h" #include "target.h"
#include "gdbcore.h" /* for bfd stuff */ #include "gdbcore.h"
#include "libaout.h" /* FIXME Secret internal BFD stuff for a.out */ #include "libaout.h"
#include "filenames.h" #include "filenames.h"
#include "objfiles.h" #include "objfiles.h"
#include "buildsym-legacy.h" #include "buildsym-legacy.h"
@@ -52,8 +52,7 @@
#include "psymtab.h" #include "psymtab.h"
#include "block.h" #include "block.h"
#include "aout/aout64.h" #include "aout/aout64.h"
#include "aout/stab_gnu.h" /* We always use GNU stabs, not #include "aout/stab_gnu.h"
native, now. */
/* Key for dbx-associated data. */ /* Key for dbx-associated data. */

View File

@@ -21,7 +21,7 @@
#ifndef DCACHE_H #ifndef DCACHE_H
#define DCACHE_H #define DCACHE_H
#include "target.h" /* for enum target_xfer_status */ #include "target.h"
typedef struct dcache_struct DCACHE; typedef struct dcache_struct DCACHE;

View File

@@ -54,7 +54,7 @@
#include "dwarf2.h" #include "dwarf2.h"
#include "demangle.h" #include "demangle.h"
#include "gdb-demangle.h" #include "gdb-demangle.h"
#include "filenames.h" /* for DOSish file names */ #include "filenames.h"
#include "language.h" #include "language.h"
#include "complaints.h" #include "complaints.h"
#include "dwarf2/expr.h" #include "dwarf2/expr.h"
@@ -69,7 +69,7 @@
#include "c-lang.h" #include "c-lang.h"
#include "go-lang.h" #include "go-lang.h"
#include "valprint.h" #include "valprint.h"
#include "gdbcore.h" /* for gnutarget */ #include "gdbcore.h"
#include "gdb/gdb-index.h" #include "gdb/gdb-index.h"
#include "gdb_bfd.h" #include "gdb_bfd.h"
#include "f-lang.h" #include "f-lang.h"

View File

@@ -21,7 +21,7 @@
#include "defs.h" #include "defs.h"
#include "elf-none-tdep.h" #include "elf-none-tdep.h"
#include "regset.h" #include "regset.h"
#include "elf-bfd.h" /* for elfcore_write_* */ #include "elf-bfd.h"
#include "inferior.h" #include "inferior.h"
#include "regcache.h" #include "regcache.h"
#include "gdbarch.h" #include "gdbarch.h"

View File

@@ -25,7 +25,7 @@
#include "target.h" #include "target.h"
#include "frame.h" #include "frame.h"
#include "gdbthread.h" #include "gdbthread.h"
#include "language.h" /* For CAST_IS_CONVERSION. */ #include "language.h"
#include "cp-abi.h" #include "cp-abi.h"
#include "infcall.h" #include "infcall.h"
#include "objc-lang.h" #include "objc-lang.h"

View File

@@ -30,11 +30,11 @@
#include "event-top.h" #include "event-top.h"
#include "interps.h" #include "interps.h"
#include <signal.h> #include <signal.h>
#include "cli/cli-script.h" /* for reset_command_nest_depth */ #include "cli/cli-script.h"
#include "main.h" #include "main.h"
#include "gdbthread.h" #include "gdbthread.h"
#include "observable.h" #include "observable.h"
#include "gdbcmd.h" /* for dont_repeat() */ #include "gdbcmd.h"
#include "annotate.h" #include "annotate.h"
#include "maint.h" #include "maint.h"
#include "ser-event.h" #include "ser-event.h"

View File

@@ -24,7 +24,7 @@
#include "value.h" #include "value.h"
#include "language.h" #include "language.h"
#include "parser-defs.h" #include "parser-defs.h"
#include "user-regs.h" /* For user_reg_map_regnum_to_name. */ #include "user-regs.h"
#include "target.h" #include "target.h"
#include "block.h" #include "block.h"
#include "objfiles.h" #include "objfiles.h"

View File

@@ -20,7 +20,7 @@
#ifndef EXTENSION_H #ifndef EXTENSION_H
#define EXTENSION_H #define EXTENSION_H
#include "mi/mi-cmds.h" /* For PRINT_NO_VALUES, etc. */ #include "mi/mi-cmds.h"
#include "gdbsupport/array-view.h" #include "gdbsupport/array-view.h"
#include "gdbsupport/gdb_optional.h" #include "gdbsupport/gdb_optional.h"

View File

@@ -25,7 +25,7 @@
#include "gdbcore.h" #include "gdbcore.h"
#include "inferior.h" #include "inferior.h"
#include "target.h" #include "target.h"
#include "symfile.h" /* for overlay functions */ #include "symfile.h"
#include "regcache.h" #include "regcache.h"
#include "user-regs.h" #include "user-regs.h"
#include "block.h" #include "block.h"

View File

@@ -28,7 +28,7 @@ struct gdbarch;
struct regcache; struct regcache;
struct value; struct value;
#include "frame.h" /* For enum frame_type. */ #include "frame.h"
/* The following unwind functions assume a chain of frames forming the /* The following unwind functions assume a chain of frames forming the
sequence: (outer) prev <-> this <-> next (inner). All the sequence: (outer) prev <-> this <-> next (inner). All the

View File

@@ -21,7 +21,7 @@
#include "frame.h" #include "frame.h"
#include "target.h" #include "target.h"
#include "value.h" #include "value.h"
#include "inferior.h" /* for inferior_ptid */ #include "inferior.h"
#include "regcache.h" #include "regcache.h"
#include "user-regs.h" #include "user-regs.h"
#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/gdb_obstack.h"

View File

@@ -42,7 +42,7 @@
/* Make cgen names unique to prevent ODR conflicts with other targets. */ /* Make cgen names unique to prevent ODR conflicts with other targets. */
#define GDB_CGEN_REMAP_PREFIX frv #define GDB_CGEN_REMAP_PREFIX frv
#include "cgen-remap.h" #include "cgen-remap.h"
#include "opcodes/frv-desc.h" /* for the H_SPR_... enums */ #include "opcodes/frv-desc.h"
struct frv_unwind_cache /* was struct frame_extra_info */ struct frv_unwind_cache /* was struct frame_extra_info */
{ {

View File

@@ -24,7 +24,7 @@
to a styles of demangling, and GDB specific. */ to a styles of demangling, and GDB specific. */
#include "defs.h" #include "defs.h"
#include "cli/cli-utils.h" /* for skip_to_space */ #include "cli/cli-utils.h"
#include "command.h" #include "command.h"
#include "gdbcmd.h" #include "gdbcmd.h"
#include "demangle.h" #include "demangle.h"

View File

@@ -29,7 +29,7 @@
#include "symtab.h" #include "symtab.h"
#include "libguile.h" #include "libguile.h"
#include "objfiles.h" #include "objfiles.h"
#include "top.h" /* For quit_force(). */ #include "top.h"
struct block; struct block;
struct frame_info; struct frame_info;

View File

@@ -25,7 +25,7 @@
#include "disasm.h" #include "disasm.h"
#include "dis-asm.h" #include "dis-asm.h"
#include "gdbarch.h" #include "gdbarch.h"
#include "gdbcore.h" /* Why is memory_error here? */ #include "gdbcore.h"
#include "guile-internal.h" #include "guile-internal.h"
static SCM port_keyword; static SCM port_keyword;

View File

@@ -25,7 +25,7 @@
#include "charset.h" #include "charset.h"
#include "cp-abi.h" #include "cp-abi.h"
#include "target-float.h" #include "target-float.h"
#include "symtab.h" /* Needed by language.h. */ #include "symtab.h"
#include "language.h" #include "language.h"
#include "valprint.h" #include "valprint.h"
#include "value.h" #include "value.h"

View File

@@ -21,9 +21,9 @@
conventions, et.al. */ conventions, et.al. */
#include "defs.h" #include "defs.h"
#include "top.h" /* For quit_force(). */ #include "top.h"
#include "charset.h" #include "charset.h"
#include "symtab.h" /* Needed by language.h. */ #include "symtab.h"
#include "language.h" #include "language.h"
#include "objfiles.h" #include "objfiles.h"
#include "value.h" #include "value.h"

View File

@@ -21,7 +21,7 @@
conventions, et.al. */ conventions, et.al. */
#include "defs.h" #include "defs.h"
#include "top.h" /* For quit_force(). */ #include "top.h"
#include "arch-utils.h" #include "arch-utils.h"
#include "value.h" #include "value.h"
#include "gdbtypes.h" #include "gdbtypes.h"

View File

@@ -21,13 +21,13 @@
conventions, et.al. */ conventions, et.al. */
#include "defs.h" #include "defs.h"
#include "top.h" /* For quit_force(). */ #include "top.h"
#include "arch-utils.h" #include "arch-utils.h"
#include "charset.h" #include "charset.h"
#include "cp-abi.h" #include "cp-abi.h"
#include "target-float.h" #include "target-float.h"
#include "infcall.h" #include "infcall.h"
#include "symtab.h" /* Needed by language.h. */ #include "symtab.h"
#include "language.h" #include "language.h"
#include "valprint.h" #include "valprint.h"
#include "value.h" #include "value.h"

View File

@@ -31,7 +31,7 @@
#include "target-float.h" #include "target-float.h"
#include "value.h" #include "value.h"
#include "objfiles.h" #include "objfiles.h"
#include "elf/common.h" /* for DT_PLTGOT value */ #include "elf/common.h"
#include "elf-bfd.h" #include "elf-bfd.h"
#include "dis-asm.h" #include "dis-asm.h"
#include "infcall.h" #include "infcall.h"
@@ -40,7 +40,7 @@
#include "cp-abi.h" #include "cp-abi.h"
#ifdef HAVE_LIBUNWIND_IA64_H #ifdef HAVE_LIBUNWIND_IA64_H
#include "elf/ia64.h" /* for PT_IA_64_UNWIND value */ #include "elf/ia64.h"
#include "ia64-libunwind-tdep.h" #include "ia64-libunwind-tdep.h"
/* Note: KERNEL_START is supposed to be an address which is not going /* Note: KERNEL_START is supposed to be an address which is not going

View File

@@ -20,7 +20,7 @@
#ifndef INF_LOOP_H #ifndef INF_LOOP_H
#define INF_LOOP_H #define INF_LOOP_H
#include "target.h" /* For enum inferior_event_type. */ #include "target.h"
extern void inferior_event_handler (enum inferior_event_type event_type); extern void inferior_event_handler (enum inferior_event_type event_type);

View File

@@ -39,13 +39,13 @@
#include "inf-child.h" #include "inf-child.h"
#include "inf-ptrace.h" #include "inf-ptrace.h"
#include "auxv.h" #include "auxv.h"
#include <sys/procfs.h> /* for elf_gregset etc. */ #include <sys/procfs.h>
#include "elf-bfd.h" /* for elfcore_write_* */ #include "elf-bfd.h"
#include "gregset.h" /* for gregset */ #include "gregset.h"
#include "gdbcore.h" /* for get_exec_file */ #include "gdbcore.h"
#include <ctype.h> /* for isdigit */ #include <ctype.h>
#include <sys/stat.h> /* for struct stat */ #include <sys/stat.h>
#include <fcntl.h> /* for O_RDONLY */ #include <fcntl.h>
#include "inf-loop.h" #include "inf-loop.h"
#include "gdbsupport/event-loop.h" #include "gdbsupport/event-loop.h"
#include "event-top.h" #include "event-top.h"

View File

@@ -27,7 +27,7 @@
#include "regcache.h" #include "regcache.h"
#include "regset.h" #include "regset.h"
#include "elf/common.h" #include "elf/common.h"
#include "elf-bfd.h" /* for elfcore_write_* */ #include "elf-bfd.h"
#include "inferior.h" #include "inferior.h"
#include "cli/cli-utils.h" #include "cli/cli-utils.h"
#include "arch-utils.h" #include "arch-utils.h"

View File

@@ -19,7 +19,7 @@
#include "defs.h" #include "defs.h"
#include "language.h" #include "language.h"
#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/gdb_obstack.h"
#include "bfd.h" /* Binary File Description */ #include "bfd.h"
#include "symtab.h" #include "symtab.h"
#include "gdbtypes.h" #include "gdbtypes.h"
#include "expression.h" #include "expression.h"

View File

@@ -32,7 +32,7 @@
#include "gdbtypes.h" #include "gdbtypes.h"
#include "demangle.h" #include "demangle.h"
#include "gdbcore.h" #include "gdbcore.h"
#include "expression.h" /* For language.h */ #include "expression.h"
#include "language.h" #include "language.h"
#include "symfile.h" #include "symfile.h"
#include "objfiles.h" #include "objfiles.h"

View File

@@ -60,11 +60,11 @@
#include "bfd.h" #include "bfd.h"
#include "coff/ecoff.h" /* COFF-like aspects of ecoff files. */ #include "coff/ecoff.h"
#include "libaout.h" /* Private BFD a.out information. */ #include "libaout.h"
#include "aout/aout64.h" #include "aout/aout64.h"
#include "aout/stab_gnu.h" /* STABS information. */ #include "aout/stab_gnu.h"
#include "expression.h" #include "expression.h"

View File

@@ -20,7 +20,7 @@
#ifndef MDEBUGREAD_H #ifndef MDEBUGREAD_H
#define MDEBUGREAD_H #define MDEBUGREAD_H
#include "coff/sym.h" /* Needed for PDR below. */ #include "coff/sym.h"
#include "coff/symconst.h" #include "coff/symconst.h"
/* Specific information about a procedure. Architectures (ab)uses /* Specific information about a procedure. Architectures (ab)uses

View File

@@ -36,7 +36,7 @@
#include "interps.h" #include "interps.h"
#include "gdbsupport/event-loop.h" #include "gdbsupport/event-loop.h"
#include "event-top.h" #include "event-top.h"
#include "gdbcore.h" /* For write_memory(). */ #include "gdbcore.h"
#include "value.h" #include "value.h"
#include "regcache.h" #include "regcache.h"
#include "frame.h" #include "frame.h"

View File

@@ -22,7 +22,7 @@
#include "gdbsupport/run-time-clock.h" #include "gdbsupport/run-time-clock.h"
#include <chrono> #include <chrono>
#include "mi-cmds.h" /* For enum print_values. */ #include "mi-cmds.h"
/* MI parser */ /* MI parser */

View File

@@ -33,8 +33,8 @@
#include "coff/sym.h" #include "coff/sym.h"
#include "coff/internal.h" #include "coff/internal.h"
#include "coff/ecoff.h" #include "coff/ecoff.h"
#include "libcoff.h" /* Private BFD COFF information. */ #include "libcoff.h"
#include "libecoff.h" /* Private BFD ECOFF information. */ #include "libecoff.h"
#include "elf/common.h" #include "elf/common.h"
#include "elf/internal.h" #include "elf/internal.h"
#include "elf/mips.h" #include "elf/mips.h"

View File

@@ -22,7 +22,7 @@
#include "dis-asm.h" #include "dis-asm.h"
#include "gdbtypes.h" #include "gdbtypes.h"
#include "regcache.h" #include "regcache.h"
#include "gdbcore.h" /* For write_memory_unsigned_integer. */ #include "gdbcore.h"
#include "value.h" #include "value.h"
#include "frame.h" #include "frame.h"
#include "frame-unwind.h" #include "frame-unwind.h"

View File

@@ -19,7 +19,7 @@
#ifndef NAT_AARCH64_LINUX_HW_POINT_H #ifndef NAT_AARCH64_LINUX_HW_POINT_H
#define NAT_AARCH64_LINUX_HW_POINT_H #define NAT_AARCH64_LINUX_HW_POINT_H
#include "gdbsupport/break-common.h" /* For enum target_hw_bp_type. */ #include "gdbsupport/break-common.h"
#include "nat/aarch64-hw-point.h" #include "nat/aarch64-hw-point.h"

View File

@@ -20,7 +20,7 @@
#ifndef NAT_AMD64_LINUX_SIGINFO_H #ifndef NAT_AMD64_LINUX_SIGINFO_H
#define NAT_AMD64_LINUX_SIGINFO_H #define NAT_AMD64_LINUX_SIGINFO_H
#include <signal.h> /* For siginfo_t. */ #include <signal.h>
/* When GDB is built as a 64-bit application on Linux, the /* When GDB is built as a 64-bit application on Linux, the
PTRACE_GETSIGINFO data is always presented in 64-bit layout. Since PTRACE_GETSIGINFO data is always presented in 64-bit layout. Since

View File

@@ -33,7 +33,7 @@
(32 bytes on 64 bit hosts). */ (32 bytes on 64 bit hosts). */
#include "gdbsupport/break-common.h" /* target_hw_bp_type */ #include "gdbsupport/break-common.h"
/* Low-level function vector. */ /* Low-level function vector. */

View File

@@ -23,7 +23,7 @@
destroying objfile structures. */ destroying objfile structures. */
#include "defs.h" #include "defs.h"
#include "bfd.h" /* Binary File Description */ #include "bfd.h"
#include "symtab.h" #include "symtab.h"
#include "symfile.h" #include "symfile.h"
#include "objfiles.h" #include "objfiles.h"

View File

@@ -21,7 +21,7 @@
#define OBJFILES_H #define OBJFILES_H
#include "hashtab.h" #include "hashtab.h"
#include "gdbsupport/gdb_obstack.h" /* For obstack internals. */ #include "gdbsupport/gdb_obstack.h"
#include "objfile-flags.h" #include "objfile-flags.h"
#include "symfile.h" #include "symfile.h"
#include "progspace.h" #include "progspace.h"

View File

@@ -20,7 +20,7 @@
#include "defs.h" #include "defs.h"
#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/gdb_obstack.h"
#include "bfd.h" /* Binary File Description */ #include "bfd.h"
#include "symtab.h" #include "symtab.h"
#include "gdbtypes.h" #include "gdbtypes.h"
#include "expression.h" #include "expression.h"

View File

@@ -41,7 +41,7 @@
#include "language.h" #include "language.h"
#include "parser-defs.h" #include "parser-defs.h"
#include "gdbcmd.h" #include "gdbcmd.h"
#include "symfile.h" /* for overlay functions */ #include "symfile.h"
#include "inferior.h" #include "inferior.h"
#include "target-float.h" #include "target-float.h"
#include "block.h" #include "block.h"

View File

@@ -20,7 +20,7 @@
#ifndef PPC_LINUX_TDEP_H #ifndef PPC_LINUX_TDEP_H
#define PPC_LINUX_TDEP_H #define PPC_LINUX_TDEP_H
#include "ppc-tdep.h" /* For PPC_NUM_REGS. */ #include "ppc-tdep.h"
struct regset; struct regset;

View File

@@ -33,9 +33,9 @@
#include "gdb-demangle.h" #include "gdb-demangle.h"
#include "valprint.h" #include "valprint.h"
#include "annotate.h" #include "annotate.h"
#include "symfile.h" /* for overlay functions */ #include "symfile.h"
#include "objfiles.h" /* ditto */ #include "objfiles.h"
#include "completer.h" /* for completion functions */ #include "completer.h"
#include "ui-out.h" #include "ui-out.h"
#include "block.h" #include "block.h"
#include "disasm.h" #include "disasm.h"

View File

@@ -30,9 +30,9 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/procfs.h> #include <sys/procfs.h>
#include <sys/proc.h> /* for struct proc */ #include <sys/proc.h>
#include <sys/user.h> /* for struct user */ #include <sys/user.h>
#include <fcntl.h> /* for O_RDWR etc. */ #include <fcntl.h>
#include "gdbsupport/gdb_wait.h" #include "gdbsupport/gdb_wait.h"
#include "proc-utils.h" #include "proc-utils.h"

View File

@@ -25,7 +25,7 @@
#include "infrun.h" #include "infrun.h"
#include "target.h" #include "target.h"
#include "gdbcore.h" #include "gdbcore.h"
#include "elf-bfd.h" /* for elfcore_write_* */ #include "elf-bfd.h"
#include "gdbcmd.h" #include "gdbcmd.h"
#include "gdbthread.h" #include "gdbthread.h"
#include "regcache.h" #include "regcache.h"
@@ -66,11 +66,11 @@
interface. */ interface. */
#include <sys/types.h> #include <sys/types.h>
#include <dirent.h> /* opendir/readdir, for listing the LWP's */ #include <dirent.h>
#include <fcntl.h> /* for O_RDONLY */ #include <fcntl.h>
#include <unistd.h> /* for "X_OK" */ #include <unistd.h>
#include <sys/stat.h> /* for struct stat */ #include <sys/stat.h>
/* Note: procfs-utils.h must be included after the above system header /* Note: procfs-utils.h must be included after the above system header
files, because it redefines various system calls using macros. files, because it redefines various system calls using macros.

View File

@@ -20,7 +20,7 @@
#include "defs.h" #include "defs.h"
#include "top.h" /* For quit_force(). */ #include "top.h"
#include "python-internal.h" #include "python-internal.h"
#include "breakpoint.h" #include "breakpoint.h"
#include "frame.h" #include "frame.h"

View File

@@ -18,7 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h" #include "defs.h"
#include "top.h" /* For force_quit (). */ #include "top.h"
#include "block.h" #include "block.h"
#include "frame.h" #include "frame.h"
#include "symtab.h" #include "symtab.h"

View File

@@ -18,7 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h" #include "defs.h"
#include "top.h" /* For quit_force (). */ #include "top.h"
#include "charset.h" #include "charset.h"
#include "value.h" #include "value.h"
#include "python-internal.h" #include "python-internal.h"

View File

@@ -18,7 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h" #include "defs.h"
#include "top.h" /* For quit_force (). */ #include "top.h"
#include "charset.h" #include "charset.h"
#include "value.h" #include "value.h"
#include "language.h" #include "language.h"

View File

@@ -20,7 +20,7 @@
#ifndef RECORD_H #ifndef RECORD_H
#define RECORD_H #define RECORD_H
#include "target/waitstatus.h" /* For enum target_stop_reason. */ #include "target/waitstatus.h"
#include "gdbsupport/enum-flags.h" #include "gdbsupport/enum-flags.h"
struct address_space; struct address_space;

View File

@@ -25,7 +25,7 @@
#include "gdbtypes.h" #include "gdbtypes.h"
#include "regcache.h" #include "regcache.h"
#include "command.h" #include "command.h"
#include "gdbcmd.h" /* For maintenanceprintlist. */ #include "gdbcmd.h"
#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/gdb_obstack.h"
/* See reggroups.h. */ /* See reggroups.h. */

View File

@@ -33,7 +33,7 @@
#include <fcntl.h> #include <fcntl.h>
#include "gdbsupport/gdb_sys_time.h" #include "gdbsupport/gdb_sys_time.h"
#ifdef __CYGWIN__ #ifdef __CYGWIN__
#include <sys/cygwin.h> /* For cygwin_conv_path. */ #include <sys/cygwin.h>
#endif #endif
#include <signal.h> #include <signal.h>

View File

@@ -43,8 +43,8 @@
#include "record-full.h" #include "record-full.h"
#include "auxv.h" #include "auxv.h"
#include "coff/internal.h" /* for libcoff.h */ #include "coff/internal.h"
#include "libcoff.h" /* for xcoff_data */ #include "libcoff.h"
#include "coff/xcoff.h" #include "coff/xcoff.h"
#include "libxcoff.h" #include "libxcoff.h"

View File

@@ -20,7 +20,7 @@
#ifndef SER_BASE_H #ifndef SER_BASE_H
#define SER_BASE_H #define SER_BASE_H
#include "serial.h" /* For serial_ttystate. */ #include "serial.h"
struct serial; struct serial;
struct ui_file; struct ui_file;

View File

@@ -30,10 +30,10 @@
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_FILIO_H #ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h> /* For FIONBIO. */ #include <sys/filio.h>
#endif #endif
#ifdef HAVE_SYS_IOCTL_H #ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h> /* For FIONBIO. */ #include <sys/ioctl.h>
#endif #endif
#include "gdbsupport/gdb_sys_time.h" #include "gdbsupport/gdb_sys_time.h"

View File

@@ -29,7 +29,7 @@
#include "arch-utils.h" #include "arch-utils.h"
#include "linespec.h" #include "linespec.h"
#include "objfiles.h" #include "objfiles.h"
#include "breakpoint.h" /* for get_sal_arch () */ #include "breakpoint.h"
#include "source.h" #include "source.h"
#include "filenames.h" #include "filenames.h"
#include "fnmatch.h" #include "fnmatch.h"

View File

@@ -38,7 +38,7 @@
#include "completer.h" #include "completer.h"
#include "elf/external.h" #include "elf/external.h"
#include "elf/common.h" #include "elf/common.h"
#include "filenames.h" /* for DOSish file names */ #include "filenames.h"
#include "exec.h" #include "exec.h"
#include "solist.h" #include "solist.h"
#include "observable.h" #include "observable.h"

View File

@@ -37,7 +37,7 @@
#include "annotate.h" #include "annotate.h"
#include "gdbtypes.h" #include "gdbtypes.h"
#include "linespec.h" #include "linespec.h"
#include "filenames.h" /* for DOSish file names */ #include "filenames.h"
#include "completer.h" #include "completer.h"
#include "ui-out.h" #include "ui-out.h"
#include "readline/tilde.h" #include "readline/tilde.h"

View File

@@ -32,7 +32,7 @@
#include "expression.h" #include "expression.h"
#include "symfile.h" #include "symfile.h"
#include "objfiles.h" #include "objfiles.h"
#include "aout/stab_gnu.h" /* We always use GNU stabs, not native. */ #include "aout/stab_gnu.h"
#include "libaout.h" #include "libaout.h"
#include "aout/aout64.h" #include "aout/aout64.h"
#include "gdb-stabs.h" #include "gdb-stabs.h"

View File

@@ -168,7 +168,7 @@ static volatile int mem_err = 0;
int gdb_m32r_vector = -1; int gdb_m32r_vector = -1;
#if 0 #if 0
#include "syscall.h" /* for SYS_exit, SYS_write etc. */ #include "syscall.h"
#endif #endif
/* Global entry points: /* Global entry points:

View File

@@ -38,7 +38,7 @@
#include "demangle.h" #include "demangle.h"
#include "inferior.h" #include "inferior.h"
#include "regcache.h" #include "regcache.h"
#include "filenames.h" /* for DOSish file names */ #include "filenames.h"
#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/gdb_obstack.h"
#include "completer.h" #include "completer.h"
#include "bcache.h" #include "bcache.h"

View File

@@ -34,7 +34,7 @@
#include "demangle.h" #include "demangle.h"
#include "inferior.h" #include "inferior.h"
#include "source.h" #include "source.h"
#include "filenames.h" /* for FILENAME_CMP */ #include "filenames.h"
#include "objc-lang.h" #include "objc-lang.h"
#include "d-lang.h" #include "d-lang.h"
#include "ada-lang.h" #include "ada-lang.h"

View File

@@ -35,7 +35,7 @@
#include "inferior.h" #include "inferior.h"
#include <algorithm> #include <algorithm>
#include "completer.h" #include "completer.h"
#include "readline/tilde.h" /* tilde_expand */ #include "readline/tilde.h"
/* Types. */ /* Types. */

View File

@@ -43,8 +43,8 @@ struct inferior;
make-target-delegates.py to parse. */ make-target-delegates.py to parse. */
typedef const gdb_byte const_gdb_byte; typedef const gdb_byte const_gdb_byte;
#include "infrun.h" /* For enum exec_direction_kind. */ #include "infrun.h"
#include "breakpoint.h" /* For enum bptype. */ #include "breakpoint.h"
#include "gdbsupport/scoped_restore.h" #include "gdbsupport/scoped_restore.h"
#include "gdbsupport/refcounted-object.h" #include "gdbsupport/refcounted-object.h"
#include "target-section.h" #include "target-section.h"
@@ -88,7 +88,7 @@ typedef const gdb_byte const_gdb_byte;
#include "gdbsupport/fileio.h" #include "gdbsupport/fileio.h"
#include "gdbsupport/x86-xstate.h" #include "gdbsupport/x86-xstate.h"
#include "gdbsupport/break-common.h" /* For enum target_hw_bp_type. */ #include "gdbsupport/break-common.h"
enum strata enum strata
{ {

View File

@@ -19,7 +19,7 @@
#ifndef THREAD_FSM_H #ifndef THREAD_FSM_H
#define THREAD_FSM_H #define THREAD_FSM_H
#include "mi/mi-common.h" /* For enum async_reply_reason. */ #include "mi/mi-common.h"
struct return_value_info; struct return_value_info;
struct thread_fsm_ops; struct thread_fsm_ops;

View File

@@ -21,7 +21,7 @@
#include "tracefile.h" #include "tracefile.h"
#include "readline/tilde.h" #include "readline/tilde.h"
#include "gdbsupport/filestuff.h" #include "gdbsupport/filestuff.h"
#include "gdbsupport/rsp-low.h" /* bin2hex */ #include "gdbsupport/rsp-low.h"
#include "regcache.h" #include "regcache.h"
#include "inferior.h" #include "inferior.h"
#include "gdbthread.h" #include "gdbthread.h"

View File

@@ -20,7 +20,7 @@
#ifndef TRAD_FRAME_H #ifndef TRAD_FRAME_H
#define TRAD_FRAME_H #define TRAD_FRAME_H
#include "frame.h" /* For "struct frame_id". */ #include "frame.h"
class frame_info_ptr; class frame_info_ptr;
struct regcache_map_entry; struct regcache_map_entry;

View File

@@ -20,7 +20,7 @@
#ifndef TRAMP_FRAME_H #ifndef TRAMP_FRAME_H
#define TRAMP_FRAME_H #define TRAMP_FRAME_H
#include "frame.h" /* For "enum frame_type". */ #include "frame.h"
class frame_info_ptr; class frame_info_ptr;
struct trad_frame_cache; struct trad_frame_cache;

View File

@@ -23,7 +23,7 @@
#define TUI_TUI_DATA_H #define TUI_TUI_DATA_H
#include "tui/tui.h" #include "tui/tui.h"
#include "gdb_curses.h" /* For WINDOW. */ #include "gdb_curses.h"
#include "observable.h" #include "observable.h"
/* A deleter that calls delwin. */ /* A deleter that calls delwin. */

View File

@@ -20,7 +20,7 @@
#include "tui/tui.h" #include "tui/tui.h"
#include "tui/tui.h" #include "tui/tui.h"
#include "gdb_curses.h" /* For WINDOW. */ #include "gdb_curses.h"
#include "observable.h" #include "observable.h"
/* Class used to track the current location that the TUI is displaying. An /* Class used to track the current location that the TUI is displaying. An

View File

@@ -19,7 +19,7 @@
#include "defs.h" #include "defs.h"
#include "gdbsupport/gdb_obstack.h" #include "gdbsupport/gdb_obstack.h"
#include "bfd.h" /* Binary File Description */ #include "bfd.h"
#include "symtab.h" #include "symtab.h"
#include "gdbtypes.h" #include "gdbtypes.h"
#include "expression.h" #include "expression.h"

View File

@@ -21,7 +21,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h" #include "defs.h"
#include "expression.h" /* For language.h */ #include "expression.h"
#include "language.h" #include "language.h"
#include "ui-out.h" #include "ui-out.h"
#include "gdbsupport/format.h" #include "gdbsupport/format.h"

View File

@@ -56,7 +56,7 @@
#include "main.h" #include "main.h"
#include "solist.h" #include "solist.h"
#include "inferior.h" /* for signed_pointer_to_address */ #include "inferior.h"
#include "gdb_curses.h" #include "gdb_curses.h"

View File

@@ -20,7 +20,7 @@
#if !defined (VALUE_H) #if !defined (VALUE_H)
#define VALUE_H 1 #define VALUE_H 1
#include "frame.h" /* For struct frame_id. */ #include "frame.h"
#include "extension.h" #include "extension.h"
#include "gdbsupport/gdb_ref_ptr.h" #include "gdbsupport/gdb_ref_ptr.h"
#include "gmp-utils.h" #include "gmp-utils.h"

View File

@@ -22,7 +22,7 @@
/* Originally by Steve Chamberlain, sac@cygnus.com */ /* Originally by Steve Chamberlain, sac@cygnus.com */
#include "defs.h" #include "defs.h"
#include "frame.h" /* required by inferior.h */ #include "frame.h"
#include "inferior.h" #include "inferior.h"
#include "infrun.h" #include "infrun.h"
#include "target.h" #include "target.h"

View File

@@ -20,7 +20,7 @@
#ifndef X86_LINUX_NAT_H #ifndef X86_LINUX_NAT_H
#define X86_LINUX_NAT_H 1 #define X86_LINUX_NAT_H 1
#include "gdb_proc_service.h" /* For ps_err_e. */ #include "gdb_proc_service.h"
#include "linux-nat.h" #include "linux-nat.h"
#include "gdbsupport/x86-xstate.h" #include "gdbsupport/x86-xstate.h"
#include "x86-nat.h" #include "x86-nat.h"

View File

@@ -31,7 +31,7 @@
#include <algorithm> #include <algorithm>
#include "coff/internal.h" #include "coff/internal.h"
#include "libcoff.h" /* FIXME, internal data from BFD */ #include "libcoff.h"
#include "coff/xcoff.h" #include "coff/xcoff.h"
#include "libxcoff.h" #include "libxcoff.h"
#include "coff/rs6000.h" #include "coff/rs6000.h"

View File

@@ -28,7 +28,7 @@
/* Included for ptrace type definitions. */ /* Included for ptrace type definitions. */
#include "nat/linux-ptrace.h" #include "nat/linux-ptrace.h"
#include "target/waitstatus.h" /* For enum target_stop_reason. */ #include "target/waitstatus.h"
#include "tracepoint.h" #include "tracepoint.h"
#include <list> #include <list>

View File

@@ -21,7 +21,7 @@
#ifndef GDBSERVER_TARGET_H #ifndef GDBSERVER_TARGET_H
#define GDBSERVER_TARGET_H #define GDBSERVER_TARGET_H
#include <sys/types.h> /* for mode_t */ #include <sys/types.h>
#include "target/target.h" #include "target/target.h"
#include "target/resume.h" #include "target/resume.h"
#include "target/wait.h" #include "target/wait.h"

View File

@@ -96,7 +96,7 @@
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> /* for strcasecmp and strncasecmp */ #include <strings.h>
#endif #endif
#include <errno.h> #include <errno.h>
#if HAVE_ALLOCA_H #if HAVE_ALLOCA_H

View File

@@ -20,10 +20,10 @@
#define COMMON_GDB_WAIT_H #define COMMON_GDB_WAIT_H
#ifdef HAVE_SYS_WAIT_H #ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h> /* POSIX */ #include <sys/wait.h>
#else #else
#ifdef HAVE_WAIT_H #ifdef HAVE_WAIT_H
#include <wait.h> /* legacy */ #include <wait.h>
#endif #endif
#endif #endif