Normalize include guards in gdb

While working on my other scripts to deal with gdb headers, I noticed
that some files were missing include guards.  I wrote a script to add
the missing ones, but found that using the obvious names for the
guards ran into clashes -- for example, gdb/nat/linux-nat.h used
"LINUX_NAT_H", but this was also the script's choice for
gdb/linux-nat.h.

So, I changed the script to normalize all include guards in gdb.  This
patch is the result.

As usual the script is available here:

    https://github.com/tromey/gdb-refactoring-scripts

Tested by rebuilding; I also ran it through "Fedora-x86_64-m64" on the
buildbot.

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

	* yy-remap.h: Add include guard.
	* xtensa-tdep.h: Add include guard.
	* xcoffread.h: Rename include guard.
	* varobj-iter.h: Add include guard.
	* tui/tui.h: Rename include guard.
	* tui/tui-winsource.h: Rename include guard.
	* tui/tui-wingeneral.h: Rename include guard.
	* tui/tui-windata.h: Rename include guard.
	* tui/tui-win.h: Rename include guard.
	* tui/tui-stack.h: Rename include guard.
	* tui/tui-source.h: Rename include guard.
	* tui/tui-regs.h: Rename include guard.
	* tui/tui-out.h: Rename include guard.
	* tui/tui-layout.h: Rename include guard.
	* tui/tui-io.h: Rename include guard.
	* tui/tui-hooks.h: Rename include guard.
	* tui/tui-file.h: Rename include guard.
	* tui/tui-disasm.h: Rename include guard.
	* tui/tui-data.h: Rename include guard.
	* tui/tui-command.h: Rename include guard.
	* tic6x-tdep.h: Add include guard.
	* target/waitstatus.h: Rename include guard.
	* target/wait.h: Rename include guard.
	* target/target.h: Rename include guard.
	* target/resume.h: Rename include guard.
	* target-float.h: Rename include guard.
	* stabsread.h: Add include guard.
	* rs6000-tdep.h: Add include guard.
	* riscv-fbsd-tdep.h: Add include guard.
	* regformats/regdef.h: Rename include guard.
	* record.h: Rename include guard.
	* python/python.h: Rename include guard.
	* python/python-internal.h: Rename include guard.
	* python/py-stopevent.h: Rename include guard.
	* python/py-ref.h: Rename include guard.
	* python/py-record.h: Rename include guard.
	* python/py-record-full.h: Rename include guard.
	* python/py-record-btrace.h: Rename include guard.
	* python/py-instruction.h: Rename include guard.
	* python/py-events.h: Rename include guard.
	* python/py-event.h: Rename include guard.
	* procfs.h: Add include guard.
	* proc-utils.h: Add include guard.
	* p-lang.h: Add include guard.
	* or1k-tdep.h: Rename include guard.
	* observable.h: Rename include guard.
	* nto-tdep.h: Rename include guard.
	* nat/x86-linux.h: Rename include guard.
	* nat/x86-linux-dregs.h: Rename include guard.
	* nat/x86-gcc-cpuid.h: Add include guard.
	* nat/x86-dregs.h: Rename include guard.
	* nat/x86-cpuid.h: Rename include guard.
	* nat/ppc-linux.h: Rename include guard.
	* nat/mips-linux-watch.h: Rename include guard.
	* nat/linux-waitpid.h: Rename include guard.
	* nat/linux-ptrace.h: Rename include guard.
	* nat/linux-procfs.h: Rename include guard.
	* nat/linux-osdata.h: Rename include guard.
	* nat/linux-nat.h: Rename include guard.
	* nat/linux-namespaces.h: Rename include guard.
	* nat/linux-btrace.h: Rename include guard.
	* nat/glibc_thread_db.h: Rename include guard.
	* nat/gdb_thread_db.h: Rename include guard.
	* nat/gdb_ptrace.h: Rename include guard.
	* nat/fork-inferior.h: Rename include guard.
	* nat/amd64-linux-siginfo.h: Rename include guard.
	* nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
	* nat/aarch64-sve-linux-ptrace.h: Rename include guard.
	* nat/aarch64-linux.h: Rename include guard.
	* nat/aarch64-linux-hw-point.h: Rename include guard.
	* mn10300-tdep.h: Add include guard.
	* mips-linux-tdep.h: Add include guard.
	* mi/mi-parse.h: Rename include guard.
	* mi/mi-out.h: Rename include guard.
	* mi/mi-main.h: Rename include guard.
	* mi/mi-interp.h: Rename include guard.
	* mi/mi-getopt.h: Rename include guard.
	* mi/mi-console.h: Rename include guard.
	* mi/mi-common.h: Rename include guard.
	* mi/mi-cmds.h: Rename include guard.
	* mi/mi-cmd-break.h: Rename include guard.
	* m2-lang.h: Add include guard.
	* location.h: Rename include guard.
	* linux-record.h: Rename include guard.
	* linux-nat.h: Add include guard.
	* linux-fork.h: Add include guard.
	* i386-darwin-tdep.h: Rename include guard.
	* hppa-linux-offsets.h: Add include guard.
	* guile/guile.h: Rename include guard.
	* guile/guile-internal.h: Rename include guard.
	* gnu-nat.h: Rename include guard.
	* gdb-stabs.h: Rename include guard.
	* frv-tdep.h: Add include guard.
	* f-lang.h: Add include guard.
	* event-loop.h: Add include guard.
	* darwin-nat.h: Rename include guard.
	* cp-abi.h: Rename include guard.
	* config/sparc/nm-sol2.h: Rename include guard.
	* config/nm-nto.h: Rename include guard.
	* config/nm-linux.h: Add include guard.
	* config/i386/nm-i386gnu.h: Rename include guard.
	* config/djgpp/nl_types.h: Rename include guard.
	* config/djgpp/langinfo.h: Rename include guard.
	* compile/gcc-cp-plugin.h: Add include guard.
	* compile/gcc-c-plugin.h: Add include guard.
	* compile/compile.h: Rename include guard.
	* compile/compile-object-run.h: Rename include guard.
	* compile/compile-object-load.h: Rename include guard.
	* compile/compile-internal.h: Rename include guard.
	* compile/compile-cplus.h: Rename include guard.
	* compile/compile-c.h: Rename include guard.
	* common/xml-utils.h: Rename include guard.
	* common/x86-xstate.h: Rename include guard.
	* common/version.h: Rename include guard.
	* common/vec.h: Rename include guard.
	* common/tdesc.h: Rename include guard.
	* common/selftest.h: Rename include guard.
	* common/scoped_restore.h: Rename include guard.
	* common/scoped_mmap.h: Rename include guard.
	* common/scoped_fd.h: Rename include guard.
	* common/safe-iterator.h: Rename include guard.
	* common/run-time-clock.h: Rename include guard.
	* common/refcounted-object.h: Rename include guard.
	* common/queue.h: Rename include guard.
	* common/ptid.h: Rename include guard.
	* common/print-utils.h: Rename include guard.
	* common/preprocessor.h: Rename include guard.
	* common/pathstuff.h: Rename include guard.
	* common/observable.h: Rename include guard.
	* common/netstuff.h: Rename include guard.
	* common/job-control.h: Rename include guard.
	* common/host-defs.h: Rename include guard.
	* common/gdb_wait.h: Rename include guard.
	* common/gdb_vecs.h: Rename include guard.
	* common/gdb_unlinker.h: Rename include guard.
	* common/gdb_unique_ptr.h: Rename include guard.
	* common/gdb_tilde_expand.h: Rename include guard.
	* common/gdb_sys_time.h: Rename include guard.
	* common/gdb_string_view.h: Rename include guard.
	* common/gdb_splay_tree.h: Rename include guard.
	* common/gdb_setjmp.h: Rename include guard.
	* common/gdb_ref_ptr.h: Rename include guard.
	* common/gdb_optional.h: Rename include guard.
	* common/gdb_locale.h: Rename include guard.
	* common/gdb_assert.h: Rename include guard.
	* common/filtered-iterator.h: Rename include guard.
	* common/filestuff.h: Rename include guard.
	* common/fileio.h: Rename include guard.
	* common/environ.h: Rename include guard.
	* common/common-utils.h: Rename include guard.
	* common/common-types.h: Rename include guard.
	* common/common-regcache.h: Rename include guard.
	* common/common-inferior.h: Rename include guard.
	* common/common-gdbthread.h: Rename include guard.
	* common/common-exceptions.h: Rename include guard.
	* common/common-defs.h: Rename include guard.
	* common/common-debug.h: Rename include guard.
	* common/cleanups.h: Rename include guard.
	* common/buffer.h: Rename include guard.
	* common/btrace-common.h: Rename include guard.
	* common/break-common.h: Rename include guard.
	* cli/cli-utils.h: Rename include guard.
	* cli/cli-style.h: Rename include guard.
	* cli/cli-setshow.h: Rename include guard.
	* cli/cli-script.h: Rename include guard.
	* cli/cli-interp.h: Rename include guard.
	* cli/cli-decode.h: Rename include guard.
	* cli/cli-cmds.h: Rename include guard.
	* charset-list.h: Add include guard.
	* buildsym-legacy.h: Rename include guard.
	* bfin-tdep.h: Add include guard.
	* ax.h: Rename include guard.
	* arm-linux-tdep.h: Add include guard.
	* arm-fbsd-tdep.h: Add include guard.
	* arch/xtensa.h: Rename include guard.
	* arch/tic6x.h: Add include guard.
	* arch/i386.h: Add include guard.
	* arch/arm.h: Rename include guard.
	* arch/arm-linux.h: Rename include guard.
	* arch/arm-get-next-pcs.h: Rename include guard.
	* arch/amd64.h: Add include guard.
	* arch/aarch64-insn.h: Rename include guard.
	* arch-utils.h: Rename include guard.
	* annotate.h: Add include guard.
	* amd64-darwin-tdep.h: Rename include guard.
	* aarch64-linux-tdep.h: Add include guard.
	* aarch64-fbsd-tdep.h: Add include guard.
	* aarch32-linux-nat.h: Add include guard.

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

	* x86-tdesc.h: Rename include guard.
	* x86-low.h: Add include guard.
	* wincecompat.h: Rename include guard.
	* win32-low.h: Add include guard.
	* utils.h: Rename include guard.
	* tracepoint.h: Rename include guard.
	* tdesc.h: Rename include guard.
	* target.h: Rename include guard.
	* server.h: Rename include guard.
	* remote-utils.h: Rename include guard.
	* regcache.h: Rename include guard.
	* nto-low.h: Rename include guard.
	* notif.h: Add include guard.
	* mem-break.h: Rename include guard.
	* lynx-low.h: Add include guard.
	* linux-x86-tdesc.h: Add include guard.
	* linux-s390-tdesc.h: Add include guard.
	* linux-ppc-tdesc-init.h: Add include guard.
	* linux-low.h: Add include guard.
	* linux-aarch64-tdesc.h: Add include guard.
	* linux-aarch32-low.h: Add include guard.
	* inferiors.h: Rename include guard.
	* i387-fp.h: Rename include guard.
	* hostio.h: Rename include guard.
	* gdbthread.h: Rename include guard.
	* gdb_proc_service.h: Rename include guard.
	* event-loop.h: Rename include guard.
	* dll.h: Rename include guard.
	* debug.h: Rename include guard.
	* ax.h: Rename include guard.
