]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Normalize include guards in gdb
authorTom Tromey <tom@tromey.com>
Sun, 27 Jan 2019 19:51:36 +0000 (12:51 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 7 Feb 2019 10:27:23 +0000 (03:27 -0700)
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.

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

index c5c08ec03295a533934c80ee21242bd574247eec..c17d05ade8c59fd9085c55b58732e2ba4aeac7c6 100644 (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>
 
        * macrotab.c (macro_define_internal): New function that
index 29d7964236537b1c9e6906e157e1a6e66e9e45c9..093211c812ab17e9038f1979d0c3af43ef5149da 100644 (file)
@@ -15,6 +15,9 @@
    You should have received a copy of the GNU General Public License
    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
    64-bit registers, and the FPSCR.  This is even when on a VFPv2 or
    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,
                                   gdb_byte *regs,
                                   const int vfp_register_count);
+
+#endif /* AARCH32_LINUX_NAT_H */
index 37c0cfc48be2a3b1344b7b8a59698a1e2acb8dec..ebe671a70ed752bc2c9ca918a296cfb2c6724ea6 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    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"
 
 /* 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_fpregset;
+
+#endif /* AARCH64_FBSD_TDEP_H */
index f8d6104b1337e5f75cb1edbdcf73fb7c824882d6..814222ead0c11395f969dfbde9e36709819500f1 100644 (file)
@@ -18,6 +18,9 @@
    You should have received a copy of the GNU General Public License
    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"
 
 /* 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_fpregset;
+
+#endif /* AARCH64_LINUX_TDEP_H */
index d9848e9631c8631e80cdb6df5269b66adabd9c0e..90dc26f8165e450da48ff56f47628b7fc58c56f0 100644 (file)
@@ -16,8 +16,9 @@
 
    You should have received a copy of the GNU General Public License
    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
    state and GDB's register cache layout.
@@ -25,4 +26,4 @@
 extern int amd64_darwin_thread_state_reg_offset[];
 extern const int amd64_darwin_thread_state_num_regs;
 
-#endif /* __AMD64_DARWIN_TDEP_H__ */
+#endif /* AMD64_DARWIN_TDEP_H */
index 03e744791c22a68e50e9cea5cab17b7935493002..4a9e1b58f28b122b4e55f5f9941c2b1fb76d5f4e 100644 (file)
@@ -16,6 +16,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef ANNOTATE_H
+#define ANNOTATE_H
+
 #include "symtab.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_signal_hook) (void);
+
+#endif /* ANNOTATE_H */
index 7db358f0f5ab7caee40025a9e3b30e1201bb1c6c..155cf5cfe30df0f6a62e44a6fc088f2f675b5bee 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDBARCH_UTILS_H
-#define GDBARCH_UTILS_H
+#ifndef ARCH_UTILS_H
+#define ARCH_UTILS_H
 
 struct gdbarch;
 struct frame_info;
@@ -271,4 +271,4 @@ extern bool default_in_indirect_branch_thunk (gdbarch *gdbarch,
 extern ULONGEST default_type_align (struct gdbarch *gdbarch,
                                    struct type *type);
 
-#endif
+#endif /* ARCH_UTILS_H */
index 43120ccca329da91086f08d268e49203b3306df7..4492594c1b9a21b51d6760fe7a21b3b2f3811405 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef AARCH64_INSN_H
-#define AARCH64_INSN_H 1
+#ifndef ARCH_AARCH64_INSN_H
+#define ARCH_AARCH64_INSN_H
 
 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_memory_operand operand);
 
-#endif
+#endif /* ARCH_AARCH64_INSN_H */
index 9431e08f0b31a8e811f481921bd48b800fc511b0..1e02c5235f113f2f072c2a6977f582ccb3713f9c 100644 (file)
    You should have received a copy of the GNU General Public License
    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 <stdint.h>
 
 target_desc *amd64_create_target_description (uint64_t xcr0, bool is_x32,
                                              bool is_linux, bool segments);
+
+#endif /* ARCH_AMD64_H */
index 59f0316bfae45ac625ca0d37f0184a60a6b1cbf1..7c5ad5e365e2d9231d9f1bc5a5dd60a8ddc312b4 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef ARM_GET_NEXT_PCS_H
-#define ARM_GET_NEXT_PCS_H 1
+#ifndef ARCH_ARM_GET_NEXT_PCS_H
+#define ARCH_ARM_GET_NEXT_PCS_H
 
 #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.  */
 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 */
index d5ee140ac474d9ed2903e0b59eae59b5cdd59803..04d3f23ff41da66c83d47b5f5655f5dc78a86717 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef ARM_LINUX_H
-#define ARM_LINUX_H
+#ifndef ARCH_ARM_LINUX_H
+#define ARCH_ARM_LINUX_H
 
 /* The index to access CSPR in user_regs defined in GLIBC.  */
 #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 pc);
-#endif /* ARM_LINUX_H */
+
+#endif /* ARCH_ARM_LINUX_H */
index 21d45c5bebf9cf87e7a1821026fa131b8a70d5ee..c1785425e8ca21d40c2484323c8a0d4f4983e13f 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef ARM_H
-#define ARM_H
+#ifndef ARCH_ARM_H
+#define ARCH_ARM_H
 
 /* Register numbers of various important registers.  */
 
@@ -146,4 +146,4 @@ unsigned long shifted_reg_val (struct regcache *regcache,
                               unsigned long pc_val,
                               unsigned long status_reg);
 
-#endif
+#endif /* ARCH_ARM_H */
index a6a801b81895ca9a1d338c6713a54cc4480aa4f0..fa8543808094b4f55757a72d6f6f17e93ad09e4b 100644 (file)
    You should have received a copy of the GNU General Public License
    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 <stdint.h>
 
 target_desc *i386_create_target_description (uint64_t xcr0, bool is_linux);
+
+#endif /* ARCH_I386_H */
index e1c819d34b65d78cc6cdab5034fd071d824434e1..36dadb3849165cf288477f575f20d38abd58cfba 100644 (file)
@@ -15,6 +15,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef ARCH_TIC6X_H
+#define ARCH_TIC6X_H
+
 enum c6x_feature
 {
   C6X_CORE,
@@ -24,3 +27,5 @@ enum c6x_feature
 };
 
 target_desc *tic6x_create_target_description (enum c6x_feature feature);
+
+#endif /* ARCH_TIC6X_H */
index 044d0c9cb9dff1030662e8d81e7b66e407846601..9a6fa33fb6390050e4b6929f97ae6ac36a1444a5 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef XTENSA_H
-#define XTENSA_H
+#ifndef ARCH_XTENSA_H
+#define ARCH_XTENSA_H
 
 /* Xtensa ELF core file register set representation ('.reg' section).
    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.  */
 
-#endif
+#endif /* ARCH_XTENSA_H */
index 986118e286174f67cf398038080ff9beffcb7ed8..754d683cd5cb5ead83f3aa575f68d1a1cf4e1374 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    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"
 
 /* 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 *
 arm_fbsd_read_description_auxv (struct target_ops *target);
+
+#endif /* ARM_FBSD_TDEP_H */
index 405996b56e7b2a134de5fff63bd73a0c565f7554..8f43048148907cc2e2955799962ec6484cdf4598 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    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 regcache;
 
@@ -64,3 +67,4 @@ void arm_linux_collect_nwfpe (const struct regset *regset,
 #define HWCAP_VFPv3     8192
 #define HWCAP_VFPv3D16  16384
 
+#endif /* ARM_LINUX_TDEP_H */
index e203a4b8f8a24485d2485bfd73c47dd24dabcdd8..d16098b8c9cf5e95a4248c408826ac79c1124279 100644 (file)
--- a/gdb/ax.h
+++ b/gdb/ax.h
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef AGENTEXPR_H
-#define AGENTEXPR_H
+#ifndef AX_H
+#define AX_H
 
 #include "common/vec.h"
 
@@ -267,4 +267,4 @@ extern struct aop_map aop_map[];
 
 extern void ax_reqs (struct agent_expr *ax);
 
-#endif /* AGENTEXPR_H */
+#endif /* AX_H */
index ece0d06bba56cfc38fcdf918379bdd07eb8fa226..99eb4b4cb7243c25f0880b77c888e34d48085da9 100644 (file)
@@ -19,6 +19,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef BFIN_TDEP_H
+#define BFIN_TDEP_H
+
 enum gdb_regnum {
   /* Core Registers */
   BFIN_R0_REGNUM = 0,
@@ -99,3 +102,5 @@ struct gdbarch_tdep
 
 /* Return the Blackfin ABI associated with GDBARCH.  */
 extern enum bfin_abi bfin_abi (struct gdbarch *gdbarch);
+
+#endif /* BFIN_TDEP_H */
index 2c1bfff70af0889bf08cb8fe9983cab8bdd4719b..55b41a40a241cd366ec9e59fecd82a4d6e353ceb 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#if !defined (LEGACY_BUILDSYM_H)
-#define LEGACY_BUILDSYM_H 1
+#ifndef BUILDSYM_LEGACY_H
+#define BUILDSYM_LEGACY_H
 
 #include "buildsym.h"
 
@@ -179,4 +179,4 @@ extern struct pending **get_global_symbols ();
 
 extern struct buildsym_compunit *get_buildsym_compunit ();
 
-#endif /* defined (LEGACY_BUILDSYM_H) */
+#endif /* BUILDSYM_LEGACY_H */
index 37c4bbc4e5353644d38b3fd80b9eb807d936c649..8ec1f1b4e428b68a983cb6aaee492753e579768a 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    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".
    The remaining entries were created by running this script:
    
 "WINSAMI2", \
 "WS2", \
 "YU",
+
+#endif /* CHARSET_LIST_H */
index cc29929fc59de3237d15b96ae63cc2fbe96e35ab..63b8c4018cea089f61cf588d2bd6556603382b76 100644 (file)
@@ -14,8 +14,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#if !defined (CLI_CMDS_H)
-#define CLI_CMDS_H 1
+#ifndef CLI_CLI_CMDS_H
+#define CLI_CLI_CMDS_H
 
 #include "common/filestuff.h"
 #include "common/gdb_optional.h"
@@ -142,4 +142,4 @@ extern gdb::optional<open_script>
 extern int source_verbose;
 extern int trace_commands;
 
-#endif /* !defined (CLI_CMDS_H) */
+#endif /* CLI_CLI_CMDS_H */
index 39329f04fbf8e92eccec6638cd5d826c22fd2992..c53683d95c057719c26adf2285873400e51ebf41 100644 (file)
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#if !defined (CLI_DECODE_H)
-#define CLI_DECODE_H 1
+#ifndef CLI_CLI_DECODE_H
+#define CLI_CLI_DECODE_H
 
 /* This file defines the private interfaces for any code implementing
    command internals.  */
@@ -270,4 +270,4 @@ extern int cli_user_command_p (struct cmd_list_element *);
 
 extern int find_command_name_length (const char *);
 
-#endif /* !defined (CLI_DECODE_H) */
+#endif /* CLI_CLI_DECODE_H */
index b87432d18fd63abb4d3a266a2b9e0a45c945bf88..77d73a23d04213ef1a9d157dce7c381e7c390778 100644 (file)
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef CLI_INTERP_H
-#define CLI_INTERP_H 1
+#ifndef CLI_CLI_INTERP_H
+#define CLI_CLI_INTERP_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,
                                         struct thread_info *tp);
 
-#endif
+#endif /* CLI_CLI_INTERP_H */
index 246c5ae3cf7920ac00bc3d13febd3b595678a562..e76e794be57911dfb196eb269343c06a46d09379 100644 (file)
@@ -14,8 +14,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#if !defined (CLI_SCRIPT_H)
-#define CLI_SCRIPT_H 1
+#ifndef CLI_CLI_SCRIPT_H
+#define CLI_CLI_SCRIPT_H
 
 struct ui_file;
 struct cmd_list_element;
@@ -168,4 +168,4 @@ extern void print_command_trace (const char *cmd, ...)
 
 extern void reset_command_nest_depth (void);
 
-#endif /* !defined (CLI_SCRIPT_H) */
+#endif /* CLI_CLI_SCRIPT_H */
index 078d47a4ce729aaad8ab71c3e1036e7083711216..e4d13c3510d31199a499e4ae79c97099328d9254 100644 (file)
@@ -14,8 +14,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#if !defined (CLI_SETSHOW_H)
-#define CLI_SETSHOW_H 1
+#ifndef CLI_CLI_SETSHOW_H
+#define CLI_CLI_SETSHOW_H
 
 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,
                           const char *prefix);
 
-#endif /* !defined (CLI_SETSHOW_H) */
+#endif /* CLI_CLI_SETSHOW_H */
index 07830f9dfd350d39985d34e552822eb36c7931ba..287bad7d2016e0eabcc1ddbae2e1f76084417970 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef CLI_STYLE_H
-#define CLI_STYLE_H
+#ifndef CLI_CLI_STYLE_H
+#define CLI_CLI_STYLE_H
 
 #include "ui-file.h"
 
@@ -96,4 +96,4 @@ extern cli_style_option address_style;
 /* True if styling is enabled.  */
 extern int cli_styling;
 
-#endif /* CLI_STYLE_H */
+#endif /* CLI_CLI_STYLE_H */
index 1ab879df9d54d389d39b4223f4187bc397c2d85d..d0161db0916633cacd085bdd664758d5956277b4 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef CLI_UTILS_H
-#define CLI_UTILS_H
+#ifndef CLI_CLI_UTILS_H
+#define CLI_CLI_UTILS_H
 
 /* *PP is a string denoting a number.  Get the number.  Advance *PP
    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,
                             qcs_flags *flags);
-#endif /* CLI_UTILS_H */
+
+#endif /* CLI_CLI_UTILS_H */
index 4375fe32088dbe722e04dc84efb21dfc8c942ecb..d85cadf442a6c580b3eb764fda0afcc34e6c74c2 100644 (file)
@@ -16,8 +16,9 @@
 
    You should have received a copy of the GNU General Public License
    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
   {
@@ -27,4 +28,4 @@ enum target_hw_bp_type
     hw_execute = 3             /* Execute HW breakpoint */
   };
 
-#endif
+#endif /* COMMON_BREAK_COMMON_H */
index 284adf613fccc74de4f153f9b3b39ee267187955..0b18924882c65488a45e0db6de7d0ded0ccf6134 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef BTRACE_COMMON_H
-#define BTRACE_COMMON_H
+#ifndef COMMON_BTRACE_COMMON_H
+#define COMMON_BTRACE_COMMON_H
 
 /* Branch tracing (btrace) is a per-thread control-flow execution trace of the
    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,
                               const struct btrace_data *src);
 
-#endif /* BTRACE_COMMON_H */
+#endif /* COMMON_BTRACE_COMMON_H */
index 66b770acce824fac3e1fec238da4a7949fbd8e07..8b24b54d0eb1e22a5db717f6317718c599f1963c 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef BUFFER_H
-#define BUFFER_H
+#ifndef COMMON_BUFFER_H
+#define COMMON_BUFFER_H
 
 struct buffer
 {
@@ -65,4 +65,4 @@ void buffer_xml_printf (struct buffer *buffer, const char *format, ...)
 #define buffer_grow_str0(BUFFER,STRING)                        \
   buffer_grow (BUFFER, STRING, strlen (STRING) + 1)
 
-#endif
+#endif /* COMMON_BUFFER_H */
index 4d5c9fa6fbf8e0eab2e97b8028825796697ec248..f49bcb40d141a6f94a9bad564faed68608193225 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef CLEANUPS_H
-#define CLEANUPS_H
+#ifndef COMMON_CLEANUPS_H
+#define COMMON_CLEANUPS_H
 
 /* Outside of cleanups.c, this is an opaque type.  */
 struct cleanup;
@@ -66,4 +66,4 @@ extern void restore_final_cleanups (struct cleanup *);
    to pass to do_cleanups.  */
 extern void null_cleanup (void *);
 
-#endif /* CLEANUPS_H */
+#endif /* COMMON_CLEANUPS_H */
index 5cf8230c032ff44472d5c3e60fdcc4afa2f9f776..d5bfc9eb3ae239cb23e569a0d3b7bfa7d00fc209 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef COMMON_DEBUG_H
-#define COMMON_DEBUG_H
+#ifndef COMMON_COMMON_DEBUG_H
+#define COMMON_COMMON_DEBUG_H
 
 /* Set to nonzero to enable debugging of hardware breakpoint/
    watchpoint support code.  */
@@ -38,4 +38,4 @@ extern void debug_printf (const char *format, ...)
 extern void debug_vprintf (const char *format, va_list ap)
      ATTRIBUTE_PRINTF (1, 0);
 
-#endif /* COMMON_DEBUG_H */
+#endif /* COMMON_COMMON_DEBUG_H */
index e574de5ed665e90de1cc412218f5ab2932c0908c..732693d65cc6ef8090c3837ec36898c879363f45 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef COMMON_DEFS_H
-#define COMMON_DEFS_H
+#ifndef COMMON_COMMON_DEFS_H
+#define COMMON_COMMON_DEFS_H
 
 #include "config.h"
 
@@ -127,4 +127,4 @@ extern char *current_directory;
 #define HAVE_USEFUL_SBRK 1
 #endif
 
-#endif /* COMMON_DEFS_H */
+#endif /* COMMON_COMMON_DEFS_H */
index 0f03dc202b3804a88739ca340ae372866362d4e3..471e7c5cf816824fbe4fbfd4e36b9ccf1825b1c7 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef COMMON_EXCEPTIONS_H
-#define COMMON_EXCEPTIONS_H
+#ifndef COMMON_COMMON_EXCEPTIONS_H
+#define COMMON_COMMON_EXCEPTIONS_H
 
 #include <setjmp.h>
 #include <new>
@@ -338,4 +338,4 @@ extern void throw_quit (const char *fmt, ...)
 /* A pre-defined non-exception.  */
 extern const struct gdb_exception exception_none;
 
-#endif /* COMMON_EXCEPTIONS_H */
+#endif /* COMMON_COMMON_EXCEPTIONS_H */
index b7e93bed9af6a128a3cfa69581029f2af1bbdb8a..d692be209cdf89d9b3987a796b702a7d32419ecb 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef COMMON_GDBTHREAD_H
-#define COMMON_GDBTHREAD_H
+#ifndef COMMON_COMMON_GDBTHREAD_H
+#define COMMON_COMMON_GDBTHREAD_H
 
 /* Switch from one thread to another.  */
 extern void switch_to_thread (ptid_t ptid);
 
-#endif /* COMMON_GDBTHREAD_H */
+#endif /* COMMON_COMMON_GDBTHREAD_H */
index 7e8e7368b896a26b9420afd4ad7eb0c650c2576d..72e4bd9eac37e4dbbb5fb74eca3b0b89c483db82 100644 (file)
@@ -18,8 +18,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef COMMON_INFERIOR_H
-#define COMMON_INFERIOR_H
+#ifndef COMMON_COMMON_INFERIOR_H
+#define COMMON_COMMON_INFERIOR_H
 
 /* Return the exec wrapper to be used when starting the inferior, or NULL
    otherwise.  */
@@ -38,4 +38,4 @@ extern const char *get_inferior_cwd ();
    the directory.  */
 extern void set_inferior_cwd (const char *cwd);
 
-#endif /* COMMON_INFERIOR_H */
+#endif /* COMMON_COMMON_INFERIOR_H */
index 938bb290cd4ca555c11a1d71ad67094eb4f562e8..95ce64a91f968ca911891f80eb523e3c89b71c16 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef COMMON_REGCACHE_H
-#define COMMON_REGCACHE_H
+#ifndef COMMON_COMMON_REGCACHE_H
+#define COMMON_COMMON_REGCACHE_H
 
 /* 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;
 };
 
-#endif /* COMMON_REGCACHE_H */
+#endif /* COMMON_COMMON_REGCACHE_H */
index dcce0c35b84e843373f50e566bbb51d415230b00..ed73f6f990a4cc48f0b50b3e436e3c81ca36c9a9 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef COMMON_TYPES_H
-#define COMMON_TYPES_H
+#ifndef COMMON_COMMON_TYPES_H
+#define COMMON_COMMON_TYPES_H
 
 #ifdef GDBSERVER
 
@@ -63,4 +63,4 @@ typedef unsigned long long ULONGEST;
 
 enum tribool { TRIBOOL_UNKNOWN = -1, TRIBOOL_FALSE = 0, TRIBOOL_TRUE = 1 };
 
-#endif /* COMMON_TYPES_H */
+#endif /* COMMON_COMMON_TYPES_H */
index b2cb51692ebb3bbfda21c1577edf5e1a905b0732..52bf3437b1cd443f0901d2bc34a8eb5d0fbd710f 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef COMMON_UTILS_H
-#define COMMON_UTILS_H
+#ifndef COMMON_COMMON_UTILS_H
+#define COMMON_COMMON_UTILS_H
 
 #include <string>
 #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_down (ULONGEST v, int n);
 
-#endif
+#endif /* COMMON_COMMON_UTILS_H */
index 29d534f54a099770c9cb9d1a220d33f14dabc257..8a6b907c9b4e19daa621e6d316cfb4ecd02b3084 100644 (file)
@@ -14,8 +14,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#if !defined (ENVIRON_H)
-#define ENVIRON_H 1
+#ifndef COMMON_ENVIRON_H
+#define COMMON_ENVIRON_H
 
 #include <vector>
 #include <set>
@@ -100,4 +100,4 @@ private:
   std::set<std::string> m_user_unset_env;
 };
 
-#endif /* defined (ENVIRON_H) */
+#endif /* COMMON_ENVIRON_H */
index 755985360afbdcead13a1a6d487c5be646884da5..7a2e7c2817e207cb0eefdfdfe354a672fe17c68e 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef FILEIO_H
-#define FILEIO_H
+#ifndef COMMON_FILEIO_H
+#define COMMON_FILEIO_H
 
 #include "gdb/fileio.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);
 
-#endif /* FILEIO_H */
+#endif /* COMMON_FILEIO_H */
index 1c5000570e756eae05207494c5162241172379e2..7e95b9ca2d4e76632540e3e9ad0afacd2a2b1c8e 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef FILESTUFF_H
-#define FILESTUFF_H
+#ifndef COMMON_FILESTUFF_H
+#define COMMON_FILESTUFF_H
 
 #include <dirent.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);
 
-#endif /* FILESTUFF_H */
+#endif /* COMMON_FILESTUFF_H */
index 7d7aa3a0be05714209aca609810d753474b7d04b..e1b486d6f08ec11cfb6d0854cb79c3d2e7f8838a 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef FILTERED_ITERATOR_H
-#define FILTERED_ITERATOR_H
+#ifndef COMMON_FILTERED_ITERATOR_H
+#define COMMON_FILTERED_ITERATOR_H
 
 /* A filtered iterator.  This wraps BaseIterator and automatically
    skips elements that FilterFunc filters out.  Requires that
@@ -84,4 +84,4 @@ private:
   BaseIterator m_end {};
 };
 
-#endif /* FILTERED_ITERATOR_H */
+#endif /* COMMON_FILTERED_ITERATOR_H */
index f59f2293164454a2970c1802a1a9ac9b88ee762e..a719d878990490847de5948a5cf738091ddc3ae3 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_ASSERT_H
-#define GDB_ASSERT_H
+#ifndef COMMON_GDB_ASSERT_H
+#define COMMON_GDB_ASSERT_H
 
 /* A static assertion.  This will cause a compile-time error if EXPR,
    which must be a compile-time constant, is false.  */
@@ -56,4 +56,4 @@
   internal_error (__FILE__, __LINE__, _(message))
 #endif
 
-#endif /* gdb_assert.h */
+#endif /* COMMON_GDB_ASSERT_H */
index fb3d6c58398b88a9750f88606eabd9390831b13f..4e59b4f16cbc873c77e321be46db3ac58e3403c3 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_LOCALE_H
-#define GDB_LOCALE_H
+#ifndef COMMON_GDB_LOCALE_H
+#define COMMON_GDB_LOCALE_H
 
 #ifdef HAVE_LOCALE_H
 # include <locale.h>
@@ -40,4 +40,4 @@
 #include <langinfo.h>
 #endif
 
-#endif /* GDB_LOCALE_H */
+#endif /* COMMON_GDB_LOCALE_H */
index acb1045a82680462bd3a997a0cd299da5ca1c77f..7ca5725636e9949d950154d2762175b3b0555a02 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_OPTIONAL_H
-#define GDB_OPTIONAL_H
+#ifndef COMMON_GDB_OPTIONAL_H
+#define COMMON_GDB_OPTIONAL_H
 
 #include "common/traits.h"
 
@@ -216,4 +216,4 @@ private:
 
 }
 