This commit is contained in:
Tom Tromey 2019-01-27 12:51:36 -07:00
parent 31528deca5
commit 1a5c25988e
220 changed files with 974 additions and 530 deletions

View file

@ -1,3 +1,194 @@
2019-02-07 Tom Tromey <tom@tromey.com>
* yy-remap.h: Add include guard.
* xtensa-tdep.h: Add include guard.
* xcoffread.h: Rename include guard.
* varobj-iter.h: Add include guard.
* tui/tui.h: Rename include guard.
* tui/tui-winsource.h: Rename include guard.
* tui/tui-wingeneral.h: Rename include guard.
* tui/tui-windata.h: Rename include guard.
* tui/tui-win.h: Rename include guard.
* tui/tui-stack.h: Rename include guard.
* tui/tui-source.h: Rename include guard.
* tui/tui-regs.h: Rename include guard.
* tui/tui-out.h: Rename include guard.
* tui/tui-layout.h: Rename include guard.
* tui/tui-io.h: Rename include guard.
* tui/tui-hooks.h: Rename include guard.
* tui/tui-file.h: Rename include guard.
* tui/tui-disasm.h: Rename include guard.
* tui/tui-data.h: Rename include guard.
* tui/tui-command.h: Rename include guard.
* tic6x-tdep.h: Add include guard.
* target/waitstatus.h: Rename include guard.
* target/wait.h: Rename include guard.
* target/target.h: Rename include guard.
* target/resume.h: Rename include guard.
* target-float.h: Rename include guard.
* stabsread.h: Add include guard.
* rs6000-tdep.h: Add include guard.
* riscv-fbsd-tdep.h: Add include guard.
* regformats/regdef.h: Rename include guard.
* record.h: Rename include guard.
* python/python.h: Rename include guard.
* python/python-internal.h: Rename include guard.
* python/py-stopevent.h: Rename include guard.
* python/py-ref.h: Rename include guard.
* python/py-record.h: Rename include guard.
* python/py-record-full.h: Rename include guard.
* python/py-record-btrace.h: Rename include guard.
* python/py-instruction.h: Rename include guard.
* python/py-events.h: Rename include guard.
* python/py-event.h: Rename include guard.
* procfs.h: Add include guard.
* proc-utils.h: Add include guard.
* p-lang.h: Add include guard.
* or1k-tdep.h: Rename include guard.
* observable.h: Rename include guard.
* nto-tdep.h: Rename include guard.
* nat/x86-linux.h: Rename include guard.
* nat/x86-linux-dregs.h: Rename include guard.
* nat/x86-gcc-cpuid.h: Add include guard.
* nat/x86-dregs.h: Rename include guard.
* nat/x86-cpuid.h: Rename include guard.
* nat/ppc-linux.h: Rename include guard.
* nat/mips-linux-watch.h: Rename include guard.
* nat/linux-waitpid.h: Rename include guard.
* nat/linux-ptrace.h: Rename include guard.
* nat/linux-procfs.h: Rename include guard.
* nat/linux-osdata.h: Rename include guard.
* nat/linux-nat.h: Rename include guard.
* nat/linux-namespaces.h: Rename include guard.
* nat/linux-btrace.h: Rename include guard.
* nat/glibc_thread_db.h: Rename include guard.
* nat/gdb_thread_db.h: Rename include guard.
* nat/gdb_ptrace.h: Rename include guard.
* nat/fork-inferior.h: Rename include guard.
* nat/amd64-linux-siginfo.h: Rename include guard.
* nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
* nat/aarch64-sve-linux-ptrace.h: Rename include guard.
* nat/aarch64-linux.h: Rename include guard.
* nat/aarch64-linux-hw-point.h: Rename include guard.
* mn10300-tdep.h: Add include guard.
* mips-linux-tdep.h: Add include guard.
* mi/mi-parse.h: Rename include guard.
* mi/mi-out.h: Rename include guard.
* mi/mi-main.h: Rename include guard.
* mi/mi-interp.h: Rename include guard.
* mi/mi-getopt.h: Rename include guard.
* mi/mi-console.h: Rename include guard.
* mi/mi-common.h: Rename include guard.
* mi/mi-cmds.h: Rename include guard.
* mi/mi-cmd-break.h: Rename include guard.
* m2-lang.h: Add include guard.
* location.h: Rename include guard.
* linux-record.h: Rename include guard.
* linux-nat.h: Add include guard.
* linux-fork.h: Add include guard.
* i386-darwin-tdep.h: Rename include guard.
* hppa-linux-offsets.h: Add include guard.
* guile/guile.h: Rename include guard.
* guile/guile-internal.h: Rename include guard.
* gnu-nat.h: Rename include guard.
* gdb-stabs.h: Rename include guard.
* frv-tdep.h: Add include guard.
* f-lang.h: Add include guard.
* event-loop.h: Add include guard.
* darwin-nat.h: Rename include guard.
* cp-abi.h: Rename include guard.
* config/sparc/nm-sol2.h: Rename include guard.
* config/nm-nto.h: Rename include guard.
* config/nm-linux.h: Add include guard.
* config/i386/nm-i386gnu.h: Rename include guard.
* config/djgpp/nl_types.h: Rename include guard.
* config/djgpp/langinfo.h: Rename include guard.
* compile/gcc-cp-plugin.h: Add include guard.
* compile/gcc-c-plugin.h: Add include guard.
* compile/compile.h: Rename include guard.
* compile/compile-object-run.h: Rename include guard.
* compile/compile-object-load.h: Rename include guard.
* compile/compile-internal.h: Rename include guard.
* compile/compile-cplus.h: Rename include guard.
* compile/compile-c.h: Rename include guard.
* common/xml-utils.h: Rename include guard.
* common/x86-xstate.h: Rename include guard.
* common/version.h: Rename include guard.
* common/vec.h: Rename include guard.
* common/tdesc.h: Rename include guard.
* common/selftest.h: Rename include guard.
* common/scoped_restore.h: Rename include guard.
* common/scoped_mmap.h: Rename include guard.
* common/scoped_fd.h: Rename include guard.
* common/safe-iterator.h: Rename include guard.
* common/run-time-clock.h: Rename include guard.
* common/refcounted-object.h: Rename include guard.
* common/queue.h: Rename include guard.
* common/ptid.h: Rename include guard.
* common/print-utils.h: Rename include guard.
* common/preprocessor.h: Rename include guard.
* common/pathstuff.h: Rename include guard.
* common/observable.h: Rename include guard.
* common/netstuff.h: Rename include guard.
* common/job-control.h: Rename include guard.
* common/host-defs.h: Rename include guard.
* common/gdb_wait.h: Rename include guard.
* common/gdb_vecs.h: Rename include guard.
* common/gdb_unlinker.h: Rename include guard.
* common/gdb_unique_ptr.h: Rename include guard.
* common/gdb_tilde_expand.h: Rename include guard.
* common/gdb_sys_time.h: Rename include guard.
* common/gdb_string_view.h: Rename include guard.
* common/gdb_splay_tree.h: Rename include guard.
* common/gdb_setjmp.h: Rename include guard.
* common/gdb_ref_ptr.h: Rename include guard.
* common/gdb_optional.h: Rename include guard.
* common/gdb_locale.h: Rename include guard.
* common/gdb_assert.h: Rename include guard.
* common/filtered-iterator.h: Rename include guard.
* common/filestuff.h: Rename include guard.
* common/fileio.h: Rename include guard.
* common/environ.h: Rename include guard.
* common/common-utils.h: Rename include guard.
* common/common-types.h: Rename include guard.
* common/common-regcache.h: Rename include guard.
* common/common-inferior.h: Rename include guard.
* common/common-gdbthread.h: Rename include guard.
* common/common-exceptions.h: Rename include guard.
* common/common-defs.h: Rename include guard.
* common/common-debug.h: Rename include guard.
* common/cleanups.h: Rename include guard.
* common/buffer.h: Rename include guard.
* common/btrace-common.h: Rename include guard.
* common/break-common.h: Rename include guard.
* cli/cli-utils.h: Rename include guard.
* cli/cli-style.h: Rename include guard.
* cli/cli-setshow.h: Rename include guard.
* cli/cli-script.h: Rename include guard.
* cli/cli-interp.h: Rename include guard.
* cli/cli-decode.h: Rename include guard.
* cli/cli-cmds.h: Rename include guard.
* charset-list.h: Add include guard.
* buildsym-legacy.h: Rename include guard.
* bfin-tdep.h: Add include guard.
* ax.h: Rename include guard.
* arm-linux-tdep.h: Add include guard.
* arm-fbsd-tdep.h: Add include guard.
* arch/xtensa.h: Rename include guard.
* arch/tic6x.h: Add include guard.
* arch/i386.h: Add include guard.
* arch/arm.h: Rename include guard.
* arch/arm-linux.h: Rename include guard.
* arch/arm-get-next-pcs.h: Rename include guard.
* arch/amd64.h: Add include guard.
* arch/aarch64-insn.h: Rename include guard.
* arch-utils.h: Rename include guard.
* annotate.h: Add include guard.
* amd64-darwin-tdep.h: Rename include guard.
* aarch64-linux-tdep.h: Add include guard.
* aarch64-fbsd-tdep.h: Add include guard.
* aarch32-linux-nat.h: Add include guard.
2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be> 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* macrotab.c (macro_define_internal): New function that * macrotab.c (macro_define_internal): New function that

View file

@ -15,6 +15,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef AARCH32_LINUX_NAT_H
#define AARCH32_LINUX_NAT_H
/* Fetch and store VFP Registers. The kernel object has space for 32 /* Fetch and store VFP Registers. The kernel object has space for 32
64-bit registers, and the FPSCR. This is even when on a VFPv2 or 64-bit registers, and the FPSCR. This is even when on a VFPv2 or
VFPv3D16 target. */ VFPv3D16 target. */
@ -32,3 +35,5 @@ void aarch32_vfp_regcache_supply (struct regcache *regcache, gdb_byte *regs,
void aarch32_vfp_regcache_collect (const struct regcache *regcache, void aarch32_vfp_regcache_collect (const struct regcache *regcache,
gdb_byte *regs, gdb_byte *regs,
const int vfp_register_count); const int vfp_register_count);
#endif /* AARCH32_LINUX_NAT_H */

View file

@ -17,6 +17,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef AARCH64_FBSD_TDEP_H
#define AARCH64_FBSD_TDEP_H
#include "regset.h" #include "regset.h"
/* The general-purpose regset consists of 30 X registers, plus LR, SP, /* The general-purpose regset consists of 30 X registers, plus LR, SP,
@ -31,3 +34,5 @@
extern const struct regset aarch64_fbsd_gregset; extern const struct regset aarch64_fbsd_gregset;
extern const struct regset aarch64_fbsd_fpregset; extern const struct regset aarch64_fbsd_fpregset;
#endif /* AARCH64_FBSD_TDEP_H */

View file

@ -18,6 +18,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef AARCH64_LINUX_TDEP_H
#define AARCH64_LINUX_TDEP_H
#include "regset.h" #include "regset.h"
/* The general-purpose regset consists of 31 X registers, plus SP, PC, /* The general-purpose regset consists of 31 X registers, plus SP, PC,
@ -32,3 +35,5 @@
extern const struct regset aarch64_linux_gregset; extern const struct regset aarch64_linux_gregset;
extern const struct regset aarch64_linux_fpregset; extern const struct regset aarch64_linux_fpregset;
#endif /* AARCH64_LINUX_TDEP_H */

View file

@ -16,8 +16,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef __AMD64_DARWIN_TDEP_H__
#define __AMD64_DARWIN_TDEP_H__ #ifndef AMD64_DARWIN_TDEP_H
#define AMD64_DARWIN_TDEP_H
/* Mapping between the general-purpose registers in Darwin x86-64 thread /* Mapping between the general-purpose registers in Darwin x86-64 thread
state and GDB's register cache layout. state and GDB's register cache layout.
@ -25,4 +26,4 @@
extern int amd64_darwin_thread_state_reg_offset[]; extern int amd64_darwin_thread_state_reg_offset[];
extern const int amd64_darwin_thread_state_num_regs; extern const int amd64_darwin_thread_state_num_regs;
#endif /* __AMD64_DARWIN_TDEP_H__ */ #endif /* AMD64_DARWIN_TDEP_H */

View file

@ -16,6 +16,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef ANNOTATE_H
#define ANNOTATE_H
#include "symtab.h" #include "symtab.h"
#include "gdbtypes.h" #include "gdbtypes.h"
@ -110,3 +113,5 @@ extern void annotate_array_section_end (void);
extern void (*deprecated_annotate_signalled_hook) (void); extern void (*deprecated_annotate_signalled_hook) (void);
extern void (*deprecated_annotate_signal_hook) (void); extern void (*deprecated_annotate_signal_hook) (void);
#endif /* ANNOTATE_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDBARCH_UTILS_H #ifndef ARCH_UTILS_H
#define GDBARCH_UTILS_H #define ARCH_UTILS_H
struct gdbarch; struct gdbarch;
struct frame_info; struct frame_info;
@ -271,4 +271,4 @@ extern bool default_in_indirect_branch_thunk (gdbarch *gdbarch,
extern ULONGEST default_type_align (struct gdbarch *gdbarch, extern ULONGEST default_type_align (struct gdbarch *gdbarch,
struct type *type); struct type *type);
#endif #endif /* ARCH_UTILS_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef AARCH64_INSN_H #ifndef ARCH_AARCH64_INSN_H
#define AARCH64_INSN_H 1 #define ARCH_AARCH64_INSN_H
extern int aarch64_debug; extern int aarch64_debug;
@ -321,4 +321,4 @@ int aarch64_emit_load_store (uint32_t *buf, uint32_t size,
struct aarch64_register rn, struct aarch64_register rn,
struct aarch64_memory_operand operand); struct aarch64_memory_operand operand);
#endif #endif /* ARCH_AARCH64_INSN_H */

View file

@ -15,8 +15,13 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef ARCH_AMD64_H
#define ARCH_AMD64_H
#include "common/tdesc.h" #include "common/tdesc.h"
#include <stdint.h> #include <stdint.h>
target_desc *amd64_create_target_description (uint64_t xcr0, bool is_x32, target_desc *amd64_create_target_description (uint64_t xcr0, bool is_x32,
bool is_linux, bool segments); bool is_linux, bool segments);
#endif /* ARCH_AMD64_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef ARM_GET_NEXT_PCS_H #ifndef ARCH_ARM_GET_NEXT_PCS_H
#define ARM_GET_NEXT_PCS_H 1 #define ARCH_ARM_GET_NEXT_PCS_H
#include <vector> #include <vector>
@ -64,4 +64,4 @@ void arm_get_next_pcs_ctor (struct arm_get_next_pcs *self,
/* Find the next possible PCs after the current instruction executes. */ /* Find the next possible PCs after the current instruction executes. */
std::vector<CORE_ADDR> arm_get_next_pcs (struct arm_get_next_pcs *self); std::vector<CORE_ADDR> arm_get_next_pcs (struct arm_get_next_pcs *self);
#endif /* ARM_GET_NEXT_PCS_H */ #endif /* ARCH_ARM_GET_NEXT_PCS_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef ARM_LINUX_H #ifndef ARCH_ARM_LINUX_H
#define ARM_LINUX_H #define ARCH_ARM_LINUX_H
/* The index to access CSPR in user_regs defined in GLIBC. */ /* The index to access CSPR in user_regs defined in GLIBC. */
#define ARM_CPSR_GREGNUM 16 #define ARM_CPSR_GREGNUM 16
@ -78,4 +78,5 @@ struct arm_get_next_pcs;
CORE_ADDR arm_linux_get_next_pcs_fixup (struct arm_get_next_pcs *self, CORE_ADDR arm_linux_get_next_pcs_fixup (struct arm_get_next_pcs *self,
CORE_ADDR pc); CORE_ADDR pc);
#endif /* ARM_LINUX_H */
#endif /* ARCH_ARM_LINUX_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef ARM_H #ifndef ARCH_ARM_H
#define ARM_H #define ARCH_ARM_H
/* Register numbers of various important registers. */ /* Register numbers of various important registers. */
@ -146,4 +146,4 @@ unsigned long shifted_reg_val (struct regcache *regcache,
unsigned long pc_val, unsigned long pc_val,
unsigned long status_reg); unsigned long status_reg);
#endif #endif /* ARCH_ARM_H */

View file

@ -15,7 +15,12 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef ARCH_I386_H
#define ARCH_I386_H
#include "common/tdesc.h" #include "common/tdesc.h"
#include <stdint.h> #include <stdint.h>
target_desc *i386_create_target_description (uint64_t xcr0, bool is_linux); target_desc *i386_create_target_description (uint64_t xcr0, bool is_linux);
#endif /* ARCH_I386_H */

View file

@ -15,6 +15,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef ARCH_TIC6X_H
#define ARCH_TIC6X_H
enum c6x_feature enum c6x_feature
{ {
C6X_CORE, C6X_CORE,
@ -24,3 +27,5 @@ enum c6x_feature
}; };
target_desc *tic6x_create_target_description (enum c6x_feature feature); target_desc *tic6x_create_target_description (enum c6x_feature feature);
#endif /* ARCH_TIC6X_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef XTENSA_H #ifndef ARCH_XTENSA_H
#define XTENSA_H #define ARCH_XTENSA_H
/* Xtensa ELF core file register set representation ('.reg' section). /* Xtensa ELF core file register set representation ('.reg' section).
Copied from target-side ELF header <xtensa/elf.h>. */ Copied from target-side ELF header <xtensa/elf.h>. */
@ -45,4 +45,4 @@ typedef struct
#define C0_NREGS 16 /* Number of A-registers to track in call0 ABI. */ #define C0_NREGS 16 /* Number of A-registers to track in call0 ABI. */
#endif #endif /* ARCH_XTENSA_H */

View file

@ -17,6 +17,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef ARM_FBSD_TDEP_H
#define ARM_FBSD_TDEP_H
#include "regset.h" #include "regset.h"
/* The general-purpose regset consists of 13 R registers, plus SP, LR, /* The general-purpose regset consists of 13 R registers, plus SP, LR,
@ -38,3 +41,5 @@ extern const struct regset arm_fbsd_vfpregset;
extern const struct target_desc * extern const struct target_desc *
arm_fbsd_read_description_auxv (struct target_ops *target); arm_fbsd_read_description_auxv (struct target_ops *target);
#endif /* ARM_FBSD_TDEP_H */

View file

@ -17,6 +17,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef ARM_LINUX_TDEP_H
#define ARM_LINUX_TDEP_H
struct regset; struct regset;
struct regcache; struct regcache;
@ -64,3 +67,4 @@ void arm_linux_collect_nwfpe (const struct regset *regset,
#define HWCAP_VFPv3 8192 #define HWCAP_VFPv3 8192
#define HWCAP_VFPv3D16 16384 #define HWCAP_VFPv3D16 16384
#endif /* ARM_LINUX_TDEP_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef AGENTEXPR_H #ifndef AX_H
#define AGENTEXPR_H #define AX_H
#include "common/vec.h" #include "common/vec.h"
@ -267,4 +267,4 @@ extern struct aop_map aop_map[];
extern void ax_reqs (struct agent_expr *ax); extern void ax_reqs (struct agent_expr *ax);
#endif /* AGENTEXPR_H */ #endif /* AX_H */

View file

@ -19,6 +19,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef BFIN_TDEP_H
#define BFIN_TDEP_H
enum gdb_regnum { enum gdb_regnum {
/* Core Registers */ /* Core Registers */
BFIN_R0_REGNUM = 0, BFIN_R0_REGNUM = 0,
@ -99,3 +102,5 @@ struct gdbarch_tdep
/* Return the Blackfin ABI associated with GDBARCH. */ /* Return the Blackfin ABI associated with GDBARCH. */
extern enum bfin_abi bfin_abi (struct gdbarch *gdbarch); extern enum bfin_abi bfin_abi (struct gdbarch *gdbarch);
#endif /* BFIN_TDEP_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#if !defined (LEGACY_BUILDSYM_H) #ifndef BUILDSYM_LEGACY_H
#define LEGACY_BUILDSYM_H 1 #define BUILDSYM_LEGACY_H
#include "buildsym.h" #include "buildsym.h"
@ -179,4 +179,4 @@ extern struct pending **get_global_symbols ();
extern struct buildsym_compunit *get_buildsym_compunit (); extern struct buildsym_compunit *get_buildsym_compunit ();
#endif /* defined (LEGACY_BUILDSYM_H) */ #endif /* BUILDSYM_LEGACY_H */

View file

@ -17,6 +17,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef CHARSET_LIST_H
#define CHARSET_LIST_H
/* Note that the first entry must always be "auto". /* Note that the first entry must always be "auto".
The remaining entries were created by running this script: The remaining entries were created by running this script:
@ -1188,3 +1191,5 @@
"WINSAMI2", \ "WINSAMI2", \
"WS2", \ "WS2", \
"YU", "YU",
#endif /* CHARSET_LIST_H */

View file

@ -14,8 +14,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#if !defined (CLI_CMDS_H) #ifndef CLI_CLI_CMDS_H
#define CLI_CMDS_H 1 #define CLI_CLI_CMDS_H
#include "common/filestuff.h" #include "common/filestuff.h"
#include "common/gdb_optional.h" #include "common/gdb_optional.h"
@ -142,4 +142,4 @@ extern gdb::optional<open_script>
extern int source_verbose; extern int source_verbose;
extern int trace_commands; extern int trace_commands;
#endif /* !defined (CLI_CMDS_H) */ #endif /* CLI_CLI_CMDS_H */

View file

@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#if !defined (CLI_DECODE_H) #ifndef CLI_CLI_DECODE_H
#define CLI_DECODE_H 1 #define CLI_CLI_DECODE_H
/* This file defines the private interfaces for any code implementing /* This file defines the private interfaces for any code implementing
command internals. */ command internals. */
@ -270,4 +270,4 @@ extern int cli_user_command_p (struct cmd_list_element *);
extern int find_command_name_length (const char *); extern int find_command_name_length (const char *);
#endif /* !defined (CLI_DECODE_H) */ #endif /* CLI_CLI_DECODE_H */

View file

@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef CLI_INTERP_H #ifndef CLI_CLI_INTERP_H
#define CLI_INTERP_H 1 #define CLI_CLI_INTERP_H
#include "interps.h" #include "interps.h"
@ -60,4 +60,4 @@ extern void cli_interpreter_pre_command_loop (struct interp *self);
extern int should_print_stop_to_console (struct interp *interp, extern int should_print_stop_to_console (struct interp *interp,
struct thread_info *tp); struct thread_info *tp);
#endif #endif /* CLI_CLI_INTERP_H */

View file

@ -14,8 +14,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#if !defined (CLI_SCRIPT_H) #ifndef CLI_CLI_SCRIPT_H
#define CLI_SCRIPT_H 1 #define CLI_CLI_SCRIPT_H
struct ui_file; struct ui_file;
struct cmd_list_element; struct cmd_list_element;
@ -168,4 +168,4 @@ extern void print_command_trace (const char *cmd, ...)
extern void reset_command_nest_depth (void); extern void reset_command_nest_depth (void);
#endif /* !defined (CLI_SCRIPT_H) */ #endif /* CLI_CLI_SCRIPT_H */

View file

@ -14,8 +14,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#if !defined (CLI_SETSHOW_H) #ifndef CLI_CLI_SETSHOW_H
#define CLI_SETSHOW_H 1 #define CLI_CLI_SETSHOW_H
struct cmd_list_element; struct cmd_list_element;
@ -31,4 +31,4 @@ extern void do_show_command (const char *arg, int from_tty,
extern void cmd_show_list (struct cmd_list_element *list, int from_tty, extern void cmd_show_list (struct cmd_list_element *list, int from_tty,
const char *prefix); const char *prefix);
#endif /* !defined (CLI_SETSHOW_H) */ #endif /* CLI_CLI_SETSHOW_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef CLI_STYLE_H #ifndef CLI_CLI_STYLE_H
#define CLI_STYLE_H #define CLI_CLI_STYLE_H
#include "ui-file.h" #include "ui-file.h"
@ -96,4 +96,4 @@ extern cli_style_option address_style;
/* True if styling is enabled. */ /* True if styling is enabled. */
extern int cli_styling; extern int cli_styling;
#endif /* CLI_STYLE_H */ #endif /* CLI_CLI_STYLE_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef CLI_UTILS_H #ifndef CLI_CLI_UTILS_H
#define CLI_UTILS_H #define CLI_CLI_UTILS_H
/* *PP is a string denoting a number. Get the number. Advance *PP /* *PP is a string denoting a number. Get the number. Advance *PP
after the string and any trailing whitespace. after the string and any trailing whitespace.
@ -238,4 +238,5 @@ struct qcs_flags
extern bool parse_flags_qcs (const char *which_command, const char **str, extern bool parse_flags_qcs (const char *which_command, const char **str,
qcs_flags *flags); qcs_flags *flags);
#endif /* CLI_UTILS_H */
#endif /* CLI_CLI_UTILS_H */

View file

@ -16,8 +16,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef BREAK_COMMON_H
#define BREAK_COMMON_H 1 #ifndef COMMON_BREAK_COMMON_H
#define COMMON_BREAK_COMMON_H
enum target_hw_bp_type enum target_hw_bp_type
{ {
@ -27,4 +28,4 @@ enum target_hw_bp_type
hw_execute = 3 /* Execute HW breakpoint */ hw_execute = 3 /* Execute HW breakpoint */
}; };
#endif #endif /* COMMON_BREAK_COMMON_H */

View file

@ -19,8 +19,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef BTRACE_COMMON_H #ifndef COMMON_BTRACE_COMMON_H
#define BTRACE_COMMON_H #define COMMON_BTRACE_COMMON_H
/* Branch tracing (btrace) is a per-thread control-flow execution trace of the /* Branch tracing (btrace) is a per-thread control-flow execution trace of the
inferior. For presentation purposes, the branch trace is represented as a inferior. For presentation purposes, the branch trace is represented as a
@ -254,4 +254,4 @@ extern const char *btrace_format_short_string (enum btrace_format format);
extern int btrace_data_append (struct btrace_data *dst, extern int btrace_data_append (struct btrace_data *dst,
const struct btrace_data *src); const struct btrace_data *src);
#endif /* BTRACE_COMMON_H */ #endif /* COMMON_BTRACE_COMMON_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef BUFFER_H #ifndef COMMON_BUFFER_H
#define BUFFER_H #define COMMON_BUFFER_H
struct buffer struct buffer
{ {
@ -65,4 +65,4 @@ void buffer_xml_printf (struct buffer *buffer, const char *format, ...)
#define buffer_grow_str0(BUFFER,STRING) \ #define buffer_grow_str0(BUFFER,STRING) \
buffer_grow (BUFFER, STRING, strlen (STRING) + 1) buffer_grow (BUFFER, STRING, strlen (STRING) + 1)
#endif #endif /* COMMON_BUFFER_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef CLEANUPS_H #ifndef COMMON_CLEANUPS_H
#define CLEANUPS_H #define COMMON_CLEANUPS_H
/* Outside of cleanups.c, this is an opaque type. */ /* Outside of cleanups.c, this is an opaque type. */
struct cleanup; struct cleanup;
@ -66,4 +66,4 @@ extern void restore_final_cleanups (struct cleanup *);
to pass to do_cleanups. */ to pass to do_cleanups. */
extern void null_cleanup (void *); extern void null_cleanup (void *);
#endif /* CLEANUPS_H */ #endif /* COMMON_CLEANUPS_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef COMMON_DEBUG_H #ifndef COMMON_COMMON_DEBUG_H
#define COMMON_DEBUG_H #define COMMON_COMMON_DEBUG_H
/* Set to nonzero to enable debugging of hardware breakpoint/ /* Set to nonzero to enable debugging of hardware breakpoint/
watchpoint support code. */ watchpoint support code. */
@ -38,4 +38,4 @@ extern void debug_printf (const char *format, ...)
extern void debug_vprintf (const char *format, va_list ap) extern void debug_vprintf (const char *format, va_list ap)
ATTRIBUTE_PRINTF (1, 0); ATTRIBUTE_PRINTF (1, 0);
#endif /* COMMON_DEBUG_H */ #endif /* COMMON_COMMON_DEBUG_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef COMMON_DEFS_H #ifndef COMMON_COMMON_DEFS_H
#define COMMON_DEFS_H #define COMMON_COMMON_DEFS_H
#include "config.h" #include "config.h"
@ -127,4 +127,4 @@ extern char *current_directory;
#define HAVE_USEFUL_SBRK 1 #define HAVE_USEFUL_SBRK 1
#endif #endif
#endif /* COMMON_DEFS_H */ #endif /* COMMON_COMMON_DEFS_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef COMMON_EXCEPTIONS_H #ifndef COMMON_COMMON_EXCEPTIONS_H
#define COMMON_EXCEPTIONS_H #define COMMON_COMMON_EXCEPTIONS_H
#include <setjmp.h> #include <setjmp.h>
#include <new> #include <new>
@ -338,4 +338,4 @@ extern void throw_quit (const char *fmt, ...)
/* A pre-defined non-exception. */ /* A pre-defined non-exception. */
extern const struct gdb_exception exception_none; extern const struct gdb_exception exception_none;
#endif /* COMMON_EXCEPTIONS_H */ #endif /* COMMON_COMMON_EXCEPTIONS_H */

View file

@ -16,10 +16,10 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef COMMON_GDBTHREAD_H #ifndef COMMON_COMMON_GDBTHREAD_H
#define COMMON_GDBTHREAD_H #define COMMON_COMMON_GDBTHREAD_H
/* Switch from one thread to another. */ /* Switch from one thread to another. */
extern void switch_to_thread (ptid_t ptid); extern void switch_to_thread (ptid_t ptid);
#endif /* ! COMMON_GDBTHREAD_H */ #endif /* COMMON_COMMON_GDBTHREAD_H */

View file

@ -18,8 +18,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef COMMON_INFERIOR_H #ifndef COMMON_COMMON_INFERIOR_H
#define COMMON_INFERIOR_H #define COMMON_COMMON_INFERIOR_H
/* Return the exec wrapper to be used when starting the inferior, or NULL /* Return the exec wrapper to be used when starting the inferior, or NULL
otherwise. */ otherwise. */
@ -38,4 +38,4 @@ extern const char *get_inferior_cwd ();
the directory. */ the directory. */
extern void set_inferior_cwd (const char *cwd); extern void set_inferior_cwd (const char *cwd);
#endif /* ! COMMON_INFERIOR_H */ #endif /* COMMON_COMMON_INFERIOR_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef COMMON_REGCACHE_H #ifndef COMMON_COMMON_REGCACHE_H
#define COMMON_REGCACHE_H #define COMMON_COMMON_REGCACHE_H
/* This header is a stopgap until we have an independent regcache. */ /* This header is a stopgap until we have an independent regcache. */
@ -82,4 +82,4 @@ struct reg_buffer_common
virtual bool raw_compare (int regnum, const void *buf, int offset) const = 0; virtual bool raw_compare (int regnum, const void *buf, int offset) const = 0;
}; };
#endif /* COMMON_REGCACHE_H */ #endif /* COMMON_COMMON_REGCACHE_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef COMMON_TYPES_H #ifndef COMMON_COMMON_TYPES_H
#define COMMON_TYPES_H #define COMMON_COMMON_TYPES_H
#ifdef GDBSERVER #ifdef GDBSERVER
@ -63,4 +63,4 @@ typedef unsigned long long ULONGEST;
enum tribool { TRIBOOL_UNKNOWN = -1, TRIBOOL_FALSE = 0, TRIBOOL_TRUE = 1 }; enum tribool { TRIBOOL_UNKNOWN = -1, TRIBOOL_FALSE = 0, TRIBOOL_TRUE = 1 };
#endif /* COMMON_TYPES_H */ #endif /* COMMON_COMMON_TYPES_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef COMMON_UTILS_H #ifndef COMMON_COMMON_UTILS_H
#define COMMON_UTILS_H #define COMMON_COMMON_UTILS_H
#include <string> #include <string>
#include <vector> #include <vector>
@ -178,4 +178,4 @@ in_inclusive_range (T value, T low, T high)
extern ULONGEST align_up (ULONGEST v, int n); extern ULONGEST align_up (ULONGEST v, int n);
extern ULONGEST align_down (ULONGEST v, int n); extern ULONGEST align_down (ULONGEST v, int n);
#endif #endif /* COMMON_COMMON_UTILS_H */

View file

@ -14,8 +14,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#if !defined (ENVIRON_H) #ifndef COMMON_ENVIRON_H
#define ENVIRON_H 1 #define COMMON_ENVIRON_H
#include <vector> #include <vector>
#include <set> #include <set>
@ -100,4 +100,4 @@ private:
std::set<std::string> m_user_unset_env; std::set<std::string> m_user_unset_env;
}; };
#endif /* defined (ENVIRON_H) */ #endif /* COMMON_ENVIRON_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef FILEIO_H #ifndef COMMON_FILEIO_H
#define FILEIO_H #define COMMON_FILEIO_H
#include "gdb/fileio.h" #include "gdb/fileio.h"
#include <sys/stat.h> #include <sys/stat.h>
@ -70,4 +70,4 @@ host_to_fileio_time (time_t num, fio_time_t fnum)
extern void host_to_fileio_stat (struct stat *st, struct fio_stat *fst); extern void host_to_fileio_stat (struct stat *st, struct fio_stat *fst);
#endif /* FILEIO_H */ #endif /* COMMON_FILEIO_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef FILESTUFF_H #ifndef COMMON_FILESTUFF_H
#define FILESTUFF_H #define COMMON_FILESTUFF_H
#include <dirent.h> #include <dirent.h>
#include <fcntl.h> #include <fcntl.h>
@ -143,4 +143,4 @@ extern bool is_regular_file (const char *name, int *errno_ptr);
extern bool mkdir_recursive (const char *dir); extern bool mkdir_recursive (const char *dir);
#endif /* FILESTUFF_H */ #endif /* COMMON_FILESTUFF_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef FILTERED_ITERATOR_H #ifndef COMMON_FILTERED_ITERATOR_H
#define FILTERED_ITERATOR_H #define COMMON_FILTERED_ITERATOR_H
/* A filtered iterator. This wraps BaseIterator and automatically /* A filtered iterator. This wraps BaseIterator and automatically
skips elements that FilterFunc filters out. Requires that skips elements that FilterFunc filters out. Requires that
@ -84,4 +84,4 @@ private:
BaseIterator m_end {}; BaseIterator m_end {};
}; };
#endif /* FILTERED_ITERATOR_H */ #endif /* COMMON_FILTERED_ITERATOR_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_ASSERT_H #ifndef COMMON_GDB_ASSERT_H
#define GDB_ASSERT_H #define COMMON_GDB_ASSERT_H
/* A static assertion. This will cause a compile-time error if EXPR, /* A static assertion. This will cause a compile-time error if EXPR,
which must be a compile-time constant, is false. */ which must be a compile-time constant, is false. */
@ -56,4 +56,4 @@
internal_error (__FILE__, __LINE__, _(message)) internal_error (__FILE__, __LINE__, _(message))
#endif #endif
#endif /* gdb_assert.h */ #endif /* COMMON_GDB_ASSERT_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_LOCALE_H #ifndef COMMON_GDB_LOCALE_H
#define GDB_LOCALE_H #define COMMON_GDB_LOCALE_H
#ifdef HAVE_LOCALE_H #ifdef HAVE_LOCALE_H
# include <locale.h> # include <locale.h>
@ -40,4 +40,4 @@
#include <langinfo.h> #include <langinfo.h>
#endif #endif
#endif /* GDB_LOCALE_H */ #endif /* COMMON_GDB_LOCALE_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_OPTIONAL_H #ifndef COMMON_GDB_OPTIONAL_H
#define GDB_OPTIONAL_H #define COMMON_GDB_OPTIONAL_H
#include "common/traits.h" #include "common/traits.h"
@ -216,4 +216,4 @@ private:
} }
#endif /* GDB_OPTIONAL_H */ #endif /* COMMON_GDB_OPTIONAL_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_REF_PTR_H #ifndef COMMON_GDB_REF_PTR_H
#define GDB_REF_PTR_H #define COMMON_GDB_REF_PTR_H
#include <cstddef> #include <cstddef>
@ -225,4 +225,4 @@ inline bool operator!= (const std::nullptr_t, const ref_ptr<T, Policy> &rhs)
} }
#endif /* GDB_REF_PTR_H */ #endif /* COMMON_GDB_REF_PTR_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_SETJMP_H #ifndef COMMON_GDB_SETJMP_H
#define GDB_SETJMP_H #define COMMON_GDB_SETJMP_H
#include <setjmp.h> #include <setjmp.h>
@ -31,4 +31,4 @@
#define SIGLONGJMP(buf,val) longjmp((buf), (val)) #define SIGLONGJMP(buf,val) longjmp((buf), (val))
#endif #endif
#endif /* GDB_SETJMP_H */ #endif /* COMMON_GDB_SETJMP_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_SPLAY_TREE_H #ifndef COMMON_GDB_SPLAY_TREE_H
#define GDB_SPLAY_TREE_H #define COMMON_GDB_SPLAY_TREE_H
#include "splay-tree.h" #include "splay-tree.h"
@ -39,4 +39,4 @@ struct splay_tree_deleter
typedef std::unique_ptr<splay_tree_s, gdb::splay_tree_deleter> typedef std::unique_ptr<splay_tree_s, gdb::splay_tree_deleter>
gdb_splay_tree_up; gdb_splay_tree_up;
#endif /* ! GDB_SPLAY_TREE_H */ #endif /* COMMON_GDB_SPLAY_TREE_H */