-#endif /* GDB_OPTIONAL_H */
+#endif /* COMMON_GDB_OPTIONAL_H */
index 65afe9529843ffd4d2ff73da67dfa052013d57ec..b104556cc5f4251cb46a027a061a33cce6419933 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_REF_PTR_H
-#define GDB_REF_PTR_H
+#ifndef COMMON_GDB_REF_PTR_H
+#define COMMON_GDB_REF_PTR_H
 
 #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 */
index 1597dad5fc3d72e043705f773531e1f859498477..d4ebbfa8f2a2a45dbc6c9e1ed91b2788525a1fdd 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_SETJMP_H
-#define GDB_SETJMP_H
+#ifndef COMMON_GDB_SETJMP_H
+#define COMMON_GDB_SETJMP_H
 
 #include <setjmp.h>
 
@@ -31,4 +31,4 @@
 #define SIGLONGJMP(buf,val)    longjmp((buf), (val))
 #endif
 
-#endif /* GDB_SETJMP_H */
+#endif /* COMMON_GDB_SETJMP_H */
index a3fc4679badb6a499bdc0f9c79ff0eee7bd65d61..90b05cdce171fc001c47ddf4c40031ddb79f9d5d 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_SPLAY_TREE_H
-#define GDB_SPLAY_TREE_H
+#ifndef COMMON_GDB_SPLAY_TREE_H
+#define COMMON_GDB_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>
     gdb_splay_tree_up;
 
-#endif /* GDB_SPLAY_TREE_H */
+#endif /* COMMON_GDB_SPLAY_TREE_H */
index 001f1af6cda5c596e3099b9287aa2128e3b66a41..68f7f7de36b90a7c6ee6aa07f30cdc18928dee82 100644 (file)
@@ -1,5 +1,9 @@
 // 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
 // (libstdc++-v3/include/experimental/string_view) and has local modifications.
 
@@ -29,8 +33,6 @@
 // N3762 basic_string_view library
 //
 
-#ifndef GDB_STRING_VIEW_H
-#define GDB_STRING_VIEW_H 1
 
 #if __cplusplus >= 201703L
 
@@ -557,4 +559,4 @@ namespace gdb {
 
 #endif // __cplusplus < 201703L
 
-#endif /* GDB_STRING_VIEW_H */
+#endif /* COMMON_GDB_STRING_VIEW_H */
index 7b4ee572534c2b6d659085748ef392f91ba6d541..66c2bb355ffbe6ace420e02a16d931eb597ad3b4 100644 (file)
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_SYS_TIME_H
-#define GDB_SYS_TIME_H
+#ifndef COMMON_GDB_SYS_TIME_H
+#define COMMON_GDB_SYS_TIME_H
 
 #include <sys/time.h>
 
@@ -35,4 +35,4 @@
 # undef gettimeofday
 #endif
 
-#endif /* #ifndef GDB_SYS_TIME_H */
+#endif /* COMMON_GDB_SYS_TIME_H */
index 4f4c239c03b14d3a4a2108ed1b4f40f9af20b8de..b181b6a3e154d29f1e9f26726a533c5fdd62f5c9 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_TILDE_EXPAND_H
-#define GDB_TILDE_EXPAND_H
+#ifndef COMMON_GDB_TILDE_EXPAND_H
+#define COMMON_GDB_TILDE_EXPAND_H
 
 /* Perform path expansion (i.e., tilde expansion) on DIR, and return
    the full path.  */
@@ -28,4 +28,4 @@ extern std::string gdb_tilde_expand (const char *dir);
    gdb::unique_xmalloc_ptr<char>.  */
 extern gdb::unique_xmalloc_ptr<char> gdb_tilde_expand_up (const char *dir);
 
-#endif /* GDB_TILDE_EXPAND_H */
+#endif /* COMMON_GDB_TILDE_EXPAND_H */
index 1e8ceb49fe43690626cc5f6580611cb0fd684033..327e1279296f3c461c4e13ebe97d3c68cf409dc9 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_UNIQUE_PTR_H
-#define GDB_UNIQUE_PTR_H 1
+#ifndef COMMON_GDB_UNIQUE_PTR_H
+#define COMMON_GDB_UNIQUE_PTR_H
 
 #include <memory>
 
@@ -49,4 +49,4 @@ template<typename T> using unique_xmalloc_ptr
 
 } /* namespace gdb */
 
-#endif /* GDB_UNIQUE_PTR_H */
+#endif /* COMMON_GDB_UNIQUE_PTR_H */
index e3be44bca009a8f04b621ce44eb816a08ac946f2..193c2f847c9c2e0e1b62ecbd9ebad3b66733298f 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_UNLINKER_H
-#define GDB_UNLINKER_H
+#ifndef COMMON_GDB_UNLINKER_H
+#define COMMON_GDB_UNLINKER_H
 
 namespace gdb
 {
@@ -57,4 +57,4 @@ class unlinker
 
 }
 
-#endif /* GDB_UNLINKER_H */
+#endif /* COMMON_GDB_UNLINKER_H */
index 86803d4cb385e7e40b870709a50f9f0c2d35f0ce..017bf9383dc3c65c569701bab59f1554cb1cc866 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_VECS_H
-#define GDB_VECS_H
+#ifndef COMMON_GDB_VECS_H
+#define COMMON_GDB_VECS_H
 
 #include "vec.h"
 
@@ -86,4 +86,4 @@ ordered_remove (std::vector<T> &vec, typename std::vector<T>::size_type ix)
   return removed;
 }
 
-#endif /* GDB_VECS_H */
+#endif /* COMMON_GDB_VECS_H */
index b65dcd25a74d55ef10cd07c87074075aa27544fb..b3b752cf3a2bc6aa7aa025bb3812e39541f8ff4c 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_WAIT_H
-#define GDB_WAIT_H
+#ifndef COMMON_GDB_WAIT_H
+#define COMMON_GDB_WAIT_H
 
 #ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h> /* POSIX */
 #define __WCLONE       0x80000000 /* Wait for cloned process.  */
 #endif
 
-#endif
+#endif /* COMMON_GDB_WAIT_H */
index e6878c97fafcf1688ab5b149bf2eedd2d17c88a4..dedd9b6fa99d806dffdff8feddaa74d18d52d005 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef HOST_DEFS_H
-#define HOST_DEFS_H
+#ifndef COMMON_HOST_DEFS_H
+#define COMMON_HOST_DEFS_H
 
 #include <limits.h>
 
@@ -58,4 +58,4 @@
 #define SLASH_STRING "/"
 #endif
 
-#endif /* HOST_DEFS_H */
+#endif /* COMMON_HOST_DEFS_H */
index 1d9cae010169a99682272eacc6faa0e1cbb69d57..56eba97b9ee60ae31623242e41d830b0a04440b5 100644 (file)
@@ -18,8 +18,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef JOB_CONTROL_H
-#define JOB_CONTROL_H
+#ifndef COMMON_JOB_CONTROL_H
+#define COMMON_JOB_CONTROL_H
 
 /* 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
@@ -35,4 +35,4 @@ extern int gdb_setpgid ();
    JOB_CONTROL.  */
 extern void have_job_control ();
 
-#endif /* JOB_CONTROL_H */
+#endif /* COMMON_JOB_CONTROL_H */
index c0f85542094ace2dc89cff724fd1700e588f0ff9..0d39fb5eea8816a9ffcfb19edf1cb06651d37332 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef NETSTUFF_H
-#define NETSTUFF_H
+#ifndef COMMON_NETSTUFF_H
+#define COMMON_NETSTUFF_H
 
 #include <string>
 
@@ -73,4 +73,4 @@ extern parsed_connection_spec
 extern parsed_connection_spec parse_connection_spec (const char *spec,
                                                     struct addrinfo *hint);
 
-#endif /* NETSTUFF_H */
+#endif /* COMMON_NETSTUFF_H */
index 911013033e9c4c159ee41ab7ad208b54ae3331dc..205c30382c69fa8273ed1a22d8d81d7b70a5be4c 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#if !defined (GDB_COMMON_OBSERVABLE_H)
-#define GDB_COMMON_OBSERVABLE_H
+#ifndef COMMON_OBSERVABLE_H
+#define COMMON_OBSERVABLE_H
 
 #include <algorithm>
 #include <functional>