View file

@ -1,5 +1,9 @@
// Components for manipulating non-owning sequences of characters -*- C++ -*- // Components for manipulating non-owning sequences of characters -*- C++ -*-
#ifndef COMMON_GDB_STRING_VIEW_H
#define COMMON_GDB_STRING_VIEW_H
// Note: This file has been stolen from the gcc repo // Note: This file has been stolen from the gcc repo
// (libstdc++-v3/include/experimental/string_view) and has local modifications. // (libstdc++-v3/include/experimental/string_view) and has local modifications.
@ -29,8 +33,6 @@
// N3762 basic_string_view library // N3762 basic_string_view library
// //
#ifndef GDB_STRING_VIEW_H
#define GDB_STRING_VIEW_H 1
#if __cplusplus >= 201703L #if __cplusplus >= 201703L
@ -557,4 +559,4 @@ namespace gdb {
#endif // __cplusplus < 201703L #endif // __cplusplus < 201703L
#endif /* GDB_STRING_VIEW_H */ #endif /* COMMON_GDB_STRING_VIEW_H */

View file

@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_SYS_TIME_H #ifndef COMMON_GDB_SYS_TIME_H
#define GDB_SYS_TIME_H #define COMMON_GDB_SYS_TIME_H
#include <sys/time.h> #include <sys/time.h>
@ -35,4 +35,4 @@
# undef gettimeofday # undef gettimeofday
#endif #endif
#endif /* #ifndef GDB_SYS_TIME_H */ #endif /* COMMON_GDB_SYS_TIME_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_TILDE_EXPAND_H #ifndef COMMON_GDB_TILDE_EXPAND_H
#define GDB_TILDE_EXPAND_H #define COMMON_GDB_TILDE_EXPAND_H
/* Perform path expansion (i.e., tilde expansion) on DIR, and return /* Perform path expansion (i.e., tilde expansion) on DIR, and return
the full path. */ the full path. */
@ -28,4 +28,4 @@ extern std::string gdb_tilde_expand (const char *dir);
gdb::unique_xmalloc_ptr<char>. */ gdb::unique_xmalloc_ptr<char>. */
extern gdb::unique_xmalloc_ptr<char> gdb_tilde_expand_up (const char *dir); extern gdb::unique_xmalloc_ptr<char> gdb_tilde_expand_up (const char *dir);
#endif /* ! GDB_TILDE_EXPAND_H */ #endif /* COMMON_GDB_TILDE_EXPAND_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_UNIQUE_PTR_H #ifndef COMMON_GDB_UNIQUE_PTR_H
#define GDB_UNIQUE_PTR_H 1 #define COMMON_GDB_UNIQUE_PTR_H
#include <memory> #include <memory>
@ -49,4 +49,4 @@ template<typename T> using unique_xmalloc_ptr
} /* namespace gdb */ } /* namespace gdb */
#endif /* GDB_UNIQUE_PTR_H */ #endif /* COMMON_GDB_UNIQUE_PTR_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_UNLINKER_H #ifndef COMMON_GDB_UNLINKER_H
#define GDB_UNLINKER_H #define COMMON_GDB_UNLINKER_H
namespace gdb namespace gdb
{ {
@ -57,4 +57,4 @@ class unlinker
} }
#endif /* GDB_UNLINKER_H */ #endif /* COMMON_GDB_UNLINKER_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_VECS_H #ifndef COMMON_GDB_VECS_H
#define GDB_VECS_H #define COMMON_GDB_VECS_H
#include "vec.h" #include "vec.h"
@ -86,4 +86,4 @@ ordered_remove (std::vector<T> &vec, typename std::vector<T>::size_type ix)
return removed; return removed;
} }
#endif /* GDB_VECS_H */ #endif /* COMMON_GDB_VECS_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_WAIT_H #ifndef COMMON_GDB_WAIT_H
#define 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> /* POSIX */
@ -110,4 +110,4 @@
#define __WCLONE 0x80000000 /* Wait for cloned process. */ #define __WCLONE 0x80000000 /* Wait for cloned process. */
#endif #endif
#endif #endif /* COMMON_GDB_WAIT_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef HOST_DEFS_H #ifndef COMMON_HOST_DEFS_H
#define HOST_DEFS_H #define COMMON_HOST_DEFS_H
#include <limits.h> #include <limits.h>
@ -58,4 +58,4 @@
#define SLASH_STRING "/" #define SLASH_STRING "/"
#endif #endif
#endif /* HOST_DEFS_H */ #endif /* COMMON_HOST_DEFS_H */

View file

@ -18,8 +18,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef JOB_CONTROL_H #ifndef COMMON_JOB_CONTROL_H
#define JOB_CONTROL_H #define COMMON_JOB_CONTROL_H
/* Do we have job control? Can be assumed to always be the same /* Do we have job control? Can be assumed to always be the same
within a given run of GDB. Use in gdb/inflow.c and within a given run of GDB. Use in gdb/inflow.c and
@ -35,4 +35,4 @@ extern int gdb_setpgid ();
JOB_CONTROL. */ JOB_CONTROL. */
extern void have_job_control (); extern void have_job_control ();
#endif /* ! JOB_CONTROL_H */ #endif /* COMMON_JOB_CONTROL_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef NETSTUFF_H #ifndef COMMON_NETSTUFF_H
#define NETSTUFF_H #define COMMON_NETSTUFF_H
#include <string> #include <string>
@ -73,4 +73,4 @@ extern parsed_connection_spec
extern parsed_connection_spec parse_connection_spec (const char *spec, extern parsed_connection_spec parse_connection_spec (const char *spec,
struct addrinfo *hint); struct addrinfo *hint);
#endif /* ! NETSTUFF_H */ #endif /* COMMON_NETSTUFF_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#if !defined (GDB_COMMON_OBSERVABLE_H) #ifndef COMMON_OBSERVABLE_H
#define GDB_COMMON_OBSERVABLE_H #define COMMON_OBSERVABLE_H
#include <algorithm> #include <algorithm>
#include <functional> #include <functional>
@ -116,4 +116,4 @@ private:
} /* namespace gdb */ } /* namespace gdb */
#endif /* GDB_COMMON_OBSERVABLE_H */ #endif /* COMMON_OBSERVABLE_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef PATHSTUFF_H #ifndef COMMON_PATHSTUFF_H
#define PATHSTUFF_H #define COMMON_PATHSTUFF_H
#include "common/byte-vector.h" #include "common/byte-vector.h"
@ -86,4 +86,4 @@ extern const char *get_shell ();
extern gdb::char_vector make_temp_filename (const std::string &f); extern gdb::char_vector make_temp_filename (const std::string &f);
#endif /* PATHSTUFF_H */ #endif /* COMMON_PATHSTUFF_H */