@@ -116,4 +116,4 @@ private:
 
 } /* namespace gdb */
 
-#endif /* GDB_COMMON_OBSERVABLE_H */
+#endif /* COMMON_OBSERVABLE_H */
index d43f337550fa41472a4684ab71ce01868cf57a20..c264e7888402de4c9ac36e216552cd88b7ca7ed1 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef PATHSTUFF_H
-#define PATHSTUFF_H
+#ifndef COMMON_PATHSTUFF_H
+#define COMMON_PATHSTUFF_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);
 
-#endif /* PATHSTUFF_H */
+#endif /* COMMON_PATHSTUFF_H */
index a7c33d0978e2473da2073550a83804a143389ff9..cb735c34bbe96488c2bd4bb7efa27f78b187c885 100644 (file)
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef COMMON_PREPROC_H
-#define COMMON_PREPROC_H
+#ifndef COMMON_PREPROCESSOR_H
+#define COMMON_PREPROCESSOR_H
 
 /* Generally useful preprocessor bits.  */
 
@@ -32,4 +32,4 @@
    includes commas to another macro.  */
 #define ESC_PARENS(...) __VA_ARGS__
 
-#endif /* COMMON_PREPROC */
+#endif /* COMMON_PREPROCESSOR_H */
index 152bc5956c52c0bf10f7fc5b69d7997b6cde4b5a..815b14cbed304577f616f922007ad5283b03c108 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef COMMON_CELLS_H
-#define COMMON_CELLS_H
+#ifndef COMMON_PRINT_UTILS_H
+#define COMMON_PRINT_UTILS_H
 
 /* How many characters (including the terminating null byte) fit in a
    cell.  */
@@ -79,4 +79,4 @@ extern const char *host_address_to_string_1 (const void *addr);
 
 extern char *get_print_cell (void);
 
-#endif /* COMMON_CELLS_H */
+#endif /* COMMON_PRINT_UTILS_H */
index 16d1b64ce00c62aca7a92ac174fa663ee7b121fd..31440c8d7cd953b9ab01d99e522ede5a74d39727 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef PTID_H
-#define PTID_H
+#ifndef COMMON_PTID_H
+#define COMMON_PTID_H
 
 /* The ptid struct is a collection of the various "ids" necessary for
    identifying the inferior process/thread being debugged.  This
@@ -152,4 +152,4 @@ extern ptid_t null_ptid;
 
 extern ptid_t minus_one_ptid;
 
-#endif
+#endif /* COMMON_PTID_H */
index ed95ce7771a2991f1eef20e3ec11ffa185b07d60..3bc9c7e212a59f8a06d7b8ca529a99d8812bf66d 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef QUEUE_H
-#define QUEUE_H
+#ifndef COMMON_QUEUE_H
+#define COMMON_QUEUE_H
 
 /* These macros implement functions and structs for a general queue.
    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_ITER (TYPE) *iter);     \
 
-#endif /* QUEUE_H */
+#endif /* COMMON_QUEUE_H */
index 629d728102d733e342048722804e2936f0235daf..4bf7fcf1c9451c34d4180c145048ca6a61229b0a 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef REFCOUNTED_OBJECT_H
-#define REFCOUNTED_OBJECT_H
+#ifndef COMMON_REFCOUNTED_OBJECT_H
+#define COMMON_REFCOUNTED_OBJECT_H
 
 /* Base class of intrusively reference-countable objects.
    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 */
index 2522ca396b2c7537bf3e3626103b6743ab9d219d..9c15dd7ab12a10f2dbf2013c7a1bf2f563ee7509 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef RUN_TIME_CLOCK_H
-#define RUN_TIME_CLOCK_H
+#ifndef COMMON_RUN_TIME_CLOCK_H
+#define COMMON_RUN_TIME_CLOCK_H
 
 #include <chrono>
 
@@ -72,4 +72,4 @@ struct run_time_clock
                   system_cpu_time_clock::time_point &system) noexcept;
 };
 
-#endif
+#endif /* COMMON_RUN_TIME_CLOCK_H */
index 18027c680e6e5e9a08c5a24c543a0dd292b1e99b..89aec01884fa60c21610a1a89b994520f3c9d817 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef SAFE_ITERATOR_H
-#define SAFE_ITERATOR_H
+#ifndef COMMON_SAFE_ITERATOR_H
+#define COMMON_SAFE_ITERATOR_H
 
 /* A forward iterator that wraps Iterator, such that when iterating
    with iterator IT, it is possible to delete *IT without invalidating
@@ -90,4 +90,4 @@ private:
   Iterator m_end {};
 };
 
-#endif /* SAFE_ITERATOR_H */
+#endif /* COMMON_SAFE_ITERATOR_H */
index 87b1f42fc068738fa113119340c8b275279cd54b..bdd22f595a5807f29f85a0734ede483cd0398cc8 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef SCOPED_FD_H
-#define SCOPED_FD_H
+#ifndef COMMON_SCOPED_FD_H
+#define COMMON_SCOPED_FD_H
 
 #include <unistd.h>
 #include "filestuff.h"
@@ -84,4 +84,4 @@ private:
   int m_fd;
 };
 
-#endif /* SCOPED_FD_H */
+#endif /* COMMON_SCOPED_FD_H */
index 1c9d1025c2669920a717c6cf22ef4111c1aeab57..763f40e201c2ea66519fe514291bf027fa60c568 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef SCOPED_MMAP_H
-#define SCOPED_MMAP_H
+#ifndef COMMON_SCOPED_MMAP_H
+#define COMMON_SCOPED_MMAP_H
 
 #include "config.h"
 
@@ -92,4 +92,5 @@ private:
 scoped_mmap mmap_file (const char *filename);
 
 #endif /* HAVE_SYS_MMAN_H */
-#endif /* SCOPED_MMAP_H */
+
+#endif /* COMMON_SCOPED_MMAP_H */
index 127752e99b697fd511363d02a3048cc00556422c..54c3ff5f8a5dc20034586a3788896a5fe6727e46 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef SCOPED_RESTORE_H
-#define SCOPED_RESTORE_H
+#ifndef COMMON_SCOPED_RESTORE_H
+#define COMMON_SCOPED_RESTORE_H
 
 /* Base class for scoped_restore_tmpl.  */
 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);
 }
 
-#endif /* SCOPED_RESTORE_H */
+#endif /* COMMON_SCOPED_RESTORE_H */
index 0922bca9140da9dc42e655e0810567881cfe53de..c566ec5f3dbbcfe07574abf3487b3ce92918e5b6 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef SELFTEST_H
-#define SELFTEST_H
+#ifndef COMMON_SELFTEST_H
+#define COMMON_SELFTEST_H
 
 /* A test is just a function that does some checks and throws an
    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__);      \
   } while (0)
 
-#endif /* SELFTEST_H */
+#endif /* COMMON_SELFTEST_H */
index 4db547303c545394cdd0bd1525525c1749f3338e..a0bc6339e264cda8aaa4c82bd1dac26d1b8e966d 100644 (file)
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef ARCH_TDESC_H
-#define ARCH_TDESC_H 1
+#ifndef COMMON_TDESC_H
+#define COMMON_TDESC_H
 
 struct tdesc_feature;
 struct tdesc_type;
@@ -404,4 +404,4 @@ private:
   std::string *m_buffer;
 };
 
-#endif /* ARCH_TDESC_H */
+#endif /* COMMON_TDESC_H */
index d4e4c0270429adcd8810dcbcc15db92ec75ea2d4..8ac146d4903e21ab69087c8ae953605486593b2b 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#if !defined (GDB_VEC_H)
-#define GDB_VEC_H
+#ifndef COMMON_VEC_H
+#define COMMON_VEC_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);     \
 }
 
-#endif /* GDB_VEC_H */
+#endif /* COMMON_VEC_H */
index c804f472eaae249859e54ac52736aa3743a75de6..9e840e72b4d932acbd6ffc0ed448253f90389ddb 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef VERSION_H
-#define VERSION_H
+#ifndef COMMON_VERSION_H
+#define COMMON_VERSION_H
 
 /* Version number of GDB, as a string.  */
 extern const char version[];
@@ -28,4 +28,4 @@ extern const char host_name[];
 /* Canonical target name as a string.  */
 extern const char target_name[];
 
-#endif /* #ifndef VERSION_H */
+#endif /* COMMON_VERSION_H */
index 7f378bd9d8a53a6f4b3a1c0344305d0b560082d4..4ce8f61e394ab90a837fb5243dca5424bb574679 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef X86_XSTATE_H
-#define X86_XSTATE_H 1
+#ifndef COMMON_X86_XSTATE_H
+#define COMMON_X86_XSTATE_H
 
 /* The extended state feature bits.  */
 #define X86_XSTATE_X87         (1ULL << 0)
@@ -85,4 +85,4 @@
 
 #define I387_MXCSR_INIT_VAL 0x1f80
 
-#endif /* X86_XSTATE_H */
+#endif /* COMMON_X86_XSTATE_H */
index 4cc47d9c2f5aa5079ac393d459c1469ae57f5a61..747e8c8a481d6e03cbd132af6943af39ebea8ddb 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef XML_UTILS_H
-#define XML_UTILS_H
+#ifndef COMMON_XML_UTILS_H
+#define COMMON_XML_UTILS_H
 
 /* Return a string with special characters from TEXT replaced by entity
    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);
 
-#endif
+#endif /* COMMON_XML_UTILS_H */
index ecb69df00aa6c09f013719a9d9808ca15e4fc142..b5a2194dbbbd5ae6461f3ddb44c3f4d59ee39489 100644 (file)
@@ -14,8 +14,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_COMPILE_C_H
-#define GDB_COMPILE_C_H
+#ifndef COMPILE_COMPILE_C_H
+#define COMPILE_COMPILE_C_H
 
 #include "common/enum-flags.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>
   c_symbol_substitution_name (struct symbol *sym);
 
-#endif /* GDB_COMPILE_C_H  */
+#endif /* COMPILE_COMPILE_C_H */
index 89799425734b996dc32edc56c13a57db632589e9..e5ea7d7c81acd446f66360728af82e6faf673048 100644 (file)
@@ -14,8 +14,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_COMPILE_CPLUS_H
-#define GDB_COMPILE_CPLUS_H
+#ifndef COMPILE_COMPILE_CPLUS_H
+#define COMPILE_COMPILE_CPLUS_H
 
 #include "common/enum-flags.h"
 #include "gcc-cp-plugin.h"
@@ -202,4 +202,4 @@ private:
 enum gcc_cp_symbol_kind get_method_access_flag (const struct type *type,
                                                int fni, int num);
 
-#endif /* GDB_COMPILE_CPLUS_H  */
+#endif /* COMPILE_COMPILE_CPLUS_H */
index 90e829259d9c92035d6480024a25a7601ff58a2b..406a369d683d5333b05ab147d5320e42a5a87385 100644 (file)
@@ -14,8 +14,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_COMPILE_INTERNAL_H
-#define GDB_COMPILE_INTERNAL_H
+#ifndef COMPILE_COMPILE_INTERNAL_H
+#define COMPILE_COMPILE_INTERNAL_H
 
 #include "gcc-c-interface.h"
 
@@ -207,4 +207,4 @@ private:
   std::string m_object_file;
 };
 
-#endif /* GDB_COMPILE_INTERNAL_H */
+#endif /* COMPILE_COMPILE_INTERNAL_H */
index 33cc2927c1a7aded75f9451cbb8bf803c52b1ad5..730164faa43e9144d0e6085bbbeb8af1a9c18ec0 100644 (file)
@@ -14,8 +14,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_COMPILE_OBJECT_LOAD_H
-#define GDB_COMPILE_OBJECT_LOAD_H
+#ifndef COMPILE_COMPILE_OBJECT_LOAD_H
+#define COMPILE_COMPILE_OBJECT_LOAD_H
 
 #include "compile-internal.h"
 #include <list>
@@ -82,4 +82,4 @@ extern struct compile_module *compile_object_load
    enum compile_i_scope_types scope, void *scope_data);
 extern void munmap_list_free (struct munmap_list *head);
 
-#endif /* GDB_COMPILE_OBJECT_LOAD_H */
+#endif /* COMPILE_COMPILE_OBJECT_LOAD_H */
index 0124095b24aa27a4b3e7c50c034b7b8e5f472068..f8c1ef454c40a704181d9f3ce9aa80d97b1de655 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_COMPILE_OBJECT_RUN_H
-#define GDB_COMPILE_OBJECT_RUN_H
+#ifndef COMPILE_COMPILE_OBJECT_RUN_H
+#define COMPILE_COMPILE_OBJECT_RUN_H
 
 #include "compile-object-load.h"
 
 extern void compile_object_run (struct compile_module *module);
 
-#endif /* GDB_COMPILE_OBJECT_RUN_H */
+#endif /* COMPILE_COMPILE_OBJECT_RUN_H */
index 88bd8d8591ff74c9d198d9ffdbb4a8f5d4425dba..127d8675bd4fb4c0a7de0b30b0d82273b5c3c7fe 100644 (file)
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_COMPILE_H
-#define GDB_COMPILE_H
+#ifndef COMPILE_COMPILE_H
+#define COMPILE_COMPILE_H
 
 struct ui_file;
 struct gdbarch;
@@ -106,4 +106,4 @@ extern void compile_print_value (struct value *val, void *data_voidp);
 /* Command element for the 'compile' command.  */
 extern cmd_list_element *compile_cmd_element;
 
-#endif /* GDB_COMPILE_H */
+#endif /* COMPILE_COMPILE_H */
index 9ec78e2725c5bd037d52909772537e500139db24..12869f3cf9c27ea085b7cc9699ca787645afd1cd 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    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"
 
 /* A class representing the C plug-in.  */
@@ -64,3 +67,5 @@ private:
   /* The GCC C context.  */
   struct gcc_c_context *m_context;
 };
+
+#endif /* COMPILE_GCC_C_PLUGIN_H */
index f7ba494f340059abaa4a934b63b0634681785f88..0f0d01f1daf53df8220231f781613c08ef18f282 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    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.  */
 
 #include "gcc-cp-interface.h"
@@ -83,3 +86,5 @@ private:
   /* The GCC C++ context.  */
   struct gcc_cp_context *m_context;
 };
+
+#endif /* COMPILE_GCC_CP_PLUGIN_H */
index 2c4a900dd2d30cbcfdf0fc8caf3377cd834a785e..6a692024185f7c72f99b438b8c175d67b2e1ce07 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef _LANGINFO_H
-#define _LANGINFO_H
+#ifndef CONFIG_DJGPP_LANGINFO_H
+#define CONFIG_DJGPP_LANGINFO_H
 
 #include <nl_types.h>
 