View file

@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef COMMON_PREPROC_H #ifndef COMMON_PREPROCESSOR_H
#define COMMON_PREPROC_H #define COMMON_PREPROCESSOR_H
/* Generally useful preprocessor bits. */ /* Generally useful preprocessor bits. */
@ -32,4 +32,4 @@
includes commas to another macro. */ includes commas to another macro. */
#define ESC_PARENS(...) __VA_ARGS__ #define ESC_PARENS(...) __VA_ARGS__
#endif /* COMMON_PREPROC */ #endif /* COMMON_PREPROCESSOR_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef COMMON_CELLS_H #ifndef COMMON_PRINT_UTILS_H
#define COMMON_CELLS_H #define COMMON_PRINT_UTILS_H
/* How many characters (including the terminating null byte) fit in a /* How many characters (including the terminating null byte) fit in a
cell. */ cell. */
@ -79,4 +79,4 @@ extern const char *host_address_to_string_1 (const void *addr);
extern char *get_print_cell (void); extern char *get_print_cell (void);
#endif /* COMMON_CELLS_H */ #endif /* COMMON_PRINT_UTILS_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef PTID_H #ifndef COMMON_PTID_H
#define PTID_H #define COMMON_PTID_H
/* The ptid struct is a collection of the various "ids" necessary for /* The ptid struct is a collection of the various "ids" necessary for
identifying the inferior process/thread being debugged. This identifying the inferior process/thread being debugged. This
@ -152,4 +152,4 @@ extern ptid_t null_ptid;
extern ptid_t minus_one_ptid; extern ptid_t minus_one_ptid;
#endif #endif /* COMMON_PTID_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef QUEUE_H #ifndef COMMON_QUEUE_H
#define QUEUE_H #define COMMON_QUEUE_H
/* These macros implement functions and structs for a general queue. /* These macros implement functions and structs for a general queue.
Macro 'DEFINE_QUEUE_P(TYPEDEF)' is to define the new queue type for Macro 'DEFINE_QUEUE_P(TYPEDEF)' is to define the new queue type for
@ -295,4 +295,4 @@ extern void \
queue_ ## TYPE ## _remove_elem (QUEUE (TYPE) *q, \ queue_ ## TYPE ## _remove_elem (QUEUE (TYPE) *q, \
QUEUE_ITER (TYPE) *iter); \ QUEUE_ITER (TYPE) *iter); \
#endif /* QUEUE_H */ #endif /* COMMON_QUEUE_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef REFCOUNTED_OBJECT_H #ifndef COMMON_REFCOUNTED_OBJECT_H
#define REFCOUNTED_OBJECT_H #define COMMON_REFCOUNTED_OBJECT_H
/* Base class of intrusively reference-countable objects. /* Base class of intrusively reference-countable objects.
Incrementing and decrementing the reference count is an external Incrementing and decrementing the reference count is an external
@ -67,4 +67,4 @@ struct refcounted_object_ref_policy
} }
}; };
#endif /* REFCOUNTED_OBJECT_H */ #endif /* COMMON_REFCOUNTED_OBJECT_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef RUN_TIME_CLOCK_H #ifndef COMMON_RUN_TIME_CLOCK_H
#define RUN_TIME_CLOCK_H #define COMMON_RUN_TIME_CLOCK_H
#include <chrono> #include <chrono>
@ -72,4 +72,4 @@ struct run_time_clock
system_cpu_time_clock::time_point &system) noexcept; system_cpu_time_clock::time_point &system) noexcept;
}; };
#endif #endif /* COMMON_RUN_TIME_CLOCK_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef SAFE_ITERATOR_H #ifndef COMMON_SAFE_ITERATOR_H
#define SAFE_ITERATOR_H #define COMMON_SAFE_ITERATOR_H
/* A forward iterator that wraps Iterator, such that when iterating /* A forward iterator that wraps Iterator, such that when iterating
with iterator IT, it is possible to delete *IT without invalidating with iterator IT, it is possible to delete *IT without invalidating
@ -90,4 +90,4 @@ private:
Iterator m_end {}; Iterator m_end {};
}; };
#endif /* SAFE_ITERATOR_H */ #endif /* COMMON_SAFE_ITERATOR_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef SCOPED_FD_H #ifndef COMMON_SCOPED_FD_H
#define SCOPED_FD_H #define COMMON_SCOPED_FD_H
#include <unistd.h> #include <unistd.h>
#include "filestuff.h" #include "filestuff.h"
@ -84,4 +84,4 @@ private:
int m_fd; int m_fd;
}; };
#endif /* SCOPED_FD_H */ #endif /* COMMON_SCOPED_FD_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef SCOPED_MMAP_H #ifndef COMMON_SCOPED_MMAP_H
#define SCOPED_MMAP_H #define COMMON_SCOPED_MMAP_H
#include "config.h" #include "config.h"
@ -92,4 +92,5 @@ private:
scoped_mmap mmap_file (const char *filename); scoped_mmap mmap_file (const char *filename);
#endif /* HAVE_SYS_MMAN_H */ #endif /* HAVE_SYS_MMAN_H */
#endif /* SCOPED_MMAP_H */
#endif /* COMMON_SCOPED_MMAP_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef SCOPED_RESTORE_H #ifndef COMMON_SCOPED_RESTORE_H
#define SCOPED_RESTORE_H #define COMMON_SCOPED_RESTORE_H
/* Base class for scoped_restore_tmpl. */ /* Base class for scoped_restore_tmpl. */
class scoped_restore_base class scoped_restore_base
@ -115,4 +115,4 @@ scoped_restore_tmpl<T> make_scoped_restore (T *var, T2 value)
return scoped_restore_tmpl<T> (var, value); return scoped_restore_tmpl<T> (var, value);
} }
#endif /* SCOPED_RESTORE_H */ #endif /* COMMON_SCOPED_RESTORE_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef SELFTEST_H #ifndef COMMON_SELFTEST_H
#define SELFTEST_H #define COMMON_SELFTEST_H
/* A test is just a function that does some checks and throws an /* A test is just a function that does some checks and throws an
exception if something has gone wrong. */ exception if something has gone wrong. */
@ -70,4 +70,4 @@ extern void for_each_selftest (for_each_selftest_ftype func);
error (_("self-test failed at %s:%d"), __FILE__, __LINE__); \ error (_("self-test failed at %s:%d"), __FILE__, __LINE__); \
} while (0) } while (0)
#endif /* SELFTEST_H */ #endif /* COMMON_SELFTEST_H */

View file

@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef ARCH_TDESC_H #ifndef COMMON_TDESC_H
#define ARCH_TDESC_H 1 #define COMMON_TDESC_H
struct tdesc_feature; struct tdesc_feature;
struct tdesc_type; struct tdesc_type;
@ -404,4 +404,4 @@ private:
std::string *m_buffer; std::string *m_buffer;
}; };
#endif /* ARCH_TDESC_H */ #endif /* COMMON_TDESC_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#if !defined (GDB_VEC_H) #ifndef COMMON_VEC_H
#define GDB_VEC_H #define COMMON_VEC_H
#include "diagnostics.h" #include "diagnostics.h"
@ -1147,4 +1147,4 @@ static inline T *VEC_OP (T,safe_insert) \
return VEC_OP (T,quick_insert) (*vec_, ix_, obj_ VEC_ASSERT_PASS); \ return VEC_OP (T,quick_insert) (*vec_, ix_, obj_ VEC_ASSERT_PASS); \
} }
#endif /* GDB_VEC_H */ #endif /* COMMON_VEC_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef VERSION_H #ifndef COMMON_VERSION_H
#define VERSION_H #define COMMON_VERSION_H
/* Version number of GDB, as a string. */ /* Version number of GDB, as a string. */
extern const char version[]; extern const char version[];
@ -28,4 +28,4 @@ extern const char host_name[];
/* Canonical target name as a string. */ /* Canonical target name as a string. */
extern const char target_name[]; extern const char target_name[];
#endif /* #ifndef VERSION_H */ #endif /* COMMON_VERSION_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef X86_XSTATE_H #ifndef COMMON_X86_XSTATE_H
#define X86_XSTATE_H 1 #define COMMON_X86_XSTATE_H
/* The extended state feature bits. */ /* The extended state feature bits. */
#define X86_XSTATE_X87 (1ULL << 0) #define X86_XSTATE_X87 (1ULL << 0)
@ -85,4 +85,4 @@
#define I387_MXCSR_INIT_VAL 0x1f80 #define I387_MXCSR_INIT_VAL 0x1f80
#endif /* X86_XSTATE_H */ #endif /* COMMON_X86_XSTATE_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef XML_UTILS_H #ifndef COMMON_XML_UTILS_H
#define XML_UTILS_H #define COMMON_XML_UTILS_H
/* Return a string with special characters from TEXT replaced by entity /* Return a string with special characters from TEXT replaced by entity
references. */ references. */
@ -30,4 +30,4 @@ extern std::string xml_escape_text (const char *text);
extern void xml_escape_text_append (std::string *result, const char *text); extern void xml_escape_text_append (std::string *result, const char *text);
#endif #endif /* COMMON_XML_UTILS_H */

View file

@ -14,8 +14,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_COMPILE_C_H #ifndef COMPILE_COMPILE_C_H
#define GDB_COMPILE_C_H #define COMPILE_COMPILE_C_H
#include "common/enum-flags.h" #include "common/enum-flags.h"
#include "gcc-c-plugin.h" #include "gcc-c-plugin.h"
@ -92,4 +92,4 @@ extern std::string c_get_range_decl_name (const struct dynamic_prop *prop);
extern gdb::unique_xmalloc_ptr<char> extern gdb::unique_xmalloc_ptr<char>
c_symbol_substitution_name (struct symbol *sym); c_symbol_substitution_name (struct symbol *sym);
#endif /* GDB_COMPILE_C_H */ #endif /* COMPILE_COMPILE_C_H */

View file

@ -14,8 +14,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_COMPILE_CPLUS_H #ifndef COMPILE_COMPILE_CPLUS_H
#define GDB_COMPILE_CPLUS_H #define COMPILE_COMPILE_CPLUS_H
#include "common/enum-flags.h" #include "common/enum-flags.h"
#include "gcc-cp-plugin.h" #include "gcc-cp-plugin.h"
@ -202,4 +202,4 @@ private:
enum gcc_cp_symbol_kind get_method_access_flag (const struct type *type, enum gcc_cp_symbol_kind get_method_access_flag (const struct type *type,
int fni, int num); int fni, int num);
#endif /* GDB_COMPILE_CPLUS_H */ #endif /* COMPILE_COMPILE_CPLUS_H */

View file

@ -14,8 +14,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_COMPILE_INTERNAL_H #ifndef COMPILE_COMPILE_INTERNAL_H
#define GDB_COMPILE_INTERNAL_H #define COMPILE_COMPILE_INTERNAL_H
#include "gcc-c-interface.h" #include "gcc-c-interface.h"
@ -207,4 +207,4 @@ private:
std::string m_object_file; std::string m_object_file;
}; };
#endif /* GDB_COMPILE_INTERNAL_H */ #endif /* COMPILE_COMPILE_INTERNAL_H */

View file

@ -14,8 +14,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_COMPILE_OBJECT_LOAD_H #ifndef COMPILE_COMPILE_OBJECT_LOAD_H
#define GDB_COMPILE_OBJECT_LOAD_H #define COMPILE_COMPILE_OBJECT_LOAD_H
#include "compile-internal.h" #include "compile-internal.h"
#include <list> #include <list>
@ -82,4 +82,4 @@ extern struct compile_module *compile_object_load
enum compile_i_scope_types scope, void *scope_data); enum compile_i_scope_types scope, void *scope_data);
extern void munmap_list_free (struct munmap_list *head); extern void munmap_list_free (struct munmap_list *head);
#endif /* GDB_COMPILE_OBJECT_LOAD_H */ #endif /* COMPILE_COMPILE_OBJECT_LOAD_H */

View file

@ -14,11 +14,11 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_COMPILE_OBJECT_RUN_H #ifndef COMPILE_COMPILE_OBJECT_RUN_H
#define GDB_COMPILE_OBJECT_RUN_H #define COMPILE_COMPILE_OBJECT_RUN_H
#include "compile-object-load.h" #include "compile-object-load.h"
extern void compile_object_run (struct compile_module *module); extern void compile_object_run (struct compile_module *module);
#endif /* GDB_COMPILE_OBJECT_RUN_H */ #endif /* COMPILE_COMPILE_OBJECT_RUN_H */

View file

@ -15,8 +15,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_COMPILE_H #ifndef COMPILE_COMPILE_H
#define GDB_COMPILE_H #define COMPILE_COMPILE_H
struct ui_file; struct ui_file;
struct gdbarch; struct gdbarch;
@ -106,4 +106,4 @@ extern void compile_print_value (struct value *val, void *data_voidp);
/* Command element for the 'compile' command. */ /* Command element for the 'compile' command. */
extern cmd_list_element *compile_cmd_element; extern cmd_list_element *compile_cmd_element;
#endif /* GDB_COMPILE_H */ #endif /* COMPILE_COMPILE_H */

View file

@ -17,6 +17,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef COMPILE_GCC_C_PLUGIN_H
#define COMPILE_GCC_C_PLUGIN_H
#include "compile-internal.h" #include "compile-internal.h"
/* A class representing the C plug-in. */ /* A class representing the C plug-in. */
@ -64,3 +67,5 @@ private:
/* The GCC C context. */ /* The GCC C context. */
struct gcc_c_context *m_context; struct gcc_c_context *m_context;
}; };
#endif /* COMPILE_GCC_C_PLUGIN_H */

View file