@@ -32,4 +32,4 @@ enum {
 
 extern char *nl_langinfo (nl_item);
 
-#endif /* _LANGINFO_H */
+#endif /* CONFIG_DJGPP_LANGINFO_H */
index fc9445f6a56a94a0407748b1c8e0e789b85d7693..f0020b5adb62bf52bebe03bbc32a626c7c92a853 100644 (file)
@@ -17,9 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef _NL_TYPES_H
-#define _NL_TYPES_H
+#ifndef CONFIG_DJGPP_NL_TYPES_H
+#define CONFIG_DJGPP_NL_TYPES_H
 
 typedef int nl_item;
 
-#endif /* _NL_TYPES_H */
+#endif /* CONFIG_DJGPP_NL_TYPES_H */
index 8c157c256f4146a779bfcedd8fc6859b8540aff3..99f3fc79a08370686564b98b658d36cf03785b05 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef NM_I386GNU_H
-#define NM_I386GNU_H
+#ifndef CONFIG_I386_NM_I386GNU_H
+#define CONFIG_I386_NM_I386GNU_H
 
 #include <unistd.h>
 #include <mach.h>
@@ -34,4 +34,4 @@ extern char *gnu_target_pid_to_str (int pid);
 #define THREAD_STATE_CLEAR_TRACED(state) \
        ((((struct i386_thread_state *) (state))->efl &= ~0x100), 1)
 
-#endif /* nm-i386gnu.h */
+#endif /* CONFIG_I386_NM_I386GNU_H */
index bc3e360390aaec361e91e1bac6810e647181bbbf..76502ff632cad0a604960752070e3890a65963f8 100644 (file)
    You should have received a copy of the GNU General Public License
    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
    gregset_t and fpregset_t.  */
 
 #define GDB_GREGSET_T  elf_gregset_t
 #define GDB_FPREGSET_T elf_fpregset_t
+
+#endif /* CONFIG_NM_LINUX_H */
index 6ee68866770dba062359453600827720f10001dd..2d43ffaae4b0ec7f7d15e3cfe060a6f4c68a892d 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef NM_NTO_H
-#define NM_NTO_H
+#ifndef CONFIG_NM_NTO_H
+#define CONFIG_NM_NTO_H
 
 /* Setup the valid realtime signal range.  */
 #define REALTIME_LO 41
 #define REALTIME_HI 56
 
-#endif /* NM_NTO_H */
+#endif /* CONFIG_NM_NTO_H */
index fdae224b53000f99b64b9eb2e1b98ff370efc091..02cd9d09a25cefbe996b5654a550c60d4bbd6278 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef NM_SOL2_H
-#define NM_SOL2_H
+#ifndef CONFIG_SPARC_NM_SOL2_H
+#define CONFIG_SPARC_NM_SOL2_H
 
 #define GDB_GREGSET_T prgregset_t
 #define GDB_FPREGSET_T prfpregset_t
 
-#endif /* nm-sol2.h */
+#endif /* CONFIG_SPARC_NM_SOL2_H */
index fa17770d8bfe6aa55ad7d9a239d3c105f36416ec..3cbf19cd511791c563263a2ecdfdd64ce885edc7 100644 (file)
@@ -20,8 +20,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef CP_ABI_H_
-#define CP_ABI_H_ 1
+#ifndef CP_ABI_H
+#define CP_ABI_H
 
 struct fn_field;
 struct type;
@@ -253,5 +253,4 @@ struct cp_abi_ops
 extern int register_cp_abi (struct cp_abi_ops *abi);
 extern void set_cp_abi_as_auto_default (const char *short_name);
 
-#endif
-
+#endif /* CP_ABI_H */
index e4d8a5dbed552fe7e07541ac42acbc7c90953c27..f33e25316f5ac1e46f0eaa3edaaabfcf5649a725 100644 (file)
@@ -14,8 +14,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef __DARWIN_NAT_H__
-#define __DARWIN_NAT_H__
+#ifndef DARWIN_NAT_H
+#define DARWIN_NAT_H
 
 #include "inf-child.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);
 
-#endif /* __DARWIN_NAT_H__ */
+#endif /* DARWIN_NAT_H */
index c4f594643ecea1fb7943e0202292db69dffa5e35..99b776618bd42a0431c404de4aae80e1a5a64cad 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    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 arrives, it is queued and processed by calling the
    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 initialize_async_signal_handlers (void);
+
+#endif /* EVENT_LOOP_H */
index cab06f9806d4bed15f73b4c8da717d1ede2a7d5f..a4ae6a726d95906423c3f93181657e1a1e2a7fd9 100644 (file)
@@ -20,6 +20,9 @@
    You should have received a copy of the GNU General Public License
    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 parser_state;
 
@@ -79,3 +82,4 @@ struct builtin_f_type
 /* Return the Fortran type table for the specified architecture.  */
 extern const struct builtin_f_type *builtin_f_type (struct gdbarch *gdbarch);
 
+#endif /* F_LANG_H */
index 551ca6b4a60d6118f3e243951ed1ff7a49ff05ee..6b5cc7f90ddd4768af9fc59b877f85971403471f 100644 (file)
@@ -16,6 +16,9 @@
    You should have received a copy of the GNU General Public License
    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.  */
 enum frv_abi
   {
@@ -118,3 +121,4 @@ CORE_ADDR frv_fetch_objfile_link_map (struct objfile *objfile);
 struct target_so_ops;
 extern struct target_so_ops frv_so_ops;
 
+#endif /* FRV_TDEP_H */
index 6ee073d32a3fb7faeef92e51d238cc44ebfa74bf..3b64d328f5c6ab540cc3596ca0265505db4bf259 100644 (file)
    You should have received a copy of the GNU General Public License
    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
    the symbol-readers that end up using stabs.  The common use of
    these `symbol-type-specific' customizations of the generic data
    structures makes the stabs-oriented symbol readers able to call
    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
    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_STAB_SECTION(o)    (DBX_SYMFILE_INFO(o)->stab_section)
 
-#endif /* GDBSTABS_H */
+#endif /* GDB_STABS_H */
index be9a26302b2bc42140dfa8170ad4103565e3b8dd..17593cb8c24de78e8abb72bdfc84bc3d2439e534 100644 (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>
 
        PR gdb/23985
index fd968341ce8ac53b661ed68c5a462db8ceac7910..3e9fd8f795c970405c47098a9ec027b914f3aa54 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#if !defined (AX_H)
-#define AX_H 1
+#ifndef GDBSERVER_AX_H
+#define GDBSERVER_AX_H
 
 #include "regcache.h"
 
@@ -142,4 +142,4 @@ struct emit_ops
 extern CORE_ADDR current_insn_ptr;
 extern int emit_error;
 
-#endif /* AX_H */
+#endif /* GDBSERVER_AX_H */
index 041945a317ecf94fdd394ff6eeddbc3a91e740f7..e40f28c77168dff376597523f4f943f98ce60051 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef DEBUG_H
-#define DEBUG_H
+#ifndef GDBSERVER_DEBUG_H
+#define GDBSERVER_DEBUG_H
 
 /* We declare debug format variables here, and debug_threads but no other
    debug content variables (e.g., not remote_debug) because while this file
@@ -51,4 +51,4 @@ void do_debug_exit (const char *function_name);
   do { } while (0)
 #endif
 
-#endif /* DEBUG_H */
+#endif /* GDBSERVER_DEBUG_H */
index 4dad56b741024915f8fe429cf8f326d502106293..fd45d73d5f38309aeaa40247d93e48932c3efe64 100644 (file)
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef DLL_H
-#define DLL_H
+#ifndef GDBSERVER_DLL_H
+#define GDBSERVER_DLL_H
 
 #include <list>
 
@@ -37,4 +37,4 @@ extern void clear_dlls (void);
 extern void loaded_dll (const char *name, CORE_ADDR base_addr);
 extern void unloaded_dll (const char *name, CORE_ADDR base_addr);
 
-#endif /* DLL_H */
+#endif /* GDBSERVER_DLL_H */
index 39135a427b854a4e149b88af4ce185f55760e001..a09a6ad4355d2be1098310c76587827c2244e3b5 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef EVENT_LOOP_H
-#define EVENT_LOOP_H
+#ifndef GDBSERVER_EVENT_LOOP_H
+#define GDBSERVER_EVENT_LOOP_H
 
 typedef void *gdb_client_data;
 typedef int (handler_func) (int, gdb_client_data);
@@ -33,4 +33,4 @@ extern void delete_callback_event (int id);
 extern void start_event_loop (void);
 extern void initialize_event_loop (void);
 
-#endif /* EVENT_LOOP_H */
+#endif /* GDBSERVER_EVENT_LOOP_H */
index 03e6a068d59b5ae1fb9644c44ae26bf37477a103..626bc164fe35aecbe2195feff0074b3b8fec4489 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_PROC_SERVICE_H
-#define GDB_PROC_SERVICE_H
+#ifndef GDBSERVER_GDB_PROC_SERVICE_H
+#define GDBSERVER_GDB_PROC_SERVICE_H
 
 #include "common/gdb_proc_service.h"
 
@@ -28,4 +28,4 @@ struct ps_prochandle
      current inferior.  */
 };
 
-#endif /* gdb_proc_service.h */
+#endif /* GDBSERVER_GDB_PROC_SERVICE_H */
index fcd02029e7d920c9b6dea3705380ab561ce73658..44ed3c4723c2dd59861a38576366ef48b6b78dab 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_THREAD_H
-#define GDB_THREAD_H
+#ifndef GDBSERVER_GDBTHREAD_H
+#define GDBSERVER_GDBTHREAD_H
 
 #include "common/common-gdbthread.h"
 #include "inferiors.h"
@@ -224,4 +224,4 @@ lwpid_of (const thread_info *thread)
   return thread->id.lwp ();
 }
 
-#endif /* GDB_THREAD_H */
+#endif /* GDBSERVER_GDBTHREAD_H */
index acddef2bed8da1ef522be433ee2aa800ed2f098f..17a2bea6e66d8f96d3d1f1d13526014a3120807c 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef HOSTIO_H
-#define HOSTIO_H
+#ifndef GDBSERVER_HOSTIO_H
+#define GDBSERVER_HOSTIO_H
 
 /* Per-connection setup.  */
 extern void hostio_handle_new_gdb_connection (void);
@@ -28,4 +28,4 @@ extern int handle_vFile (char *, int, int *);
 /* Functions from hostio-errno.c.  */
 extern void hostio_last_error_from_errno (char *own_buf);
 
-#endif /* HOSTIO_H */
+#endif /* GDBSERVER_HOSTIO_H */
index f331992472103c6f6b441d37b343851af3527d4c..e5eaedfe2fa3f993b2500f090225a02c46eda8ba 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef I387_FP_H
-#define I387_FP_H
+#ifndef GDBSERVER_I387_FP_H
+#define GDBSERVER_I387_FP_H
 
 void i387_cache_to_fsave (struct regcache *regcache, void *buf);
 void i387_fsave_to_cache (struct regcache *regcache, const void *buf);
@@ -30,4 +30,4 @@ void i387_xsave_to_cache (struct regcache *regcache, const void *buf);
 
 extern unsigned long long x86_xcr0;
 
-#endif /* I387_FP_H */
+#endif /* GDBSERVER_I387_FP_H */
index b2a18663354c74ed71133379f158971dc3f88f54..cf284b807bb27231220e7b04f48bb4a505711341 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef INFERIORS_H
-#define INFERIORS_H
+#ifndef GDBSERVER_INFERIORS_H
+#define GDBSERVER_INFERIORS_H
 
 #include "common/gdb_vecs.h"
 #include <list>
@@ -144,4 +144,4 @@ void *thread_target_data (struct thread_info *);
 struct regcache *thread_regcache_data (struct thread_info *);
 void set_thread_regcache_data (struct thread_info *, struct regcache *);
 
-#endif /* INFERIORS_H */
+#endif /* GDBSERVER_INFERIORS_H */
index 64f6848fee5727fdcfa5d6c9fb9ccf14812634ca..44e626c7199423b35c6504b11be0d8e767c2c7f4 100644 (file)
@@ -15,6 +15,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef GDBSERVER_LINUX_AARCH32_LOW_H
+#define GDBSERVER_LINUX_AARCH32_LOW_H
+
 extern struct regs_info regs_info_aarch32;
 
 void arm_fill_gregset (struct regcache *regcache, void *buf);
@@ -34,3 +37,5 @@ void init_registers_arm_with_neon (void);
 int arm_is_thumb_mode (void);
 
 extern const struct target_desc *tdesc_arm_with_neon;
+
+#endif /* GDBSERVER_LINUX_AARCH32_LOW_H */
index a23b6b6dd6ea4fdbf23e39e2c6a88d4d63df9e0c..7ce81506636e07f3071452417547dd2333680f72 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef GDBSERVER_LINUX_AARCH64_TDESC_H
+#define GDBSERVER_LINUX_AARCH64_TDESC_H
+
 const target_desc * aarch64_linux_read_description (uint64_t vq);
 
 #if GDB_SELF_TEST
 void initialize_low_tdesc ();
 #endif
+
+#endif /* GDBSERVER_LINUX_AARCH64_TDESC_H */
index b99236f7d93a2a723338be2dfa3f995d5887aa54..d09390dd99d8df3d62f66ca2459861b15fc43691 100644 (file)
@@ -16,6 +16,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef GDBSERVER_LINUX_LOW_H
+#define GDBSERVER_LINUX_LOW_H
+
 #include "nat/linux-nat.h"
 #include "nat/gdb_thread_db.h"
 #include <signal.h>
@@ -430,3 +433,5 @@ void thread_db_notice_clone (struct thread_info *parent_thr, ptid_t child_ptid);
 bool thread_db_thread_handle (ptid_t ptid, gdb_byte **handle, int *handle_len);
 
 extern int have_ptrace_getregset;
+
+#endif /* GDBSERVER_LINUX_LOW_H */
index 16f5b9ca9ea9734335bcd1520708c4ee5df16879..4f9a7c5009ba8bf2004c316f3552666e036ba704 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef GDBSERVER_LINUX_PPC_TDESC_INIT_H
+#define GDBSERVER_LINUX_PPC_TDESC_INIT_H
+
 /* Note: since IPA obviously knows what ABI it's running on (32 vs 64),
    it's sufficient to pass only the register set here.  This, together with
    the ABI known at IPA compile time, maps to a tdesc.  */
@@ -105,3 +108,5 @@ void init_registers_powerpc_isa207_vsx64l (void);
 void init_registers_powerpc_isa207_htm_vsx64l (void);
 
 #endif
+
+#endif /* GDBSERVER_LINUX_PPC_TDESC_INIT_H */
index cf1021a83fd72d912a2c581d7cbf6e276cc217e1..dc05fcdfe01217626a0eb4a98c2817618c75c932 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef GDBSERVER_LINUX_S390_TDESC_H
+#define GDBSERVER_LINUX_S390_TDESC_H
+
 /* Note: since IPA obviously knows what ABI it's running on (s390 vs s390x),
    it's sufficient to pass only the register set here.  This, together with
    the ABI known at IPA compile time, maps to a tdesc.  */
@@ -109,3 +112,5 @@ void init_registers_s390_gs_linux64 (void);
 extern const struct target_desc *tdesc_s390_gs_linux64;
 
 #endif
+
+#endif /* GDBSERVER_LINUX_S390_TDESC_H */
index ac4199e4fdfe7990b4b3a026c7f15c02c0567275..5f1fb18458c1b3c23cf02123944b8d0cd6bad81f 100644 (file)
@@ -18,6 +18,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef GDBSERVER_LINUX_X86_TDESC_H
+#define GDBSERVER_LINUX_X86_TDESC_H
+
 /* Note: since IPA obviously knows what ABI it's running on (i386 vs x86_64
    vs x32), it's sufficient to pass only the register set here.  This,
    together with the ABI known at IPA compile time, maps to a tdesc.  */
@@ -51,3 +54,5 @@ const struct target_desc *amd64_linux_read_description (uint64_t xcr0,
 const struct target_desc *i386_linux_read_description (uint64_t xcr0);
 
 void initialize_low_tdesc ();
+
+#endif /* GDBSERVER_LINUX_X86_TDESC_H */
index 8a842040bf591117b433481cb62d17b834a71eb1..506d6cb1047c6e2ee960b32cf4e23aaf9bdc35da 100644 (file)
@@ -15,6 +15,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef GDBSERVER_LYNX_LOW_H
+#define GDBSERVER_LYNX_LOW_H
+
 struct regcache;
 struct target_desc;
 
@@ -52,3 +55,5 @@ extern struct lynx_target_ops the_low_target;
 /* The inferior's target description.  This is a global because the
    LynxOS ports support neither bi-arch nor multi-process.  */
 extern const struct target_desc *lynx_tdesc;
+
+#endif /* GDBSERVER_LYNX_LOW_H */
index 49cdfeaa25bd3bb88225e3973079ccdd7be33a7d..d2d75104f339b2fc3022c706c68851006ef9055b 100644 (file)
@@ -18,8 +18,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef MEM_BREAK_H
-#define MEM_BREAK_H
+#ifndef GDBSERVER_MEM_BREAK_H
+#define GDBSERVER_MEM_BREAK_H
 
 #include "common/break-common.h"
 
@@ -276,4 +276,4 @@ int remove_memory_breakpoint (struct raw_breakpoint *bp);
 void clone_all_breakpoints (struct thread_info *child_thread,
                            const struct thread_info *parent_thread);
 
-#endif /* MEM_BREAK_H */
+#endif /* GDBSERVER_MEM_BREAK_H */
index add55360ddd6f0ff9897060527d80b09032e5995..7d0767935bcf2cd8663c86a785b463078082c61d 100644 (file)
@@ -16,6 +16,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef GDBSERVER_NOTIF_H
+#define GDBSERVER_NOTIF_H
+
 #include "target.h"
 #include "common/queue.h"
 
@@ -62,3 +65,5 @@ void notif_event_enque (struct notif_server *notif,
                        struct notif_event *event);
 
 void initialize_notif (void);
+
+#endif /* GDBSERVER_NOTIF_H */
index 6114525c8ea0f8067a03a887ffa079dc0ae56426..61981c6ce66e998ceb180e27afaa2ebff6f9b8ad 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef NTO_LOW_H
-#define NTO_LOW_H
+#ifndef GDBSERVER_NTO_LOW_H
+#define GDBSERVER_NTO_LOW_H
 
 struct target_desc;
 
@@ -46,5 +46,4 @@ extern struct nto_target_ops the_low_target;
    LynxOS ports support neither bi-arch nor multi-process.  */
 extern const struct target_desc *nto_tdesc;
 
-#endif
-
+#endif /* GDBSERVER_NTO_LOW_H */
index 98c3131624ea01d94cd6daa06d67bdce744c83cb..5ee44788dcd32b323331f69a9e78be022202fe6e 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef REGCACHE_H
-#define REGCACHE_H
+#ifndef GDBSERVER_REGCACHE_H
+#define GDBSERVER_REGCACHE_H
 
 #include "common/common-regcache.h"
 
@@ -138,4 +138,4 @@ void collect_register_by_name (struct regcache *regcache,
 ULONGEST regcache_raw_get_unsigned_by_name (struct regcache *regcache,
                                            const char *name);
 
-#endif /* REGCACHE_H */
+#endif /* GDBSERVER_REGCACHE_H */
index ca176b7ddda7a8ce3a91f972fbde6c566acb3f4b..587afdb0283b371e19100ee05df9a47dddfa51f1 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef REMOTE_UTILS_H
-#define REMOTE_UTILS_H
+#ifndef GDBSERVER_REMOTE_UTILS_H
+#define GDBSERVER_REMOTE_UTILS_H
 
 extern int remote_debug;
 
@@ -69,4 +69,4 @@ int relocate_instruction (CORE_ADDR *to, CORE_ADDR oldloc);
 
 void monitor_output (const char *msg);
 
-#endif /* REMOTE_UTILS_H */
+#endif /* GDBSERVER_REMOTE_UTILS_H */
index 26d0dfb0ebfaaeaaf57d4415df6f26d4932fc41a..400001addd3bd3d3dc2084e4f319434aecb59ff1 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef SERVER_H
-#define SERVER_H
+#ifndef GDBSERVER_SERVER_H
+#define GDBSERVER_SERVER_H
 
 #include "common/common-defs.h"
 
@@ -205,4 +205,4 @@ client_state &get_client_state ();
 #include "gdbthread.h"
 #include "inferiors.h"
 
-#endif /* SERVER_H */
+#endif /* GDBSERVER_SERVER_H */
index 225edd05df6a8fa3599ce43bc03bc682299dedc4..a4c9ad49106208e9d065388ae1b278e2cbdba5fe 100644 (file)
@@ -18,8 +18,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TARGET_H
-#define TARGET_H
+#ifndef GDBSERVER_TARGET_H
+#define GDBSERVER_TARGET_H
 
 #include <sys/types.h> /* for mode_t */
 #include "target/target.h"
@@ -737,4 +737,4 @@ int target_can_do_hardware_single_step (void);
 
 int default_breakpoint_kind_from_pc (CORE_ADDR *pcptr);
 
-#endif /* TARGET_H */
+#endif /* GDBSERVER_TARGET_H */
index fe66408e15c8ed9bcef454cebd565e5fe5be63ea..8ccacbb7ed4ec42ca863d6eaa3019197d39dab91 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TDESC_H
-#define TDESC_H
+#ifndef GDBSERVER_TDESC_H
+#define GDBSERVER_TDESC_H
 
 #include "common/tdesc.h"
 
@@ -93,4 +93,4 @@ void init_target_desc (struct target_desc *tdesc,
 
 const struct target_desc *current_target_desc (void);
 
-#endif /* TDESC_H */
+#endif /* GDBSERVER_TDESC_H */
index 7ed67dc0705c83c4989863db322e532ce2aa30e9..9560cdf89a37408c297b1ae34121de8e0376c307 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TRACEPOINT_H
-#define TRACEPOINT_H
+#ifndef GDBSERVER_TRACEPOINT_H
+#define GDBSERVER_TRACEPOINT_H
 
 /* Size for a small buffer to report problems from the in-process
    agent back to GDBserver.  */
@@ -192,4 +192,4 @@ CORE_ADDR get_get_tsv_func_addr (void);
    function in the IPA.  */
 CORE_ADDR get_set_tsv_func_addr (void);
 
-#endif /* TRACEPOINT_H */
+#endif /* GDBSERVER_TRACEPOINT_H */
index 5437faa6e81ccfc314569a48fcec39b1ee326c9b..2bc7a6ecab95d080cec5eb172026eadb0f743317 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef UTILS_H
-#define UTILS_H
+#ifndef GDBSERVER_UTILS_H
+#define GDBSERVER_UTILS_H
 
 char *paddress (CORE_ADDR addr);
 char *pfildes (gdb_fildes_t fd);
 
-#endif /* UTILS_H */
+#endif /* GDBSERVER_UTILS_H */
index 9f8cf0c9e65eeb5c3537bb51c41a888cbaa9e1f3..815c1b04669a3712136cd705cbcd1d121ed6f060 100644 (file)
@@ -16,6 +16,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef GDBSERVER_WIN32_LOW_H
+#define GDBSERVER_WIN32_LOW_H
+
 #include <windows.h>
 
 struct target_desc;
@@ -115,3 +118,5 @@ extern char * strwinerror (DWORD error);
 /* in wincecompat.c */
 
 extern void to_back_slashes (char *);
+
+#endif /* GDBSERVER_WIN32_LOW_H */
index 797bed68cc3df49593b9aa08fbbeb46bca280d18..c4bc316c87c537e8d32deada64d321b741d1fa04 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef WINCECOMPAT_H
-#define WINCECOMPAT_H
+#ifndef GDBSERVER_WINCECOMPAT_H
+#define GDBSERVER_WINCECOMPAT_H
 
 #include <windows.h>
 
@@ -27,4 +27,4 @@
 extern char * strwinerror (DWORD error);
 #define strerror strwinerror
 
-#endif
+#endif /* GDBSERVER_WINCECOMPAT_H */
index d7ec4b4cf361df86b28fb57ce17282ee3e124e08..9f4a80a846f23bc1774732325fe6a76d94bfa5a7 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef GDBSERVER_X86_LOW_H
+#define GDBSERVER_X86_LOW_H
 
 #include "nat/x86-dregs.h"
 
 /* Initialize STATE.  */
 extern void x86_low_init_dregs (struct x86_debug_reg_state *state);
+
+#endif /* GDBSERVER_X86_LOW_H */
index cd0919d6292c210ad8637d96e92f6b92894a1efe..0f01cc8f975067b58dd83ee394be912abed16739 100644 (file)
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef X86_TDESC_H
-#define X86_TDESC_H
+#ifndef GDBSERVER_X86_TDESC_H
+#define GDBSERVER_X86_TDESC_H
 
 /* The "expedite" registers for x86 targets.  Since whether the
    variable is used depends on host/configuration, we mark it
@@ -29,4 +29,4 @@ static const char *i386_expedite_regs[] ATTRIBUTE_UNUSED
 static const char *amd64_expedite_regs[] = {"rbp", "rsp", "rip", NULL};
 #endif
 
-#endif /* X86_TDESC_H */
+#endif /* GDBSERVER_X86_TDESC_H */
index 34558c26aa6959a351f80f528c6d8631a0edbfef..9df479c8506a72ff7f6ebefa2b8f9e71d790a833 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef __GNU_NAT_H__
-#define __GNU_NAT_H__
+#ifndef GNU_NAT_H
+#define GNU_NAT_H
 
 #include <unistd.h>
 #include <mach.h>
@@ -135,4 +135,4 @@ struct gnu_nat_target : public inf_child_target
   void stop (ptid_t) override;
 };
 
-#endif /* __GNU_NAT_H__ */
+#endif /* GNU_NAT_H */
index a807c5394309db1f56733bcd9a1b58f018e6a7a2..d05f4680adf041cfdeed4e9f99d73f1b20b06aa0 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef GUILE_GUILE_INTERNAL_H
+#define GUILE_GUILE_INTERNAL_H
+
 /* See README file in this directory for implementation notes, coding
    conventions, et.al.  */
 
-#ifndef GDB_GUILE_INTERNAL_H
-#define GDB_GUILE_INTERNAL_H
 
 #include "hashtab.h"
 #include "extension-priv.h"
@@ -692,4 +693,4 @@ gdbscm_wrap (Function &&func, Args &&... args)
   return result;
 }
 
-#endif /* GDB_GUILE_INTERNAL_H */
+#endif /* GUILE_GUILE_INTERNAL_H */
index 55544aba357ca96aaa9bfd397858536d176fdea7..a1d9b24875f35a8610ccaffa8278b61969926b9e 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_GUILE_H
-#define GDB_GUILE_H
+#ifndef GUILE_GUILE_H
+#define GUILE_GUILE_H
 
 #include "extension.h"
 
@@ -28,4 +28,4 @@ extern const struct extension_language_defn extension_language_guile;
 /* Command element for the 'guile' command.  */
 extern cmd_list_element *guile_cmd_element;
 
-#endif /* GDB_GUILE_H */
+#endif /* GUILE_GUILE_H */
index d6c3c2354d5cf36fcb0f9852c624247a8babac40..29ec394ae927566553d1ae5f2885f85f498e729e 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef HPPA_LINUX_OFFSETS_H
+#define HPPA_LINUX_OFFSETS_H
+
 #define PT_PSW offsetof(struct pt_regs, gr[ 0])
 #define PT_GR1 offsetof(struct pt_regs, gr[ 1])
 #define PT_GR2 offsetof(struct pt_regs, gr[ 2])
 #define PT_IIR offsetof(struct pt_regs, iir)
 #define PT_ISR offsetof(struct pt_regs, isr)
 #define PT_IOR offsetof(struct pt_regs, ior)
+
+#endif /* HPPA_LINUX_OFFSETS_H */
index 35f419aca1d1d38f51b42bea309aa0bd1cf0aa81..5855271af55bb5adf5838247673e07e5d169b4b3 100644 (file)
@@ -16,8 +16,9 @@
 
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
-#ifndef __I386_DARWIN_TDEP_H__
-#define __I386_DARWIN_TDEP_H__
+
+#ifndef I386_DARWIN_TDEP_H
+#define I386_DARWIN_TDEP_H
 
 #include "frame.h"
 
@@ -28,4 +29,4 @@ extern const int i386_darwin_thread_state_num_regs;
 
 int darwin_dwarf_signal_frame_p (struct gdbarch *, struct frame_info *);
 
-#endif /* __I386_DARWIN_TDEP_H__ */
+#endif /* I386_DARWIN_TDEP_H */
index bad97771adb456dcb3afe39808d977541ef05d5b..e6f130438cf5ffa14cbab31bd2a8bfbc343fd70f 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef LINUX_FORK_H
+#define LINUX_FORK_H
+
 struct fork_info;
 extern struct fork_info *add_fork (pid_t);
 extern struct fork_info *find_fork_pid (pid_t);
@@ -25,3 +28,5 @@ extern void linux_fork_mourn_inferior (void);
 extern void linux_fork_detach (int);
 extern int forks_exist_p (void);
 extern int linux_fork_checkpointing_p (int);
+
+#endif /* LINUX_FORK_H */
index 16f8a584bdedcb3c9d011daafcbf92db5307f8da..40e0f2cb29b4c97e60c031ed1c8a0b42a1478161 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef LINUX_NAT_H
+#define LINUX_NAT_H
+
 #include "nat/linux-nat.h"
 #include "inf-ptrace.h"
 #include "target.h"
@@ -322,3 +325,5 @@ void linux_nat_switch_fork (ptid_t new_ptid);
    Return 1 if it was retrieved successfully, 0 otherwise (*SIGINFO is
    uninitialized in such case).  */
 int linux_nat_get_siginfo (ptid_t ptid, siginfo_t *siginfo);
+
+#endif /* LINUX_NAT_H */
index 7060e55fad85ded9decae330d192dd7d263e4b29..b0bd28521557a737a57227aead7e46f22db5a08e 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef _LINUX_RECORD_H_
-#define _LINUX_RECORD_H_
+#ifndef LINUX_RECORD_H
+#define LINUX_RECORD_H
 
 struct linux_record_tdep
 {
@@ -546,4 +546,5 @@ enum gdb_syscall {
 extern int record_linux_system_call (enum gdb_syscall num, 
                                     struct regcache *regcache,
                                     struct linux_record_tdep *tdep);
-#endif /* _LINUX_RECORD_H_ */
+
+#endif /* LINUX_RECORD_H */
index 1033365cd2ae27912f03b03333e1928036fe0070..fcacc965e86bbcb178c9dc7155faa07feff833ac 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef LOCATIONS_H
-#define LOCATIONS_H 1
+#ifndef LOCATION_H
+#define LOCATION_H
 
 struct language_defn;
 struct event_location;
@@ -285,4 +285,5 @@ extern int event_location_empty_p (const struct event_location *location);
 extern void
   set_event_location_string (struct event_location *location,
                             const char *string);
-#endif /* LOCATIONS_H */
+
+#endif /* LOCATION_H */
index 19d458c246d3d3a71bc601373e7e27808dce8b28..96058bb4f483be16d36ca7e94a48885eadb61308 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef M2_LANG_H
+#define M2_LANG_H
+
 struct type_print_options;
 struct parser_state;
 
@@ -54,3 +57,4 @@ struct builtin_m2_type
 /* Return the Modula-2 type table for the specified architecture.  */
 extern const struct builtin_m2_type *builtin_m2_type (struct gdbarch *gdbarch);
 
+#endif /* M2_LANG_H */
index 3b69061a9e2237471443c21246a1ed4f30a83821..a68080d580b34594c65c786a38600d347e2c28b6 100644 (file)
@@ -18,8 +18,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef MI_CMD_BREAK_H
-#define MI_CMD_BREAK_H
+#ifndef MI_MI_CMD_BREAK_H
+#define MI_MI_CMD_BREAK_H
 
 #include "common/scoped_restore.h"
 
@@ -27,5 +27,4 @@
    catchpoint.  */
 scoped_restore_tmpl<int> setup_breakpoint_reporting (void);
 
-#endif
-
+#endif /* MI_MI_CMD_BREAK_H */
index af38363cfc4904521f73c1a06db07cbde03a6bc9..7b22ce7813470d3ab2f8b8e6d8f085f03d1752b6 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef MI_CMDS_H
-#define MI_CMDS_H
+#ifndef MI_MI_CMDS_H
+#define MI_MI_CMDS_H
 
 enum print_values {
    PRINT_NO_VALUES,
@@ -162,4 +162,4 @@ extern int mi_debug_p;
 
 extern void mi_execute_command (const char *cmd, int from_tty);
 
-#endif
+#endif /* MI_MI_CMDS_H */
index 1589f8d2d31f5b6ac3855fd169edf9dd47967740..4fb2d75c0e5f0cf192f2da3954250acac550dcd2 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef MI_COMMON_H
-#define MI_COMMON_H
+#ifndef MI_MI_COMMON_H
+#define MI_MI_COMMON_H
 
 #include "interps.h"
 
@@ -90,4 +90,4 @@ public:
   struct ui_out *cli_uiout;
 };
 
-#endif
+#endif /* MI_MI_COMMON_H */
index 90e592f4a94f180bb13529c01bf16218d104215e..e7a1c355f09fb48956fe21e3caddf1eb3dc267ee 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef MI_CONSOLE_H
-#define MI_CONSOLE_H
+#ifndef MI_MI_CONSOLE_H
+#define MI_MI_CONSOLE_H
 
 /* An output stream for MI.  Wraps a given output stream with a prefix
    and handles quoting.  This stream is locally buffered.  */
@@ -55,4 +55,4 @@ private:
   char m_quote;
 };
 
-#endif
+#endif /* MI_MI_CONSOLE_H */
index 7a6d34be0af3147f39cb0b52cac3751c073eebef..1513bb5571f46c3c1d94d79a7d4f15ab056b0a56 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef MI_GETOPT_H
-#define MI_GETOPT_H
+#ifndef MI_MI_GETOPT_H
+#define MI_MI_GETOPT_H
 
 /* The option list.  Terminated by NAME==NULL.  ARG_P that the option
    requires an argument.  INDEX is returned to identify the option.  */
@@ -74,5 +74,5 @@ extern int mi_getopt_allow_unknown (const char *prefix, int argc,
    and the appropriate error message is displayed by mi_getopt.  */
 
 extern int mi_valid_noargs (const char *prefix, int argc, char **argv);
-                               
-#endif
+
+#endif /* MI_MI_GETOPT_H */
index 2ea3e6e04f768291593e20373418d035608e41d2..b1897d9d80c96ff8ddd1328d23d027112075be99 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef MI_INTERP_H
-#define MI_INTERP_H
+#ifndef MI_MI_INTERP_H
+#define MI_MI_INTERP_H
 
 /* Output the shared object attributes to UIOUT.  */
 
 void mi_output_solib_attribs (ui_out *uiout, struct so_list *solib);
 
-#endif
+#endif /* MI_MI_INTERP_H */
index a81aa9c2de1d794599735597c7def3ebfd233689..72ddab9427c15e5555fccfd6cb4f6e24df723eee 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef MI_MAIN_H
-#define MI_MAIN_H
+#ifndef MI_MI_MAIN_H
+#define MI_MI_MAIN_H
 
 struct ui_file;
 
@@ -54,5 +54,4 @@ struct mi_suppress_notification
 };
 extern struct mi_suppress_notification mi_suppress_notification;
 
-#endif
-
+#endif /* MI_MI_MAIN_H */
index 237872ffc0cecf623a6e48d9b7a79a8188c6be68..0c74eaf80fda6ac07a36ffc4d08999ede005a615 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef MI_OUT_H
-#define MI_OUT_H 1
+#ifndef MI_MI_OUT_H
+#define MI_MI_OUT_H
 
 #include <vector>
 
@@ -95,4 +95,4 @@ int mi_version (ui_out *uiout);
 void mi_out_put (ui_out *uiout, struct ui_file *stream);
 void mi_out_rewind (ui_out *uiout);
 
-#endif /* MI_OUT_H */
+#endif /* MI_MI_OUT_H */
index d9d36fb501b5904486b288de73e771bb386012db..2262ff56f96a7c3ad86ed94c42838eac1227675e 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef MI_PARSE_H
-#define MI_PARSE_H
+#ifndef MI_MI_PARSE_H
+#define MI_MI_PARSE_H
 
 #include "common/run-time-clock.h"
 #include <chrono>
@@ -79,4 +79,4 @@ extern std::unique_ptr<struct mi_parse> mi_parse (const char *cmd,
 
 enum print_values mi_parse_print_values (const char *name);
 
-#endif
+#endif /* MI_MI_PARSE_H */
index 39d471b9fa622b6a238c6023be91d9b8f6001bec..0683b7ce65f625bbb346f1d2f71bee5e63ef9a5f 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef MIPS_LINUX_TDEP_H
+#define MIPS_LINUX_TDEP_H
+
 /* Copied from <asm/elf.h>.  */
 #define ELF_NGREG       45
 #define ELF_NFPREG      33
@@ -109,3 +112,5 @@ extern struct target_desc *tdesc_mips_linux;
 extern struct target_desc *tdesc_mips64_linux;
 extern struct target_desc *tdesc_mips_dsp_linux;
 extern struct target_desc *tdesc_mips64_dsp_linux;
+
+#endif /* MIPS_LINUX_TDEP_H */
index e9bcbe4296d79a6df9a648cf550d2f8b3c7beaae..c0b374e4ce7a8005b35d57f646281b8a367698d7 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef MN10300_TDEP_H
+#define MN10300_TDEP_H
+
 enum {
   E_D0_REGNUM = 0,
   E_D1_REGNUM = 1,
@@ -77,3 +80,5 @@ struct gdbarch_tdep
 };
 
 #define AM33_MODE(gdbarch) (gdbarch_tdep (gdbarch)->am33_mode)
+
+#endif /* MN10300_TDEP_H */
index a84058e67d6202c04558773c9c5501ef4f17c5cd..5d9c2a1c80b356e95385b42e29c8456ed785a070 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef AARCH64_LINUX_HW_POINT_H
-#define AARCH64_LINUX_HW_POINT_H 1
+#ifndef NAT_AARCH64_LINUX_HW_POINT_H
+#define NAT_AARCH64_LINUX_HW_POINT_H
 
 #include "common/break-common.h" /* For enum target_hw_bp_type.  */
 
@@ -197,4 +197,4 @@ struct aarch64_debug_reg_state *aarch64_get_debug_reg_state (pid_t pid);
 
 int aarch64_linux_region_ok_for_watchpoint (CORE_ADDR addr, int len);
 
-#endif /* AARCH64_LINUX_HW_POINT_H */
+#endif /* NAT_AARCH64_LINUX_HW_POINT_H */
index 9f4ee8dab21f2e2f2595e5dc266dc48ed8b022a4..bc3c1f7f2dbfcffc9fb29edeecae7ed90bcb7cf9 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef AARCH64_LINUX_H
-#define AARCH64_LINUX_H 1
+#ifndef NAT_AARCH64_LINUX_H
+#define NAT_AARCH64_LINUX_H
 
 #include <signal.h>
 
@@ -129,4 +129,4 @@ ps_err_e aarch64_ps_get_thread_area (struct ps_prochandle *ph,
                                       lwpid_t lwpid, int idx, void **base,
                                       int is_64bit_p);
 
-#endif /* AARCH64_LINUX_H */
+#endif /* NAT_AARCH64_LINUX_H */
index 2ccb4d4776cac5dedefa77cbc37fb114243507d3..167fc8ef3cf931c3b6325299d96542f27250a5e7 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef AARCH64_SVE_LINUX_PTRACE_H
-#define AARCH64_SVE_LINUX_PTRACE_H
+#ifndef NAT_AARCH64_SVE_LINUX_PTRACE_H
+#define NAT_AARCH64_SVE_LINUX_PTRACE_H
 
 #include <signal.h>
 #include <sys/utsname.h>
@@ -55,4 +55,4 @@ extern void
 aarch64_sve_regs_copy_from_reg_buf (const struct reg_buffer_common *reg_buf,
                                    void *buf);
 
-#endif /* aarch64-sve-linux-ptrace.h */
+#endif /* NAT_AARCH64_SVE_LINUX_PTRACE_H */
index b2aa23298d6d98326e5d63473da8f2db685d9dad..875c12cd96ccefe4cffb421713659498d737e966 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef AARCH64_SVE_LINUX_SIGCONTEXT_H
-#define AARCH64_SVE_LINUX_SIGCONTEXT_H
+#ifndef NAT_AARCH64_SVE_LINUX_SIGCONTEXT_H
+#define NAT_AARCH64_SVE_LINUX_SIGCONTEXT_H
 
 #define SVE_MAGIC      0x53564501
 
@@ -264,5 +264,4 @@ struct user_sve_header {
                  SVE_PT_SVE_OFFSET + SVE_PT_SVE_SIZE(vq, flags)        \
                : SVE_PT_FPSIMD_OFFSET + SVE_PT_FPSIMD_SIZE(vq, flags))
 
-
-#endif /* AARCH64_SVE_LINUX_SIGCONTEXT_H */
+#endif /* NAT_AARCH64_SVE_LINUX_SIGCONTEXT_H */
index 9aa6ae99928a9a833cafbe9e3adc8cd036b0a17a..50d7fdc884f7cad17a4b29e46f5d7d7489bb4369 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef AMD64_LINUX_SIGINFO_H
-#define AMD64_LINUX_SIGINFO_H 1
+#ifndef NAT_AMD64_LINUX_SIGINFO_H
+#define NAT_AMD64_LINUX_SIGINFO_H
 
 #include <signal.h>  /* For siginfo_t.  */
 
@@ -55,4 +55,4 @@ int amd64_linux_siginfo_fixup_common (siginfo_t *native, gdb_byte *inf,
                                      int direction,
                                      enum amd64_siginfo_fixup_mode mode);
 
-#endif
+#endif /* NAT_AMD64_LINUX_SIGINFO_H */
index 6d46dfcae3c530db5e7ca2912f7388e9e5e51311..1d0519fb26c36d7f6676d3b47b029c9eae76d859 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef FORK_INFERIOR_H
-#define FORK_INFERIOR_H
+#ifndef NAT_FORK_INFERIOR_H
+#define NAT_FORK_INFERIOR_H
 
 #include <string>
 
@@ -103,4 +103,4 @@ extern void trace_start_error (const char *fmt, ...)
 extern void trace_start_error_with_name (const char *string)
   ATTRIBUTE_NORETURN;
 
-#endif /* FORK_INFERIOR_H */
+#endif /* NAT_FORK_INFERIOR_H */
index 289921aaaba358cd5f307ab3b7139746fcc51762..d75c7700bfa61ea3fbb1acb835cd5f45f16ed7e3 100644 (file)
@@ -16,9 +16,9 @@
 
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
-   
-#ifndef GDB_PTRACE_H
-#define GDB_PTRACE_H
+
+#ifndef NAT_GDB_PTRACE_H
+#define NAT_GDB_PTRACE_H
 
 /* The <sys/ptrace.h> header was introduced with 4.4BSD, and provided
    the PT_* symbolic constants for the ptrace(2) request numbers.  The
@@ -150,4 +150,4 @@ extern PTRACE_TYPE_RET ptrace();
          ptrace ((PTRACE_TYPE_ARG1) request, pid, addr, data)
 #endif
 
-#endif /* gdb_ptrace.h */
+#endif /* NAT_GDB_PTRACE_H */
index 2c903bc42f2472f3bc3bde41aa8df2f8524dc2de..b55ba8dd7db460406f3089727dc8ae7eab3487b2 100644 (file)
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_THREAD_DB_H
-#define GDB_THREAD_DB_H 1
+#ifndef NAT_GDB_THREAD_DB_H
+#define NAT_GDB_THREAD_DB_H
 
 #ifdef HAVE_THREAD_DB_H
 #include <thread_db.h>
@@ -73,4 +73,4 @@ typedef td_err_e (td_thr_tlsbase_ftype) (const td_thrhandle_t *th,
 typedef const char ** (td_symbol_list_ftype) (void);
 typedef td_err_e (td_ta_delete_ftype) (td_thragent_t *);
 
-#endif /* GDB_THREAD_DB_H */
+#endif /* NAT_GDB_THREAD_DB_H */
index 97423a44ffbd43842f027039ea64a90cbcc2b9fd..598805deef2fcc52d49b1b0ed2a612f290c7aa80 100644 (file)
@@ -16,8 +16,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _THREAD_DB_H
-#define _THREAD_DB_H   1
+#ifndef NAT_GLIBC_THREAD_DB_H
+#define NAT_GLIBC_THREAD_DB_H
 
 /* This is the debugger interface for the NPTL library.  It is
    modelled closely after the interface with same names in Solaris
@@ -455,4 +455,4 @@ extern td_err_e td_thr_dbsuspend (const td_thrhandle_t *__th);
 /* Resume execution of thread TH.  */
 extern td_err_e td_thr_dbresume (const td_thrhandle_t *__th);
 
-#endif /* thread_db.h */
+#endif /* NAT_GLIBC_THREAD_DB_H */
index 2876a8eb6515b533b8515cb28f849cbe57cec2ec..df7b0d27c7e1fffa3896dce66b2f8fc3f1a20420 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef LINUX_BTRACE_H
-#define LINUX_BTRACE_H
+#ifndef NAT_LINUX_BTRACE_H
+#define NAT_LINUX_BTRACE_H
 
 #include "common/btrace-common.h"
 #include "common/vec.h"
@@ -119,4 +119,4 @@ extern enum btrace_error linux_read_btrace (struct btrace_data *btrace,
 extern const struct btrace_config *
   linux_btrace_conf (const struct btrace_target_info *);
 
-#endif /* LINUX_BTRACE_H */
+#endif /* NAT_LINUX_BTRACE_H */
index 72db9e59a979237f003a97ec7f88833aec89a69d..166b11cbdca20c9367a8e03680ab5e84d5417131 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef LINUX_NAMESPACES_H
-#define LINUX_NAMESPACES_H
+#ifndef NAT_LINUX_NAMESPACES_H
+#define NAT_LINUX_NAMESPACES_H
 
 /* Set to nonzero to enable debugging of Linux namespaces code.  */
 
@@ -73,4 +73,4 @@ extern int linux_mntns_unlink (pid_t pid, const char *filename);
 extern ssize_t linux_mntns_readlink (pid_t pid, const char *filename,
                                     char *buf, size_t bufsiz);
 
-#endif /* LINUX_NAMESPACES_H */
+#endif /* NAT_LINUX_NAMESPACES_H */
index 30f759048be812f1f0507301c2dd0226dd62596c..1e32dd9eb6b7781d358d76103a03467d0ec973e8 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef LINUX_NAT_H
-#define LINUX_NAT_H
+#ifndef NAT_LINUX_NAT_H
+#define NAT_LINUX_NAT_H
 
 #include "target/waitstatus.h"
 
@@ -90,4 +90,4 @@ extern void linux_stop_lwp (struct lwp_info *lwp);
 
 extern int lwp_is_stepping (struct lwp_info *lwp);
 
-#endif /* LINUX_NAT_H */
+#endif /* NAT_LINUX_NAT_H */
index 91e94d4f01cdcfd726f5bdddf2371e922936eb51..44cb63cb4fb30e6e982d6d301845e705e53ea950 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef COMMON_LINUX_OSDATA_H
-#define COMMON_LINUX_OSDATA_H
+#ifndef NAT_LINUX_OSDATA_H
+#define NAT_LINUX_OSDATA_H
 
 extern int linux_common_core_of_thread (ptid_t ptid);
 extern LONGEST linux_common_xfer_osdata (const char *annex, gdb_byte *readbuf,
                                         ULONGEST offset, ULONGEST len);
 
-#endif
+#endif /* NAT_LINUX_OSDATA_H */
index ecae5aa19a4320b077fabc7c2f4526c27169743b..1bc66212152ca95dd2f12a08d02def384b7411c3 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef COMMON_LINUX_PROCFS_H
-#define COMMON_LINUX_PROCFS_H
+#ifndef NAT_LINUX_PROCFS_H
+#define NAT_LINUX_PROCFS_H
 
 #include <unistd.h>
 
@@ -85,4 +85,4 @@ extern char *linux_proc_pid_to_exec_file (int pid);
 
 extern void linux_proc_init_warnings ();
 
-#endif /* COMMON_LINUX_PROCFS_H */
+#endif /* NAT_LINUX_PROCFS_H */
index f18f5a5d8ae7e22d7121fbd3391f4d2eb4949171..cfb12178a423b0c57257d002e7dacf0dc6d17a0a 100644 (file)
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef COMMON_LINUX_PTRACE_H
-#define COMMON_LINUX_PTRACE_H
+#ifndef NAT_LINUX_PTRACE_H
+#define NAT_LINUX_PTRACE_H
 
 struct buffer;
 
@@ -196,4 +196,4 @@ extern int linux_ptrace_get_extended_event (int wstat);
 extern int linux_is_extended_waitstatus (int wstat);
 extern int linux_wstatus_maybe_breakpoint (int wstat);
 
-#endif /* COMMON_LINUX_PTRACE_H */
+#endif /* NAT_LINUX_PTRACE_H */
index df998a95880c902efc9dc8e7fba8fecf2a5490fb..cdec1bff6f1ef68e40f6317a94fd339bb7e823d2 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef LINUX_WAITPID_H
-#define LINUX_WAITPID_H
+#ifndef NAT_LINUX_WAITPID_H
+#define NAT_LINUX_WAITPID_H
 
 /* Wrapper function for waitpid which handles EINTR.  */
 extern int my_waitpid (int pid, int *status, int flags);
@@ -27,4 +27,4 @@ extern int my_waitpid (int pid, int *status, int flags);
    messages only.  */
 extern char *status_to_str (int status);
 
-#endif /* LINUX_WAITPID_H */
+#endif /* NAT_LINUX_WAITPID_H */
index 222b5cfd71bc25258e0cc69e5af43821958276c0..35e8d9d461efe2f7dbd863a419c53dc6ec42cd59 100644 (file)
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef MIPS_LINUX_WATCH_H
-#define MIPS_LINUX_WATCH_H 1
+#ifndef NAT_MIPS_LINUX_WATCH_H
+#define NAT_MIPS_LINUX_WATCH_H
 
 #include <asm/ptrace.h>
 #include "common/break-common.h"
@@ -115,4 +115,5 @@ uint32_t mips_linux_watch_type_to_irw (enum target_hw_bp_type type);
 int mips_linux_read_watch_registers (long lwpid,
                                     struct pt_watch_regs *watch_readback,
                                     int *watch_readback_valid, int force);
-#endif
+
+#endif /* NAT_MIPS_LINUX_WATCH_H */
index 059b99465baad9952060030fb6a40a0755bede6b..f1561b3b357675e62d517c26735a123342307340 100644 (file)
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef PPC_LINUX_H
-#define PPC_LINUX_H 1
+#ifndef NAT_PPC_LINUX_H
+#define NAT_PPC_LINUX_H
 
 #include <asm/ptrace.h>
 #include <asm/cputable.h>
 /* Return the wordsize of the target, either 4 or 8 bytes.  */
 int ppc_linux_target_wordsize (int tid);
 
-#endif
+#endif /* NAT_PPC_LINUX_H */
index fbfb1848168d79b9878f304e7e74dd231c99380c..2a143278934632566543458735ba7f105d9aef8b 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef X86_CPUID_COMMON_H
-#define X86_CPUID_COMMON_H
+#ifndef NAT_X86_CPUID_H
+#define NAT_X86_CPUID_H
 
 /* Always include the header for the cpu bit defines.  */
 #include "x86-gcc-cpuid.h"
@@ -60,4 +60,4 @@ x86_cpuid (unsigned int __level,
 
 #endif /* i386 && x86_64 */
 
-#endif /* X86_CPUID_COMMON_H */
+#endif /* NAT_X86_CPUID_H */
index 67384a2e449a1bd35394cd22ce4668f4aae30a31..e8a2e0099e864b911c33928379ec133fc9ac7de9 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef NAT_X86_DREGS_H
+#define NAT_X86_DREGS_H
+
 /* Support for hardware watchpoints and breakpoints using the x86
    debug registers.
 
@@ -29,8 +32,6 @@
    counts, and allow to watch regions up to 16 bytes long
    (32 bytes on 64 bit hosts).  */
 
-#ifndef X86_DREGS_H
-#define X86_DREGS_H 1
 
 #include "common/break-common.h" /* target_hw_bp_type */
 
@@ -132,4 +133,4 @@ extern int x86_dr_stopped_by_watchpoint (struct x86_debug_reg_state *state);
    triggered.  Otherwise return false.  */
 extern int x86_dr_stopped_by_hw_breakpoint (struct x86_debug_reg_state *state);
 
-#endif /* X86_DREGS_H */
+#endif /* NAT_X86_DREGS_H */
index ec71c3f40489c9b865e0f4dd299ed29c6e8d0d0b..21cfa1979712c5f369f3da7132cf8cd7934d2714 100644 (file)
@@ -2,6 +2,10 @@
  * Helper cpuid.h file copied from gcc-6.0.0.  Code in gdb should not
  * include this directly, but pull in x86-cpuid.h and use that func.
  */
+
+#ifndef NAT_X86_GCC_CPUID_H
+#define NAT_X86_GCC_CPUID_H
+
 /*
  * Copyright (C) 2007-2019 Free Software Foundation, Inc.
  *
@@ -268,3 +272,5 @@ __get_cpuid_count (unsigned int __leaf, unsigned int __subleaf,
   __cpuid_count (__leaf, __subleaf, *__eax, *__ebx, *__ecx, *__edx);
   return 1;
 }
+
+#endif /* NAT_X86_GCC_CPUID_H */
index 056f936635059052660967aaff8632710413291b..e6086977f3cf6cdb86800f546a95b8820ba2cff9 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef X86_LINUX_DREGS_H
-#define X86_LINUX_DREGS_H
+#ifndef NAT_X86_LINUX_DREGS_H
+#define NAT_X86_LINUX_DREGS_H
 
 /* Return the address stored in the current inferior's debug register
    REGNUM.  */
@@ -50,4 +50,4 @@ extern unsigned long x86_linux_dr_get_status (void);
 
 extern void x86_linux_update_debug_registers (struct lwp_info *lwp);
 
-#endif /* X86_LINUX_DREGS_H */
+#endif /* NAT_X86_LINUX_DREGS_H */
index 0b13bb76ec20230fc5606a0d447e7e353174fb83..7d4fbbca7a255dbdf137e9eccff599df70ae8b06 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef X86_LINUX_H
-#define X86_LINUX_H
+#ifndef NAT_X86_LINUX_H
+#define NAT_X86_LINUX_H
 
 #include "nat/linux-nat.h"
 
@@ -47,4 +47,4 @@ extern void x86_linux_delete_thread (struct arch_lwp_info *arch_lwp);
 
 extern void x86_linux_prepare_to_resume (struct lwp_info *lwp);
 
-#endif /* X86_LINUX_H */
+#endif /* NAT_X86_LINUX_H */
index fe8caa14cf2b2daa217b0d2053aa508eadd62923..5127ab3f9ed64bc219da4f2fc71d5d567c0f1a72 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef _NTO_TDEP_H
-#define _NTO_TDEP_H
+#ifndef NTO_TDEP_H
+#define NTO_TDEP_H
 
 #include "solist.h"
 #include "osabi.h"
@@ -191,4 +191,4 @@ LONGEST nto_read_auxv_from_initial_stack (CORE_ADDR inital_stack,
 
 struct nto_inferior_data *nto_inferior_data (struct inferior *inf);
 
-#endif
+#endif /* NTO_TDEP_H */
index fbbabaccb044e032cf6684e95487a4ce0c65f16b..999ecfbc3535aacd1f7729dc50e2623c3a367569 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#if !defined (GDB_OBSERVER_H)
-#define GDB_OBSERVER_H
+#ifndef OBSERVABLE_H
+#define OBSERVABLE_H
 
 #include "common/observable.h"
 
@@ -232,4 +232,4 @@ extern observable<user_selected_what> user_selected_context_changed;
 
 } /* namespace gdb */
 
-#endif /* GDB_OBSERVER_H */
+#endif /* OBSERVABLE_H */
index 75a81e5c2ba3baebb57e007032ef6dc34577723e..e66c4a16c5f0b0d26c67c7dbc85edde0f24a6250 100644 (file)
@@ -16,9 +16,8 @@
    You should have received a copy of the GNU General Public License along
    With this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-
-#ifndef OR1K_TDEP__H
-#define OR1K_TDEP__H
+#ifndef OR1K_TDEP_H
+#define OR1K_TDEP_H
 
 #ifndef TARGET_OR1K
 #define TARGET_OR1K
@@ -53,4 +52,4 @@
 #define OR1K_NUM_TAP_RECORDS         8
 #define OR1K_FRAME_RED_ZONE_SIZE     2536
 
-#endif /* OR1K_TDEP__H */
+#endif /* OR1K_TDEP_H */
index 4f97ab69f7368249df1db77ca2c67fa9230f7b16..7d1d285bd9431ea431a9554e852931ae53928a17 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef P_LANG_H
+#define P_LANG_H
+
 /* This file is derived from c-lang.h */
 
 struct value;
@@ -80,3 +83,5 @@ extern void pascal_object_print_value_fields (struct type *, const gdb_byte *,
 extern int pascal_object_is_vtbl_ptr_type (struct type *);
 
 extern int pascal_object_is_vtbl_member (struct type *);
+
+#endif /* P_LANG_H */
index 7cd83720bd7c2ec61cc8d57e90fd21e568e0e86a..83514738dc46b2d759590cb704737fd8a2c5c631 100644 (file)
@@ -16,6 +16,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef PROC_UTILS_H
+#define PROC_UTILS_H
+
 /* From proc-why.c */
 
 /*
@@ -113,3 +116,5 @@ extern  void  procfs_note      (const char *, const char *, int);
 /* Define the type (and more importantly the width) of the control
    word used to write to the /proc/PID/ctl file.  */
 typedef long procfs_ctl_t;
+
+#endif /* PROC_UTILS_H */
index 8bbc1e5a9210a0f9c71aa937d50aad5c6f823573..d92a5e8603c3ae8353ba46f40e86131b6827ba57 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef PROCFS_H
+#define PROCFS_H
+
 /* Return a ptid for which we guarantee we will be able to find a
    'live' procinfo.  */
 
@@ -28,3 +31,4 @@ struct ssd;
 extern struct ssd *procfs_find_LDT_entry (ptid_t);
 #endif
 
+#endif /* PROCFS_H */
index 07b99d26857131e47a33620dd2940d83ba92296d..fb8057c2b03d655a8d12a984170feddfac2c9db5 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_PY_EVENT_H
-#define GDB_PY_EVENT_H
+#ifndef PYTHON_PY_EVENT_H
+#define PYTHON_PY_EVENT_H
 
 #include "py-events.h"
 #include "command.h"
@@ -83,4 +83,4 @@ extern int evpy_add_attribute (PyObject *event,
 int gdbpy_initialize_event_generic (PyTypeObject *type, const char *name)
   CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION;
 
-#endif /* GDB_PY_EVENT_H */
+#endif /* PYTHON_PY_EVENT_H */
index a5501c3ff4756733e69a8d019b504cc69ebb84d7..7d357ad3ca35396d720ecd799109c8b2495f752d 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_PY_EVENTS_H
-#define GDB_PY_EVENTS_H
+#ifndef PYTHON_PY_EVENTS_H
+#define PYTHON_PY_EVENTS_H
 
 #include "command.h"
 #include "python-internal.h"
@@ -54,4 +54,4 @@ extern events_object gdb_py_events;
 extern eventregistry_object *create_eventregistry_object (void);
 extern int evregpy_no_listeners_p (eventregistry_object *registry);
 
-#endif /* GDB_PY_EVENTS_H */
+#endif /* PYTHON_PY_EVENTS_H */
index eb19208c123442e81895ce8dbba6d39eef9c7f6c..d0d5306b0a770ed67b66a5e27199586e6b0bfabc 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_PY_INSTRUCTION_H
-#define GDB_PY_INSTRUCTION_H
+#ifndef PYTHON_PY_INSTRUCTION_H
+#define PYTHON_PY_INSTRUCTION_H
 
 #include "python-internal.h"
 
@@ -27,4 +27,4 @@
    (str) and "size" (int) that must be overriden by sub classes.  */
 extern PyTypeObject py_insn_type;
 
-#endif /* GDB_PY_INSTRUCTION_H */
+#endif /* PYTHON_PY_INSTRUCTION_H */
index d6d4a744f9e5e03d77bd01c39c9c585df0c2a7ed..1d8560dace3c1eb1941e82af0250458256d4e85d 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_PY_RECORD_BTRACE_H
-#define GDB_PY_RECORD_BTRACE_H
+#ifndef PYTHON_PY_RECORD_BTRACE_H
+#define PYTHON_PY_RECORD_BTRACE_H
 
 #include "python-internal.h"
 
@@ -88,4 +88,4 @@ extern PyObject *recpy_bt_func_prev (PyObject *self, void *closure);
 /* Implementation of RecordFunctionSegment.next [RecordFunctionSegment].  */
 extern PyObject *recpy_bt_func_next (PyObject *self, void *closure);
 
-#endif /* GDB_PY_RECORD_BTRACE_H */
+#endif /* PYTHON_PY_RECORD_BTRACE_H */
index d6529df735e6879e4298f0de5d643ffe6652ded4..e00244146ed6ec97cb713b04d0c102e81964435a 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_PY_RECORD_FULL_H
-#define GDB_PY_RECORD_FULL_H
+#ifndef PYTHON_PY_RECORD_FULL_H
+#define PYTHON_PY_RECORD_FULL_H
 
 #include "python-internal.h"
 
@@ -28,4 +28,4 @@ extern PyObject *recpy_full_method (PyObject *self, void *value);
 /* Implementation of record.format [str].  */
 extern PyObject *recpy_full_format (PyObject *self, void *value);
 
-#endif /* GDB_PY_RECORD_FULL_H */
+#endif /* PYTHON_PY_RECORD_FULL_H */
index 5d838fb4c86862ce8024e2f6cccf2c11c561a485..74da1bdc4d6ca667eb4a1a374fbf8f63ddb96764 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_PY_RECORD_H
-#define GDB_PY_RECORD_H
+#ifndef PYTHON_PY_RECORD_H
+#define PYTHON_PY_RECORD_H
 
 #include "inferior.h"
 #include "python-internal.h"
@@ -71,4 +71,4 @@ extern PyObject *recpy_func_new (thread_info *thread, enum record_method method,
 extern PyObject *recpy_gap_new (int reason_code, const char *reason_string,
                                Py_ssize_t number);
 
-#endif /* GDB_PY_RECORD_H */
+#endif /* PYTHON_PY_RECORD_H */
index bf7a8271e7abd7a34ac923a4c20fddc3e4c48a75..15280f6fbf55ad856de4b58363089be6997bad29 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_PYTHON_REF_H
-#define GDB_PYTHON_REF_H
+#ifndef PYTHON_PY_REF_H
+#define PYTHON_PY_REF_H
 
 #include "common/gdb_ref_ptr.h"
 
@@ -42,4 +42,4 @@ struct gdbpy_ref_policy
 template<typename T = PyObject> using gdbpy_ref
   = gdb::ref_ptr<T, gdbpy_ref_policy<T>>;
 
-#endif /* GDB_PYTHON_REF_H */
+#endif /* PYTHON_PY_REF_H */
index f2dffbe6f8d38540d41549decc331492a97b03cc..c6b7a7b32b792149c2fb4c7492ebb5d5938d5e66 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_PY_STOPEVENT_H
-#define GDB_PY_STOPEVENT_H
+#ifndef PYTHON_PY_STOPEVENT_H
+#define PYTHON_PY_STOPEVENT_H
 
 #include "py-event.h"
 
@@ -33,4 +33,4 @@ extern gdbpy_ref<> create_breakpoint_event_object (PyObject *breakpoint_list,
 
 extern gdbpy_ref<> create_signal_event_object (enum gdb_signal stop_signal);
 
-#endif /* GDB_PY_STOPEVENT_H */
+#endif /* PYTHON_PY_STOPEVENT_H */
index b157d22aa1f59b12359b7cab2e448d527b2e97e4..3cb9ebc1eecb4ccb10af791627edd6f4cb3ee022 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_PYTHON_INTERNAL_H
-#define GDB_PYTHON_INTERNAL_H
+#ifndef PYTHON_PYTHON_INTERNAL_H
+#define PYTHON_PYTHON_INTERNAL_H
 
 #include "extension.h"
 #include "extension-priv.h"
@@ -801,4 +801,4 @@ struct varobj;
 struct varobj_iter *py_varobj_get_iterator (struct varobj *var,
                                            PyObject *printer);
 
-#endif /* GDB_PYTHON_INTERNAL_H */
+#endif /* PYTHON_PYTHON_INTERNAL_H */
index 2c02b95ab9918f7bd2f07e4208ea74e40ee8a2f3..10cd90d00e1759d5d699c31b5ac7b7e503d03fbb 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_PYTHON_H
-#define GDB_PYTHON_H
+#ifndef PYTHON_PYTHON_H
+#define PYTHON_PYTHON_H
 
 #include "extension.h"
 
@@ -28,4 +28,4 @@ extern const struct extension_language_defn extension_language_python;
 /* Command element for the 'python' command.  */
 extern cmd_list_element *python_cmd_element;
 
-#endif /* GDB_PYTHON_H */
+#endif /* PYTHON_PYTHON_H */
index a97d92f48fb9ef11df3dd3c169603da289373e6e..03f96e8ab78e540b4649687dec083e2f59b291c9 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef _RECORD_H_
-#define _RECORD_H_
+#ifndef RECORD_H
+#define RECORD_H
 
 #include "target/waitstatus.h" /* For enum target_stop_reason.  */
 #include "common/enum-flags.h"
@@ -113,4 +113,4 @@ extern void record_start (const char *method, const char *format,
 /* Stop recording.  Throw on failure.  */
 extern void record_stop (int from_tty);
 
-#endif /* _RECORD_H_ */
+#endif /* RECORD_H */
index 8729374c14ab3fdc6813b9cba843a145ad668526..df9c5e402825a9c85bb173659181f37a752d7840 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef REGDEF_H
-#define REGDEF_H
+#ifndef REGFORMATS_REGDEF_H
+#define REGFORMATS_REGDEF_H
 
 struct reg
 {
@@ -60,4 +60,4 @@ struct reg
   }
 };
 
-#endif /* REGDEF_H */
+#endif /* REGFORMATS_REGDEF_H */
index 367030675a9894b5a1c32acd53098dcf4d77786b..d1a5a04f472aed9d1a5b9925480c700f51951989 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef RISCV_FBSD_TDEP_H
+#define RISCV_FBSD_TDEP_H
+
 #include "regset.h"
 
 /* The general-purpose regset consists of 31 X registers, EPC, and
@@ -31,3 +34,5 @@
 
 extern const struct regset riscv_fbsd_gregset;
 extern const struct regset riscv_fbsd_fpregset;
+
+#endif /* RISCV_FBSD_TDEP_H */
index d31d467851d440d2a0c008a444f3206d1f04178c..fb04d650c68f6682b2ec2e6a543f855f8b33383f 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef RS6000_TDEP_H
+#define RS6000_TDEP_H
+
 /* Minimum possible text address in AIX.  */
 #define AIX_TEXT_SEGMENT_BASE 0x10000000
 
+#endif /* RS6000_TDEP_H */
index b872aadb878aa3c7392efbeb8d7cdc220799a9a6..fc989bc89946525764a95bf22e9b16819ba99a6f 100644 (file)
@@ -16,6 +16,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef STABSREAD_H
+#define STABSREAD_H
+
 struct objfile;
 enum language;
 
@@ -219,3 +222,5 @@ extern void init_header_files (void);
    to.  Get these symbols from the minimal symbol table.  */
 
 extern void scan_file_globals (struct objfile *objfile);
+
+#endif /* STABSREAD_H */
index 59c13aecf2ffd7c4df56c289b3d2765cf04bd894..c809daafebd851e96e4ac3a8b5e9e88fcf14e8c8 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TYPED_FLOAT_H
-#define TYPED_FLOAT_H
+#ifndef TARGET_FLOAT_H
+#define TARGET_FLOAT_H
 
 #include "expression.h"
 
@@ -58,4 +58,4 @@ extern void target_float_binop (enum exp_opcode opcode,
 extern int target_float_compare (const gdb_byte *x, const struct type *type_x,
                                 const gdb_byte *y, const struct type *type_y);
 
-#endif
+#endif /* TARGET_FLOAT_H */
index 4834c0d82d8fb90a0e05747b841afd4befacc71f..50219d6ed71c1021e2f68dfdb14a197b3bc2ab49 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef RESUME_H
-#define RESUME_H
+#ifndef TARGET_RESUME_H
+#define TARGET_RESUME_H
 
 /* Ways to "resume" a thread.  */
 
@@ -34,4 +34,4 @@ enum resume_kind
   resume_stop
 };
 
-#endif /* RESUME_H */
+#endif /* TARGET_RESUME_H */
index f7b8ce9dc620cb2f4feeacdd3eedb4c9d053e5b0..3e90839fa9b75df7dff570d00bb98f103aaec1ac 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TARGET_COMMON_H
-#define TARGET_COMMON_H
+#ifndef TARGET_TARGET_H
+#define TARGET_TARGET_H
 
 #include "target/waitstatus.h"
 /* This header is a stopgap until more code is shared.  */
@@ -209,4 +209,4 @@ private:
   static target_terminal_state m_terminal_state;
 };
 
-#endif /* TARGET_COMMON_H */
+#endif /* TARGET_TARGET_H */
index 47f294d8d7b707f5298e2f37459a01d1c2271936..fed34b98a9aa6c626349478473c8e94578cd145b 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef WAIT_H
-#define WAIT_H
+#ifndef TARGET_WAIT_H
+#define TARGET_WAIT_H
 
 /* Options that can be passed to target_wait.  */
 
@@ -27,4 +27,4 @@
    event.  */
 #define TARGET_WNOHANG 1
 
-#endif /* WAIT_H */
+#endif /* TARGET_WAIT_H */
index 5563b0b6495d75c55aea75fc0865839afb97279f..8f48599e9e8c3d0ee9847ba475267a185cc62fd6 100644 (file)
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef WAITSTATUS_H
-#define WAITSTATUS_H
+#ifndef TARGET_WAITSTATUS_H
+#define TARGET_WAITSTATUS_H
 
 #include "common/gdb_signals.h"
 
@@ -148,4 +148,4 @@ enum target_stop_reason
 /* Return a pretty printed form of target_waitstatus.  */
 std::string target_waitstatus_to_string (const struct target_waitstatus *);
 
-#endif /* WAITSTATUS_H */
+#endif /* TARGET_WAITSTATUS_H */
index 3854f47f7d88f4a44146ec18458475cda638d162..f6f76be8e9b47d51f3195b4bab0a2b4f8df9d2ba 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef TIC6X_TDEP_H
+#define TIC6X_TDEP_H
+
 enum
 {
   TIC6X_A4_REGNUM = 4,
@@ -51,3 +54,5 @@ struct gdbarch_tdep
 
   int has_gp; /* Has general purpose registers A16 - A31 and B16 - B31.  */
 };
+
+#endif /* TIC6X_TDEP_H */
index d9834586313ee56f8b1bc27656851ef26f308385..80f69caf61bd4a1ae048ad89fb2bbba7a9e83b66 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_COMMAND_H
-#define TUI_COMMAND_H
+#ifndef TUI_TUI_COMMAND_H
+#define TUI_TUI_COMMAND_H
 
 extern unsigned int tui_dispatch_ctrl_char (unsigned int);
 
 /* Refresh the command window.  */
 extern void tui_refresh_cmd_win (void);
 
-#endif
+#endif /* TUI_TUI_COMMAND_H */
index 06542411e0a1c673546b881be527ec213d655a4f..acefb23bb6d79e4d883f20ae16c287d2384b3fcc 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_DATA_H
-#define TUI_DATA_H
+#ifndef TUI_TUI_DATA_H
+#define TUI_TUI_DATA_H
 
 #include "tui/tui.h"   /* For enum tui_win_type.  */
 #include "gdb_curses.h"        /* For WINDOW.  */
@@ -344,4 +344,4 @@ extern void tui_add_to_source_windows (struct tui_win_info *);
 
 extern unsigned int tui_tab_width;
 
-#endif /* TUI_DATA_H */
+#endif /* TUI_TUI_DATA_H */
index d974303803da30165c508e14542d3782bffd5506..b7325917435a68bcaf4b7d98a4cc973104b5b3a0 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_DISASM_H
-#define TUI_DISASM_H
+#ifndef TUI_TUI_DISASM_H
+#define TUI_TUI_DISASM_H
 
 #include "tui/tui.h"           /* For enum tui_status.  */
 #include "tui/tui-data.h"      /* For enum tui_scroll_direction.  */
@@ -32,4 +32,4 @@ extern void tui_vertical_disassem_scroll (enum tui_scroll_direction,
                                          int);
 extern void tui_get_begin_asm_address (struct gdbarch **, CORE_ADDR *);
 
-#endif
+#endif /* TUI_TUI_DISASM_H */
index d7d733319cfa895d4e91d7ad9d743db069bdb456..44d66b56d8173fd5d5e409ff84d2fd5728ded087 100644 (file)
@@ -16,8 +16,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_FILE_H
-#define TUI_FILE_H
+#ifndef TUI_TUI_FILE_H
+#define TUI_TUI_FILE_H
 
 #include "ui-file.h"
 
@@ -33,4 +33,4 @@ public:
   void flush () override;
 };
 
-#endif
+#endif /* TUI_TUI_FILE_H */
index ea5857119e4a5415aed779617400a8ba46e452c3..e7e62d76aed3e899715e0a6f78ba0a82eb16c47b 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_HOOKS_H
-#define TUI_HOOKS_H
+#ifndef TUI_TUI_HOOKS_H
+#define TUI_TUI_HOOKS_H
 
 extern void tui_install_hooks (void);
 extern void tui_remove_hooks (void);
 
-#endif
+#endif /* TUI_TUI_HOOKS_H */
index 698b5387fb9f5b2cbab564d36059ec3a4199ae1d..8165b5bdfc189f4f2205e83a9a788e8a6fd61ef5 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_IO_H
-#define TUI_IO_H
+#ifndef TUI_TUI_IO_H
+#define TUI_TUI_IO_H
 
 #include "gdb_curses.h"
 
@@ -51,4 +51,4 @@ extern char *tui_expand_tabs (const char *, int);
 extern struct ui_out *tui_out;
 extern cli_ui_out *tui_old_uiout;
 
-#endif
+#endif /* TUI_TUI_IO_H */
index 362d7de355eedca5d5455aae013d00f277b7a62b..bc21d2999e43c9eedf6b32fbfe6d6b75af243750 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_LAYOUT_H
-#define TUI_LAYOUT_H
+#ifndef TUI_TUI_LAYOUT_H
+#define TUI_TUI_LAYOUT_H
 
 #include "tui/tui.h"
 #include "tui/tui-data.h"
@@ -32,4 +32,4 @@ extern int tui_default_win_viewport_height (enum tui_win_type,
                                            enum tui_layout_type);
 extern enum tui_status tui_set_layout (enum tui_layout_type);
 
-#endif /*TUI_LAYOUT_H */
+#endif /* TUI_TUI_LAYOUT_H */
index ffda6ccdeed0339fbf3dd6f554dbd637d7086764..10311c925566b5177588e7e1ad0dd43b0aa2956b 100644 (file)
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_OUT_H
-#define TUI_OUT_H
+#ifndef TUI_TUI_OUT_H
+#define TUI_TUI_OUT_H
 
 #include "cli-out.h"
 
@@ -45,4 +45,4 @@ private:
 
 extern tui_ui_out *tui_out_new (struct ui_file *stream);
 
-#endif
+#endif /* TUI_TUI_OUT_H */
index 6bd6a63ed2eb727ed771019c0dbaa7b1507f7742..54b1b0870f7928df58be8c24efc74d2e7a2d042c 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_REGS_H
-#define TUI_REGS_H
+#ifndef TUI_TUI_REGS_H
+#define TUI_TUI_REGS_H
 
 #include "tui/tui-data.h"  /* For struct tui_register_display_type.  */
 
@@ -33,4 +33,4 @@ extern int tui_first_reg_element_inline (int);
 extern int tui_line_from_reg_element_no (int);
 extern int tui_first_reg_element_no_inline (int lineno);
 
-#endif
+#endif /* TUI_TUI_REGS_H */
index 7499534d51b945a598e3240f51c39738b047a0ff..40fdac5c38191dad49e96bcb724dc59be20f8a9d 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_SOURCE_H
-#define TUI_SOURCE_H
+#ifndef TUI_TUI_SOURCE_H
+#define TUI_TUI_SOURCE_H
 
 #include "tui/tui-data.h"
 
@@ -39,4 +39,4 @@ extern int tui_source_is_displayed (const char *);
 extern void tui_vertical_source_scroll (enum tui_scroll_direction,
                                        int);
 
-#endif
+#endif /* TUI_TUI_SOURCE_H */
index c8728feb34d983d751544eaac28fcc757e17558f..0a88f49932e9d97b2258dbb93e4e54bfb4d478bf 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_STACK_H
-#define TUI_STACK_H
+#ifndef TUI_TUI_STACK_H
+#define TUI_TUI_STACK_H
 
 struct frame_info;
 
@@ -28,4 +28,4 @@ extern void tui_update_locator_fullname (const char *);
 extern void tui_show_locator_content (void);
 extern int tui_show_frame_info (struct frame_info *);
 
-#endif
+#endif /* TUI_TUI_STACK_H */
index dec25d5493fa00be096fdf08573e9f036e1f4c48..98c497eb07d6b783ed7cf1aec7eb2655c9488517 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_WIN_H
-#define TUI_WIN_H
+#ifndef TUI_TUI_WIN_H
+#define TUI_TUI_WIN_H
 
 #include "tui/tui-data.h"
 
@@ -59,4 +59,4 @@ struct cmd_list_element **tui_get_cmd_list (void);
 /* Set a TUI variable.  */
 void tui_set_var_cmd (char *, int, struct cmd_list_element *);
 
-#endif
+#endif /* TUI_TUI_WIN_H */
index bc17754e1bcb4abf538341e9bd4be59e57e03d86..63fca0dd287dddadca094f27269f67e541290fac 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_WINDATA_H
-#define TUI_WINDATA_H
+#ifndef TUI_TUI_WINDATA_H
+#define TUI_TUI_WINDATA_H
 
 #include "tui/tui-data.h"
 
@@ -36,4 +36,4 @@ extern void tui_display_data_from (int, int);
 extern void tui_vertical_data_scroll (enum tui_scroll_direction, 
                                      int);
 
-#endif
+#endif /* TUI_TUI_WINDATA_H */
index 769573393d67f12c0a829276cad17721dbee3792..73b10d2131196709ad2925563dcaffebf02b275e 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_WINGENERAL_H
-#define TUI_WINGENERAL_H
+#ifndef TUI_TUI_WINGENERAL_H
+#define TUI_TUI_WINGENERAL_H
 
 #include "gdb_curses.h"
 
@@ -41,4 +41,4 @@ extern void tui_refresh_all (struct tui_win_info **);
 extern void tui_delete_win (WINDOW *window);
 extern void tui_refresh_win (struct tui_gen_win_info *);
 
-#endif
+#endif /* TUI_TUI_WINGENERAL_H */
index ca46858f12db06022ffe508cc47cc2d1a4ddbb19..db33a4f73ef6f9bdabfdab586395a631a94eab24 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_SOURCEWIN_H
-#define TUI_SOURCEWIN_H
+#ifndef TUI_TUI_WINSOURCE_H
+#define TUI_TUI_WINSOURCE_H
 
 #include "tui/tui-data.h"
 
@@ -76,4 +76,4 @@ extern int tui_addr_is_displayed (CORE_ADDR,
 /* Constant definitions. */
 #define SCROLL_THRESHOLD 2     /* Threshold for lazy scroll.  */
 
-#endif
+#endif /* TUI_TUI_WINSOURCE_H */
index 95dd182cc7d2bd984fc9d2f0054774f62efe8ad9..5b8be0cd4814a1e83bd88ede1ac20955aa16dc2f 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef TUI_H
-#define TUI_H
+#ifndef TUI_TUI_H
+#define TUI_TUI_H
 
 struct ui_file;
 
@@ -96,4 +96,4 @@ extern void tui_show_source (const char *fullname, int line);
 /* tui-layout.c */
 extern enum tui_status tui_set_layout_by_name (const char *);
 
-#endif
+#endif /* TUI_TUI_H */
index 5350bc54e481fa8d16a7a34ca633f93f6c36a77b..bc613af63c4711c039c77f56f3139a1692ad3c5b 100644 (file)
@@ -14,6 +14,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef VAROBJ_ITER_H
+#define VAROBJ_ITER_H
+
 /* A node or item of varobj, composed of the name and the value.  */
 
 typedef struct varobj_item
@@ -70,3 +73,5 @@ struct varobj_iter_ops
          xfree (ITER);                \
        }                                      \
     } while (0)
+
+#endif /* VAROBJ_ITER_H */
index 26cf4e42bb062a8ee5324a1af07a547651426a93..a110a81d6950bba3f4041f028a95185bff76cb7f 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef XCOFF_READ_H
-#define XCOFF_READ_H
+#ifndef XCOFFREAD_H
+#define XCOFFREAD_H
 
 extern CORE_ADDR xcoff_get_toc_offset (struct objfile *);
 
 extern int xcoff_get_n_import_files (bfd *abfd);
 
-#endif /* xcoffread.h */
+#endif /* XCOFFREAD_H */
index 389f3cb51ed766ff086796b5783e1167e00a454f..5d24a591bc359b9776f2ab7d72e3389835198078 100644 (file)
@@ -17,6 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef XTENSA_TDEP_H
+#define XTENSA_TDEP_H
 
 #include "arch/xtensa.h"
 
@@ -291,3 +293,4 @@ struct gdbarch_tdep
    data structure to their corresponding register in the AR register 
    file (see xtensa-tdep.c).  */
 
+#endif /* XTENSA_TDEP_H */
index 494c608362486b374db33ba7da5b2826be277468..579b7d2aee6a9d30ff4eb388ad9cbb5c946c9289 100644 (file)
@@ -15,6 +15,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef YY_REMAP_H
+#define YY_REMAP_H
+
 /* Remap normal yacc parser interface names (yyparse, yylex, yyerror,
    etc), as well as gratuitiously global symbol names, so we can have
    multiple yacc generated parsers in gdb.  Note that these are only
@@ -90,3 +93,5 @@
 #endif
 
 #define YYFPRINTF parser_fprintf
+
+#endif /* YY_REMAP_H */