@ -17,6 +17,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef COMPILE_GCC_CP_PLUGIN_H
#define COMPILE_GCC_CP_PLUGIN_H
/* A class representing the GCC C++ plug-in. */ /* A class representing the GCC C++ plug-in. */
#include "gcc-cp-interface.h" #include "gcc-cp-interface.h"
@ -83,3 +86,5 @@ private:
/* The GCC C++ context. */ /* The GCC C++ context. */
struct gcc_cp_context *m_context; struct gcc_cp_context *m_context;
}; };
#endif /* COMPILE_GCC_CP_PLUGIN_H */

View file

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef _LANGINFO_H #ifndef CONFIG_DJGPP_LANGINFO_H
#define _LANGINFO_H #define CONFIG_DJGPP_LANGINFO_H
#include <nl_types.h> #include <nl_types.h>
@ -32,4 +32,4 @@ enum {
extern char *nl_langinfo (nl_item); extern char *nl_langinfo (nl_item);
#endif /* _LANGINFO_H */ #endif /* CONFIG_DJGPP_LANGINFO_H */

View file

@ -17,9 +17,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef _NL_TYPES_H #ifndef CONFIG_DJGPP_NL_TYPES_H
#define _NL_TYPES_H #define CONFIG_DJGPP_NL_TYPES_H
typedef int nl_item; typedef int nl_item;
#endif /* _NL_TYPES_H */ #endif /* CONFIG_DJGPP_NL_TYPES_H */

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef NM_I386GNU_H #ifndef CONFIG_I386_NM_I386GNU_H
#define NM_I386GNU_H #define CONFIG_I386_NM_I386GNU_H
#include <unistd.h> #include <unistd.h>
#include <mach.h> #include <mach.h>
@ -34,4 +34,4 @@ extern char *gnu_target_pid_to_str (int pid);
#define THREAD_STATE_CLEAR_TRACED(state) \ #define THREAD_STATE_CLEAR_TRACED(state) \
((((struct i386_thread_state *) (state))->efl &= ~0x100), 1) ((((struct i386_thread_state *) (state))->efl &= ~0x100), 1)
#endif /* nm-i386gnu.h */ #endif /* CONFIG_I386_NM_I386GNU_H */

View file

@ -17,8 +17,13 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef CONFIG_NM_LINUX_H
#define CONFIG_NM_LINUX_H
/* Use elf_gregset_t and elf_fpregset_t, rather than /* Use elf_gregset_t and elf_fpregset_t, rather than
gregset_t and fpregset_t. */ gregset_t and fpregset_t. */
#define GDB_GREGSET_T elf_gregset_t #define GDB_GREGSET_T elf_gregset_t
#define GDB_FPREGSET_T elf_fpregset_t #define GDB_FPREGSET_T elf_fpregset_t
#endif /* CONFIG_NM_LINUX_H */

View file

@ -19,11 +19,11 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef NM_NTO_H #ifndef CONFIG_NM_NTO_H
#define NM_NTO_H #define CONFIG_NM_NTO_H
/* Setup the valid realtime signal range. */ /* Setup the valid realtime signal range. */
#define REALTIME_LO 41 #define REALTIME_LO 41
#define REALTIME_HI 56 #define REALTIME_HI 56
#endif /* NM_NTO_H */ #endif /* CONFIG_NM_NTO_H */

View file

@ -17,10 +17,10 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef NM_SOL2_H #ifndef CONFIG_SPARC_NM_SOL2_H
#define NM_SOL2_H #define CONFIG_SPARC_NM_SOL2_H
#define GDB_GREGSET_T prgregset_t #define GDB_GREGSET_T prgregset_t
#define GDB_FPREGSET_T prfpregset_t #define GDB_FPREGSET_T prfpregset_t
#endif /* nm-sol2.h */ #endif /* CONFIG_SPARC_NM_SOL2_H */

View file

@ -20,8 +20,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef CP_ABI_H_ #ifndef CP_ABI_H
#define CP_ABI_H_ 1 #define CP_ABI_H
struct fn_field; struct fn_field;
struct type; struct type;
@ -253,5 +253,4 @@ struct cp_abi_ops
extern int register_cp_abi (struct cp_abi_ops *abi); extern int register_cp_abi (struct cp_abi_ops *abi);
extern void set_cp_abi_as_auto_default (const char *short_name); extern void set_cp_abi_as_auto_default (const char *short_name);
#endif #endif /* CP_ABI_H */

View file

@ -14,8 +14,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef __DARWIN_NAT_H__ #ifndef DARWIN_NAT_H
#define __DARWIN_NAT_H__ #define DARWIN_NAT_H
#include "inf-child.h" #include "inf-child.h"
#include <mach/mach.h> #include <mach/mach.h>
@ -201,4 +201,4 @@ void darwin_set_sstep (thread_t thread, int enable);
void darwin_check_osabi (darwin_inferior *inf, thread_t thread); void darwin_check_osabi (darwin_inferior *inf, thread_t thread);
#endif /* __DARWIN_NAT_H__ */ #endif /* DARWIN_NAT_H */

View file

@ -17,6 +17,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef EVENT_LOOP_H
#define EVENT_LOOP_H
/* An event loop listens for events from multiple event sources. When /* An event loop listens for events from multiple event sources. When
an event arrives, it is queued and processed by calling the an event arrives, it is queued and processed by calling the
appropriate event handler. The event loop then continues to listen appropriate event handler. The event loop then continues to listen
@ -127,3 +130,5 @@ extern void mark_async_event_handler (struct async_event_handler *handler);
extern void clear_async_event_handler (struct async_event_handler *handler); extern void clear_async_event_handler (struct async_event_handler *handler);
extern void initialize_async_signal_handlers (void); extern void initialize_async_signal_handlers (void);
#endif /* EVENT_LOOP_H */

View file

@ -20,6 +20,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef F_LANG_H
#define F_LANG_H
struct type_print_options; struct type_print_options;
struct parser_state; struct parser_state;
@ -79,3 +82,4 @@ struct builtin_f_type
/* Return the Fortran type table for the specified architecture. */ /* Return the Fortran type table for the specified architecture. */
extern const struct builtin_f_type *builtin_f_type (struct gdbarch *gdbarch); extern const struct builtin_f_type *builtin_f_type (struct gdbarch *gdbarch);
#endif /* F_LANG_H */

View file

@ -16,6 +16,9 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef FRV_TDEP_H
#define FRV_TDEP_H
/* Enumerate the possible ABIs for FR-V. */ /* Enumerate the possible ABIs for FR-V. */
enum frv_abi enum frv_abi
{ {
@ -118,3 +121,4 @@ CORE_ADDR frv_fetch_objfile_link_map (struct objfile *objfile);
struct target_so_ops; struct target_so_ops;
extern struct target_so_ops frv_so_ops; extern struct target_so_ops frv_so_ops;
#endif /* FRV_TDEP_H */

View file

@ -17,14 +17,15 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef GDB_STABS_H
#define GDB_STABS_H
/* This file exists to hold the common definitions required of most of /* This file exists to hold the common definitions required of most of
the symbol-readers that end up using stabs. The common use of the symbol-readers that end up using stabs. The common use of
these `symbol-type-specific' customizations of the generic data these `symbol-type-specific' customizations of the generic data
structures makes the stabs-oriented symbol readers able to call structures makes the stabs-oriented symbol readers able to call
each others' functions as required. */ each others' functions as required. */
#if !defined (GDBSTABS_H)
#define GDBSTABS_H
/* The tag used to find the DBX info attached to an objfile. This is /* The tag used to find the DBX info attached to an objfile. This is
global because it is referenced by several modules. */ global because it is referenced by several modules. */
@ -73,4 +74,4 @@ struct dbx_symfile_info
#define DBX_BSS_SECTION(o) (DBX_SYMFILE_INFO(o)->bss_section) #define DBX_BSS_SECTION(o) (DBX_SYMFILE_INFO(o)->bss_section)
#define DBX_STAB_SECTION(o) (DBX_SYMFILE_INFO(o)->stab_section) #define DBX_STAB_SECTION(o) (DBX_SYMFILE_INFO(o)->stab_section)
#endif /* GDBSTABS_H */ #endif /* GDB_STABS_H */

View file

@ -1,3 +1,36 @@
2019-02-07 Tom Tromey <tom@tromey.com>
* x86-tdesc.h: Rename include guard.
* x86-low.h: Add include guard.
* wincecompat.h: Rename include guard.
* win32-low.h: Add include guard.
* utils.h: Rename include guard.
* tracepoint.h: Rename include guard.
* tdesc.h: Rename include guard.
* target.h: Rename include guard.
* server.h: Rename include guard.
* remote-utils.h: Rename include guard.
* regcache.h: Rename include guard.
* nto-low.h: Rename include guard.
* notif.h: Add include guard.
* mem-break.h: Rename include guard.
* lynx-low.h: Add include guard.
* linux-x86-tdesc.h: Add include guard.
* linux-s390-tdesc.h: Add include guard.
* linux-ppc-tdesc-init.h: Add include guard.
* linux-low.h: Add include guard.
* linux-aarch64-tdesc.h: Add include guard.
* linux-aarch32-low.h: Add include guard.
* inferiors.h: Rename include guard.
* i387-fp.h: Rename include guard.
* hostio.h: Rename include guard.
* gdbthread.h: Rename include guard.
* gdb_proc_service.h: Rename include guard.
* event-loop.h: Rename include guard.
* dll.h: Rename include guard.
* debug.h: Rename include guard.
* ax.h: Rename include guard.
2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com> 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
PR gdb/23985 PR gdb/23985

View file

@ -16,8 +16,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#if !defined (AX_H) #ifndef GDBSERVER_AX_H
#define AX_H 1 #define GDBSERVER_AX_H
#include "regcache.h" #include "regcache.h"
@ -142,4 +142,4 @@ struct emit_ops
extern CORE_ADDR current_insn_ptr; extern CORE_ADDR current_insn_ptr;
extern int emit_error; extern int emit_error;
#endif /* AX_H */ #endif /* GDBSERVER_AX_H */

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