+2019-07-09 Tom Tromey <tom@tromey.com>
+
+ * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
+ * configure: Rebuild.
+ * configure.ac: Change common to gdbsupport.
+ * gdbsupport: Rename from common.
+ * acinclude.m4: Change common to gdbsupport.
+ * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
+ (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
+ gdbsupport.
+ * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
+ amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
+ amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
+ amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
+ amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
+ arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
+ arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
+ arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
+ arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
+ auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
+ btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
+ charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
+ cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
+ coff-pe-read.c, command.h, compile/compile-c-support.c,
+ compile/compile-c.h, compile/compile-cplus-symbols.c,
+ compile/compile-cplus-types.c, compile/compile-cplus.h,
+ compile/compile-loc2c.c, compile/compile.c, completer.c,
+ completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
+ cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
+ darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
+ disasm.h, dtrace-probe.c, dwarf-index-cache.c,
+ dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
+ dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
+ event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
+ features/aarch64-core.c, features/aarch64-fpu.c,
+ features/aarch64-pauth.c, features/aarch64-sve.c,
+ features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
+ features/i386/32bit-core.c, features/i386/32bit-linux.c,
+ features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
+ features/i386/32bit-segments.c, features/i386/32bit-sse.c,
+ features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
+ features/i386/64bit-core.c, features/i386/64bit-linux.c,
+ features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
+ features/i386/64bit-segments.c, features/i386/64bit-sse.c,
+ features/i386/x32-core.c, features/riscv/32bit-cpu.c,
+ features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
+ features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
+ features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
+ features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
+ findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
+ gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
+ gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
+ go32-nat.c, guile/guile.c, guile/scm-ports.c,
+ guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
+ i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
+ i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
+ ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
+ inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
+ inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
+ inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
+ linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
+ macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
+ mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
+ mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
+ minsyms.c, mips-linux-tdep.c, namespace.h,
+ nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
+ nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
+ nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
+ nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
+ nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
+ nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
+ nat/linux-waitpid.c, nat/mips-linux-watch.c,
+ nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
+ nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
+ nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
+ obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
+ parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
+ procfs.c, producer.c, progspace.h, psymtab.h,
+ python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
+ python/py-type.c, python/python.c, record-btrace.c, record-full.c,
+ record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
+ remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
+ riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
+ selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
+ ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
+ source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
+ stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
+ symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
+ target-memory.c, target.c, target.h, target/waitstatus.c,
+ target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
+ top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
+ tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
+ unittests/array-view-selftests.c,
+ unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
+ unittests/common-utils-selftests.c,
+ unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
+ unittests/format_pieces-selftests.c,
+ unittests/function-view-selftests.c,
+ unittests/lookup_name_info-selftests.c,
+ unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
+ unittests/mkdir-recursive-selftests.c,
+ unittests/observable-selftests.c,
+ unittests/offset-type-selftests.c, unittests/optional-selftests.c,
+ unittests/parse-connection-spec-selftests.c,
+ unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
+ unittests/scoped_fd-selftests.c,
+ unittests/scoped_mmap-selftests.c,
+ unittests/scoped_restore-selftests.c,
+ unittests/string_view-selftests.c, unittests/style-selftests.c,
+ unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
+ unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
+ utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
+ value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
+ xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
+ xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
+
2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
* linespec.c (decode_digits_list_mode): Set explicit_line to a
CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@
-CONFIG_SRC_SUBDIR = arch cli mi common compile tui unittests guile python \
+CONFIG_SRC_SUBDIR = arch cli mi gdbsupport compile tui unittests guile python \
target nat
CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR))
cli-out.c \
coff-pe-read.c \
coffread.c \
- common/agent.c \
- common/btrace-common.c \
- common/buffer.c \
- common/cleanups.c \
- common/common-debug.c \
- common/common-exceptions.c \
- common/common-regcache.c \
- common/common-utils.c \
- common/errors.c \
- common/environ.c \
- common/fileio.c \
- common/filestuff.c \
- common/format.c \
- common/job-control.c \
- common/gdb_tilde_expand.c \
- common/gdb_vecs.c \
- common/netstuff.c \
- common/new-op.c \
- common/pathstuff.c \
- common/print-utils.c \
- common/ptid.c \
- common/rsp-low.c \
- common/run-time-clock.c \
- common/scoped_mmap.c \
- common/signals.c \
- common/signals-state-save-restore.c \
- common/tdesc.c \
- common/vec.c \
- common/xml-utils.c \
+ gdbsupport/agent.c \
+ gdbsupport/btrace-common.c \
+ gdbsupport/buffer.c \
+ gdbsupport/cleanups.c \
+ gdbsupport/common-debug.c \
+ gdbsupport/common-exceptions.c \
+ gdbsupport/common-regcache.c \
+ gdbsupport/common-utils.c \
+ gdbsupport/errors.c \
+ gdbsupport/environ.c \
+ gdbsupport/fileio.c \
+ gdbsupport/filestuff.c \
+ gdbsupport/format.c \
+ gdbsupport/job-control.c \
+ gdbsupport/gdb_tilde_expand.c \
+ gdbsupport/gdb_vecs.c \
+ gdbsupport/netstuff.c \
+ gdbsupport/new-op.c \
+ gdbsupport/pathstuff.c \
+ gdbsupport/print-utils.c \
+ gdbsupport/ptid.c \
+ gdbsupport/rsp-low.c \
+ gdbsupport/run-time-clock.c \
+ gdbsupport/scoped_mmap.c \
+ gdbsupport/signals.c \
+ gdbsupport/signals-state-save-restore.c \
+ gdbsupport/tdesc.c \
+ gdbsupport/vec.c \
+ gdbsupport/xml-utils.c \
complaints.c \
completer.c \
continuations.c \
cli/cli-setshow.h \
cli/cli-style.h \
cli/cli-utils.h \
- common/buffer.h \
- common/cleanups.h \
- common/common-debug.h \
- common/common-defs.h \
- common/common-exceptions.h \
- common/common-gdbthread.h \
- common/common-regcache.h \
- common/common-types.h \
- common/common-utils.h \
- common/job-control.h \
- common/errors.h \
- common/environ.h \
- common/fileio.h \
- common/format.h \
- common/gdb_assert.h \
- common/gdb_tilde_expand.h \
- common/gdb_locale.h \
- common/gdb_proc_service.h \
- common/gdb_setjmp.h \
- common/gdb_signals.h \
- common/gdb_sys_time.h \
- common/gdb_vecs.h \
- common/gdb_wait.h \
- common/common-inferior.h \
- common/netstuff.h \
- common/host-defs.h \
- common/pathstuff.h \
- common/print-utils.h \
- common/ptid.h \
- common/queue.h \
- common/rsp-low.h \
- common/run-time-clock.h \
- common/signals-state-save-restore.h \
- common/symbol.h \
- common/tdesc.h \
- common/vec.h \
- common/version.h \
- common/x86-xstate.h \
- common/xml-utils.h \
+ gdbsupport/buffer.h \
+ gdbsupport/cleanups.h \
+ gdbsupport/common-debug.h \
+ gdbsupport/common-defs.h \
+ gdbsupport/common-exceptions.h \
+ gdbsupport/common-gdbthread.h \
+ gdbsupport/common-regcache.h \
+ gdbsupport/common-types.h \
+ gdbsupport/common-utils.h \
+ gdbsupport/job-control.h \
+ gdbsupport/errors.h \
+ gdbsupport/environ.h \
+ gdbsupport/fileio.h \
+ gdbsupport/format.h \
+ gdbsupport/gdb_assert.h \
+ gdbsupport/gdb_tilde_expand.h \
+ gdbsupport/gdb_locale.h \
+ gdbsupport/gdb_proc_service.h \
+ gdbsupport/gdb_setjmp.h \
+ gdbsupport/gdb_signals.h \
+ gdbsupport/gdb_sys_time.h \
+ gdbsupport/gdb_vecs.h \
+ gdbsupport/gdb_wait.h \
+ gdbsupport/common-inferior.h \
+ gdbsupport/netstuff.h \
+ gdbsupport/host-defs.h \
+ gdbsupport/pathstuff.h \
+ gdbsupport/print-utils.h \
+ gdbsupport/ptid.h \
+ gdbsupport/queue.h \
+ gdbsupport/rsp-low.h \
+ gdbsupport/run-time-clock.h \
+ gdbsupport/signals-state-save-restore.h \
+ gdbsupport/symbol.h \
+ gdbsupport/tdesc.h \
+ gdbsupport/vec.h \
+ gdbsupport/version.h \
+ gdbsupport/x86-xstate.h \
+ gdbsupport/xml-utils.h \
compile/compile.h \
compile/compile-c.h \
compile/compile-cplus.h \
version.c: stamp-version; @true
# Note that the obvious names for the temp file are taken by
# create-version.sh.
-stamp-version: Makefile version.in $(srcdir)/../bfd/version.h $(srcdir)/common/create-version.sh
- $(ECHO_GEN) $(SHELL) $(srcdir)/common/create-version.sh $(srcdir) \
+stamp-version: Makefile version.in $(srcdir)/../bfd/version.h $(srcdir)/gdbsupport/create-version.sh
+ $(ECHO_GEN) $(SHELL) $(srcdir)/gdbsupport/create-version.sh $(srcdir) \
$(host_alias) $(target_alias) version-t.t
@$(SHELL) $(srcdir)/../move-if-change version-t.t version.c
@echo stamp > stamp-version
xtensa-linux-tdep.c \
xtensa-tdep.c \
xtensa-xtregs.c \
- common/mingw-strerror.c \
- common/posix-strerror.c
+ gdbsupport/mingw-strerror.c \
+ gdbsupport/posix-strerror.c
# Some files need explicit build rules (due to -Werror problems) or due
# to sub-directory fun 'n' games.
#include "infcall.h"
#include "ax.h"
#include "ax-gdb.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "aarch64-tdep.h"
#include "aarch64-ravenscar-thread.h"
#include "elf-bfd.h"
#include "elf/aarch64.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "record.h"
#include "record-full.h"
sinclude([../config/zlib.m4])
-m4_include([common/common.m4])
+m4_include([gdbsupport/common.m4])
dnl For libiberty_INIT.
m4_include(libiberty.m4)
#include "valprint.h"
#include "source.h"
#include "observable.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "stack.h"
-#include "common/gdb_vecs.h"
+#include "gdbsupport/gdb_vecs.h"
#include "typeprint.h"
#include "namespace.h"
#include "mi/mi-common.h"
#include "arch-utils.h"
#include "cli/cli-utils.h"
-#include "common/function-view.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/function-view.h"
+#include "gdbsupport/byte-vector.h"
#include <algorithm>
#include <map>
#include "value.h"
#include "gdbtypes.h"
#include "breakpoint.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
/* Names of specific files known to be part of the runtime
system and that might consider (confusing) debugging information.
#include "command.h"
#include "gdbcmd.h"
#include "target.h"
-#include "common/agent.h"
+#include "gdbsupport/agent.h"
/* Enum strings for "set|show agent". */
GDBSERVER define when possible, and for this file it seemed
simple to do so. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "libiberty.h"
-#include "common/errors.h"
+#include "gdbsupport/errors.h"
/* The xmalloc() (libiberty.h) family of memory management routines.
#include "objfiles.h"
#include "i387-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "amd64-tdep.h"
#include "osabi.h"
#include "ui-out.h"
#include "defs.h"
#include "osabi.h"
#include "amd64-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "dicos-tdep.h"
static void
#include "amd64-nat.h"
#include "amd64-bsd-nat.h"
#include "x86-nat.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
\f
class amd64_fbsd_nat_target final
#include "osabi.h"
#include "regset.h"
#include "i386-fbsd-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "amd64-tdep.h"
#include "fbsd-tdep.h"
#include "amd64-tdep.h"
#include "amd64-linux-tdep.h"
#include "i386-linux-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "x86-linux-nat.h"
#include "nat/linux-ptrace.h"
#include "amd64-linux-tdep.h"
#include "i386-linux-tdep.h"
#include "linux-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "amd64-tdep.h"
#include "solib-svr4.h"
#include "symtab.h"
#include "amd64-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "nbsd-tdep.h"
#include "solib-svr4.h"
#include "obsd-tdep.h"
#include "amd64-tdep.h"
#include "i387-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "solib-svr4.h"
#include "bsd-uthread.h"
#include "sol2-tdep.h"
#include "amd64-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "solib-svr4.h"
/* Mapping between the general-purpose registers in gregset_t format
#include "disasm.h"
#include "amd64-tdep.h"
#include "i387-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include <algorithm>
#include "target-descriptions.h"
#include "arch/amd64.h"
#include "producer.h"
#include "ax.h"
#include "ax-gdb.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
#include "osabi.h"
#include "x86-tdep.h"
#include "defs.h"
#include "osabi.h"
#include "amd64-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "gdbtypes.h"
#include "gdbcore.h"
#include "regcache.h"
#include "language.h"
#include "symtab.h"
-#include "common/version.h"
+#include "gdbsupport/version.h"
#include "floatformat.h"
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "aarch64-insn.h"
/* Toggle this file's internal debugging dump. */
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "aarch64.h"
#include <stdlib.h>
#ifndef ARCH_AARCH64_H
#define ARCH_AARCH64_H
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
/* Create the aarch64 target description. A non zero VQ value indicates both
the presence of SVE and the Vector Quotient - the number of 128bit chunks in
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "amd64.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include <stdlib.h>
#include "../features/i386/64bit-avx.c"
#ifndef ARCH_AMD64_H
#define ARCH_AMD64_H
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
#include <stdint.h>
target_desc *amd64_create_target_description (uint64_t xcr0, bool is_x32,
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
-#include "common/gdb_vecs.h"
-#include "common/common-regcache.h"
+#include "gdbsupport/common-defs.h"
+#include "gdbsupport/gdb_vecs.h"
+#include "gdbsupport/common-regcache.h"
#include "arm.h"
#include "arm-get-next-pcs.h"
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
-#include "common/common-regcache.h"
+#include "gdbsupport/common-defs.h"
+#include "gdbsupport/common-regcache.h"
#include "arch/arm.h"
#include "arm-linux.h"
#include "arch/arm-get-next-pcs.h"
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
-#include "common/common-regcache.h"
+#include "gdbsupport/common-defs.h"
+#include "gdbsupport/common-regcache.h"
#include "arm.h"
/* See arm.h. */
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "i386.h"
-#include "common/tdesc.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/tdesc.h"
+#include "gdbsupport/x86-xstate.h"
#include <stdlib.h>
#include "../features/i386/32bit-core.c"
#ifndef ARCH_I386_H
#define ARCH_I386_H
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
#include <stdint.h>
target_desc *i386_create_target_description (uint64_t xcr0, bool is_linux,
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "arch/ppc-linux-common.h"
#include "arch/ppc-linux-tdesc.h"
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "riscv.h"
#include <stdlib.h>
#include <unordered_map>
#ifndef ARCH_RISCV_H
#define ARCH_RISCV_H
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
/* The set of RISC-V architectural features that we track that impact how
we configure the actual gdbarch instance. We hold one of these in the
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
#include "tic6x.h"
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "../features/tic6x-core.c"
#include "../features/tic6x-gp.c"
#include "coff/internal.h"
#include "elf/arm.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "record.h"
#include "record-full.h"
#include "features/arm/arm-with-neon.c"
#if GDB_SELF_TEST
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#endif
static int arm_debug;
#include "completer.h"
#include "fnmatch.h"
#include "top.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include "extension.h"
#include "gdb/section-scripts.h"
#include <algorithm>
-#include "common/pathstuff.h"
+#include "gdbsupport/pathstuff.h"
/* The section to look in for auto-loaded scripts (in file formats that
support sections).
#include "valprint.h"
#include "gdbcore.h"
#include "observable.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include "objfiles.h"
#include "auxv.h"
#include "valprint.h"
#include "c-lang.h"
-#include "common/format.h"
+#include "gdbsupport/format.h"
/* To make sense of this file, you should read doc/agentexpr.texi.
Then look at the types and enums in ax-gdb.h. For the code itself,
{0, 0, 0, 0, 0}
#define DEFOP(NAME, SIZE, DATA_SIZE, CONSUMED, PRODUCED, VALUE) \
, { # NAME, SIZE, DATA_SIZE, CONSUMED, PRODUCED }
-#include "common/ax.def"
+#include "gdbsupport/ax.def"
#undef DEFOP
};
#ifndef AX_H
#define AX_H
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
/* It's sometimes useful to be able to debug programs that you can't
really stop for more than a fraction of a second. To this end, the
{
#define DEFOP(NAME, SIZE, DATA_SIZE, CONSUMED, PRODUCED, VALUE) \
aop_ ## NAME = VALUE,
-#include "common/ax.def"
+#include "gdbsupport/ax.def"
#undef DEFOP
aop_last
};
#include "ax-gdb.h"
#include "dummy-frame.h"
#include "interps.h"
-#include "common/format.h"
+#include "gdbsupport/format.h"
#include "thread-fsm.h"
#include "tid-parse.h"
#include "cli/cli-style.h"
#include "extension.h"
#include <algorithm>
#include "progspace-and-thread.h"
-#include "common/array-view.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/array-view.h"
+#include "gdbsupport/gdb_optional.h"
/* Prototypes for local functions. */
#include "frame.h"
#include "value.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "ax.h"
#include "command.h"
-#include "common/break-common.h"
+#include "gdbsupport/break-common.h"
#include "probe.h"
#include "location.h"
#include <vector>
-#include "common/array-view.h"
+#include "gdbsupport/array-view.h"
#include "cli/cli-script.h"
struct block;
#include "filenames.h"
#include "xml-support.h"
#include "regcache.h"
-#include "common/rsp-low.h"
+#include "gdbsupport/rsp-low.h"
#include "gdbcmd.h"
#include "cli/cli-utils.h"
gdb::unique_xmalloc_ptr<gdb_byte> data ((gdb_byte *) xmalloc (size));
bin = data.get ();
- /* We use hex encoding - see common/rsp-low.h. */
+ /* We use hex encoding - see gdbsupport/rsp-low.h. */
while (len > 0)
{
char hi, lo;
inferior. For presentation purposes, the branch trace is represented as a
list of sequential control-flow blocks, one such list per thread. */
-#include "common/btrace-common.h"
+#include "gdbsupport/btrace-common.h"
#include "target/waitstatus.h" /* For enum target_stop_reason. */
-#include "common/enum-flags.h"
+#include "gdbsupport/enum-flags.h"
#if defined (HAVE_LIBIPT)
# include <intel-pt.h>
#include "bfd.h"
#include "gdb_bfd.h"
#include "build-id.h"
-#include "common/gdb_vecs.h"
+#include "gdbsupport/gdb_vecs.h"
#include "symfile.h"
#include "objfiles.h"
#include "filenames.h"
#define BUILD_ID_H
#include "gdb_bfd.h"
-#include "common/rsp-low.h"
+#include "gdbsupport/rsp-low.h"
/* Locate NT_GNU_BUILD_ID from ABFD and return its content. */
#include "value.h"
#include "macroexp.h"
#include "parser-defs.h"
-#include "common/enum-flags.h"
+#include "gdbsupport/enum-flags.h"
/* The various kinds of C string and character. Note that these
#include "charset.h"
#include "gdbcmd.h"
#include "gdb_obstack.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include "charset-list.h"
-#include "common/vec.h"
-#include "common/environ.h"
+#include "gdbsupport/vec.h"
+#include "gdbsupport/environ.h"
#include "arch-utils.h"
-#include "common/gdb_vecs.h"
+#include "gdbsupport/gdb_vecs.h"
#include <ctype.h>
#ifdef USE_WIN32API
#ifndef CHARSET_H
#define CHARSET_H
-#include "common/def-vector.h"
+#include "gdbsupport/def-vector.h"
/* If the target program uses a different character set than the host,
GDB has some support for translating between the two; GDB converts
#include "readline/tilde.h"
#include "completer.h"
#include "target.h" /* For baud_rate, remote_debug and remote_timeout. */
-#include "common/gdb_wait.h" /* For shell escape implementation. */
+#include "gdbsupport/gdb_wait.h" /* For shell escape implementation. */
#include "gdbcmd.h"
#include "gdb_regex.h" /* Used by apropos_command. */
#include "gdb_vfork.h"
#include "source.h"
#include "disasm.h"
#include "tracepoint.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include "location.h"
#include "block.h"
#include "cli/cli-utils.h"
#include "extension.h"
-#include "common/pathstuff.h"
+#include "gdbsupport/pathstuff.h"
#ifdef TUI
#include "tui/tui.h" /* For tui_active et.al. */
#ifndef CLI_CLI_CMDS_H
#define CLI_CLI_CMDS_H
-#include "common/filestuff.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/gdb_optional.h"
/* Chain containing all defined commands. */
#include "cli/cli-cmds.h"
#include "cli/cli-decode.h"
#include "cli/cli-style.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
/* Prototypes for local functions. */
#include "gdbcore.h"
#include "cli/cli-utils.h"
#include "gdb_bfd.h"
-#include "common/filestuff.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/byte-vector.h"
static gdb::unique_xmalloc_ptr<char>
scan_expression (const char **cmd, const char *def)
#ifndef CLI_OPTION_H
#define CLI_OPTION_H 1
-#include "common/gdb_optional.h"
-#include "common/array-view.h"
+#include "gdbsupport/gdb_optional.h"
+#include "gdbsupport/array-view.h"
#include "completer.h"
#include <string>
#include "command.h"
#include "extension.h"
#include "interps.h"
#include "compile/compile.h"
-#include "common/gdb_string_view.h"
+#include "gdbsupport/gdb_string_view.h"
#include "python/python.h"
#include "guile/guile.h"
#include "symtab.h"
#include "symfile.h"
#include "objfiles.h"
-#include "common/common-utils.h"
+#include "gdbsupport/common-utils.h"
#include "coff/internal.h"
#include <ctype.h>
#if !defined (COMMAND_H)
#define COMMAND_H 1
-#include "common/gdb_vecs.h"
-#include "common/scoped_restore.h"
+#include "gdbsupport/gdb_vecs.h"
+#include "gdbsupport/scoped_restore.h"
struct completion_tracker;
#include "macrotab.h"
#include "macroscope.h"
#include "regcache.h"
-#include "common/function-view.h"
-#include "common/preprocessor.h"
+#include "gdbsupport/function-view.h"
+#include "gdbsupport/preprocessor.h"
/* See compile-internal.h. */
#ifndef COMPILE_COMPILE_C_H
#define COMPILE_COMPILE_C_H
-#include "common/enum-flags.h"
+#include "gdbsupport/enum-flags.h"
#include "gcc-c-plugin.h"
/* enum-flags wrapper. */
#include "defs.h"
#include "compile-internal.h"
#include "compile-cplus.h"
-#include "common/gdb_assert.h"
+#include "gdbsupport/gdb_assert.h"
#include "symtab.h"
#include "parser-defs.h"
#include "block.h"
#include "defs.h"
-#include "common/preprocessor.h"
+#include "gdbsupport/preprocessor.h"
#include "gdbtypes.h"
#include "compile-internal.h"
#include "compile-cplus.h"
-#include "common/gdb_assert.h"
+#include "gdbsupport/gdb_assert.h"
#include "symtab.h"
#include "source.h"
#include "cp-support.h"
#ifndef COMPILE_COMPILE_CPLUS_H
#define COMPILE_COMPILE_CPLUS_H
-#include "common/enum-flags.h"
+#include "gdbsupport/enum-flags.h"
#include "gcc-cp-plugin.h"
struct type;
#include "compile.h"
#include "block.h"
#include "dwarf2-frame.h"
-#include "common/gdb_vecs.h"
+#include "gdbsupport/gdb_vecs.h"
#include "value.h"
\f
#include "source.h"
#include "block.h"
#include "arch-utils.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include "target.h"
#include "osabi.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include "valprint.h"
-#include "common/gdb_optional.h"
-#include "common/gdb_unlinker.h"
-#include "common/pathstuff.h"
+#include "gdbsupport/gdb_optional.h"
+#include "gdbsupport/gdb_unlinker.h"
+#include "gdbsupport/pathstuff.h"
\f
#include "expression.h"
#include "filenames.h" /* For DOSish file names. */
#include "language.h"
-#include "common/gdb_signals.h"
+#include "gdbsupport/gdb_signals.h"
#include "target.h"
#include "reggroups.h"
#include "user-regs.h"
#if !defined (COMPLETER_H)
#define COMPLETER_H 1
-#include "common/gdb_vecs.h"
+#include "gdbsupport/gdb_vecs.h"
#include "command.h"
/* Types of functions in struct match_list_displayer. */
. $srcdir/configure.host
# Add in the common host objects.
-. $srcdir/common/common.host
+. $srcdir/gdbsupport/common.host
gdb_host_obs="$gdb_host_obs $common_host_obs"
# Accumulate some settings from configure.tgt over all enabled targets
$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
- CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
- CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
+ CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) gdbsupport/selftest.o selftest-arch.o"
+ CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) gdbsupport/selftest.c selftest-arch.c"
fi
. $srcdir/configure.host
# Add in the common host objects.
-. $srcdir/common/common.host
+. $srcdir/gdbsupport/common.host
gdb_host_obs="$gdb_host_obs $common_host_obs"
# Accumulate some settings from configure.tgt over all enabled targets
[Define to be a string naming the default host character set.])
GDB_AC_SELFTEST([
- CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
- CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
+ CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) gdbsupport/selftest.o selftest-arch.o"
+ CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) gdbsupport/selftest.c selftest-arch.c"
])
GDB_AC_TRANSFORM([gdb], [GDB_TRANSFORM_NAME])
BEGIN { doc["wait.h"] = "\
Do not include wait.h or sys/wait.h, instead include gdb_wait.h"
- fix("wait.h", "common/gdb_wait.h", 2);
+ fix("wait.h", "gdbsupport/gdb_wait.h", 2);
category["wait.h"] = ari_regression
}
/^#[[:space:]]*include[[:space:]]*.wait\.h./ \
BEGIN { doc["__func__"] = "\
Do not use __func__, ISO C 90 does not support this macro"
category["__func__"] = ari_regression
- fix("__func__", "common/gdb_assert.h", 1)
+ fix("__func__", "gdbsupport/gdb_assert.h", 1)
}
/(^|[^_[:alnum:]])__func__([^_[:alnum:]]|$)/ {
fail("__func__")
Do not use strerror(), instead use safe_strerror()"
category["strerror"] = ari_regression
fix("strerror", "gdb/gdb_string.h", 1)
- fix("strerror", "gdb/common/mingw-strerror.c", 1)
- fix("strerror", "gdb/common/posix-strerror.c", 1)
+ fix("strerror", "gdb/gdbsupport/mingw-strerror.c", 1)
+ fix("strerror", "gdb/gdbsupport/posix-strerror.c", 1)
}
/(^|[^_[:alnum:]])strerror[[:space:]]*\(/ {
fail("strerror")
BEGIN { doc["vasprintf"] = "\
Do not use vasprintf(), instead use xstrvprintf"
- fix("vasprintf", "common/common-utils.c", 1)
+ fix("vasprintf", "gdbsupport/common-utils.c", 1)
category["vasprintf"] = ari_regression
}
/(^|[^_[:alnum:]])vasprintf[[:space:]]*\(/ {
}
}
-/* See common/common-inferior.h. */
+/* See gdbsupport/common-inferior.h. */
char *
get_exec_file (int err)
#include "objfiles.h"
#include "gdb_bfd.h"
#include "completer.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#ifndef O_LARGEFILE
#define O_LARGEFILE 0
#include "cp-abi.h"
#include "namespace.h"
#include <signal.h>
-#include "common/gdb_setjmp.h"
+#include "gdbsupport/gdb_setjmp.h"
#include "safe-ctype.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#define d_left(dc) (dc)->u.s_binary.left
#define d_right(dc) (dc)->u.s_binary.right
/* We need this for 'domain_enum', alas... */
#include "symtab.h"
-#include "common/vec.h"
-#include "common/gdb_vecs.h"
+#include "gdbsupport/vec.h"
+#include "gdbsupport/gdb_vecs.h"
#include "gdb_obstack.h"
-#include "common/array-view.h"
+#include "gdbsupport/array-view.h"
#include <vector>
/* Opaque declarations. */
#include "language.h"
#include "extension.h"
#include "typeprint.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
static struct obstack dont_print_vb_obstack;
static struct obstack dont_print_statmem_obstack;
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/gdb_assert.h"
+#include "gdbsupport/gdb_assert.h"
#include "frame.h"
#include "inferior.h"
#include "symtab.h"
#include "tracefile.h"
#include <ctype.h>
#include <algorithm>
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
/* The CTF target. */
#include "darwin-nat.h"
#include "filenames.h"
-#include "common/filestuff.h"
-#include "common/gdb_unlinker.h"
-#include "common/pathstuff.h"
-#include "common/scoped_fd.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/gdb_unlinker.h"
+#include "gdbsupport/pathstuff.h"
+#include "gdbsupport/scoped_fd.h"
#include "nat/fork-inferior.h"
/* Quick overview.
#include "defs.h"
-/* See common/common-debug.h. */
+/* See gdbsupport/common-debug.h. */
void
debug_vprintf (const char *fmt, va_list ap)
# error gdbserver should not include gdb/defs.h
#endif
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include <sys/types.h>
#include <limits.h>
#include "ui-file.h"
-#include "common/host-defs.h"
-#include "common/enum-flags.h"
+#include "gdbsupport/host-defs.h"
+#include "gdbsupport/enum-flags.h"
/* Scope types enumerator. List the types of scopes the compiler will
accept. */
#include "disasm.h"
#if GDB_SELF_TEST
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "selftest-arch.h"
namespace selftests {
#include "source.h"
#include "safe-ctype.h"
#include <algorithm>
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
#include "valprint.h"
/* Disassemble functions.
#define DISASM_H
#include "dis-asm.h"
-#include "common/enum-flags.h"
+#include "gdbsupport/enum-flags.h"
enum gdb_disassembly_flag
{
#include "defs.h"
#include "probe.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "elf-bfd.h"
#include "gdbtypes.h"
#include "obstack.h"
#include "build-id.h"
#include "cli/cli-cmds.h"
#include "command.h"
-#include "common/scoped_mmap.h"
-#include "common/pathstuff.h"
+#include "gdbsupport/scoped_mmap.h"
+#include "gdbsupport/pathstuff.h"
#include "dwarf-index-write.h"
#include "dwarf2read.h"
#include "objfiles.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include <string>
#include <stdlib.h>
#define DWARF_INDEX_CACHE_H
#include "dwarf-index-common.h"
-#include "common/array-view.h"
+#include "gdbsupport/array-view.h"
#include "symfile.h"
/* Base of the classes used to hold the resources of the indices loaded from
#include "addrmap.h"
#include "cli/cli-decode.h"
-#include "common/byte-vector.h"
-#include "common/filestuff.h"
-#include "common/gdb_unlinker.h"
-#include "common/pathstuff.h"
-#include "common/scoped_fd.h"
+#include "gdbsupport/byte-vector.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/gdb_unlinker.h"
+#include "gdbsupport/pathstuff.h"
+#include "gdbsupport/scoped_fd.h"
#include "complaints.h"
#include "dwarf-index-common.h"
#include "dwarf2.h"
#include "dwarf2loc.h"
#include "dwarf2-frame-tailcall.h"
#if GDB_SELF_TEST
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "selftest-arch.h"
#endif
#include "dwarf2.h"
#include "dwarf2expr.h"
#include "dwarf2loc.h"
-#include "common/underlying.h"
+#include "gdbsupport/underlying.h"
/* Cookie for gdbarch data. */
#include "dwarf2read.h"
#include "dwarf2-frame.h"
#include "compile/compile.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include <algorithm>
#include <vector>
#include <unordered_set>
-#include "common/underlying.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/underlying.h"
+#include "gdbsupport/byte-vector.h"
extern int dwarf_always_disassemble;
#include "psympriv.h"
#include <sys/stat.h>
#include "completer.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "c-lang.h"
#include "go-lang.h"
#include "valprint.h"
#include "gdb_bfd.h"
#include "f-lang.h"
#include "source.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include "build-id.h"
#include "namespace.h"
-#include "common/gdb_unlinker.h"
-#include "common/function-view.h"
-#include "common/gdb_optional.h"
-#include "common/underlying.h"
-#include "common/byte-vector.h"
-#include "common/hash_enum.h"
+#include "gdbsupport/gdb_unlinker.h"
+#include "gdbsupport/function-view.h"
+#include "gdbsupport/gdb_optional.h"
+#include "gdbsupport/underlying.h"
+#include "gdbsupport/byte-vector.h"
+#include "gdbsupport/hash_enum.h"
#include "filename-seen-cache.h"
#include "producer.h"
#include <fcntl.h>
#include <algorithm>
#include <unordered_set>
#include <unordered_map>
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include <cmath>
#include <set>
#include <forward_list>
#include "rust-lang.h"
-#include "common/pathstuff.h"
+#include "gdbsupport/pathstuff.h"
/* When == 1, print basic high level tracing messages.
When > 1, be more verbose.
#include "dwarf-index-cache.h"
#include "filename-seen-cache.h"
#include "gdb_obstack.h"
-#include "common/hash_enum.h"
+#include "gdbsupport/hash_enum.h"
/* Hold 'maintenance (set|show) dwarf' commands. */
extern struct cmd_list_element *set_dwarf_cmdlist;
#endif
#include <sys/types.h>
-#include "common/gdb_sys_time.h"
+#include "gdbsupport/gdb_sys_time.h"
#include "gdb_select.h"
#include "observable.h"
#include "top.h"
#include "gdbcmd.h" /* for dont_repeat() */
#include "annotate.h"
#include "maint.h"
-#include "common/buffer.h"
+#include "gdbsupport/buffer.h"
#include "ser-event.h"
#include "gdb_select.h"
#include "serial.h"
#include "gdbthread.h"
#include "top.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
static void
print_flush (void)
#include <sys/stat.h>
#include "solist.h"
#include <algorithm>
-#include "common/pathstuff.h"
+#include "gdbsupport/pathstuff.h"
void (*deprecated_file_changed_hook) (const char *);
#define EXTENSION_H
#include "mi/mi-cmds.h" /* For PRINT_NO_VALUES, etc. */
-#include "common/vec.h"
-#include "common/array-view.h"
+#include "gdbsupport/vec.h"
+#include "gdbsupport/array-view.h"
struct breakpoint;
struct command_line;
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
#include "gdbcore.h"
#include "inferior.h"
#include "regcache.h"
#include "regset.h"
#include "gdbcmd.h"
#include "gdbthread.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include "inf-ptrace.h"
#include <sys/types.h>
#include <sys/procfs.h>
#include <libutil.h>
#endif
#if !defined(HAVE_KINFO_GETVMMAP)
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#endif
#include "elf-bfd.h"
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: aarch64-core.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_aarch64_core (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: aarch64-fpu.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_aarch64_fpu (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: aarch64-pauth.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_aarch64_pauth (struct target_desc *result, long regnum)
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
/* This function is NOT auto generated from xml. Create the aarch64 with SVE
feature into RESULT, where SCALE is the number of 128 bit chunks in a Z
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 32bit-avx.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_32bit_avx (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 32bit-avx512.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_32bit_avx512 (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 32bit-core.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_32bit_core (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 32bit-linux.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_32bit_linux (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 32bit-mpx.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_32bit_mpx (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 32bit-pkeys.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_32bit_pkeys (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 32bit-segments.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_32bit_segments (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 32bit-sse.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_32bit_sse (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 64bit-avx.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_64bit_avx (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 64bit-avx512.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_64bit_avx512 (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 64bit-core.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_64bit_core (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 64bit-linux.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_64bit_linux (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 64bit-mpx.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_64bit_mpx (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 64bit-pkeys.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_64bit_pkeys (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 64bit-segments.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_64bit_segments (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 64bit-sse.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_64bit_sse (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: x32-core.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_i386_x32_core (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 32bit-cpu.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_riscv_32bit_cpu (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 32bit-csr.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_riscv_32bit_csr (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 32bit-fpu.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_riscv_32bit_fpu (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 64bit-cpu.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_riscv_64bit_cpu (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 64bit-csr.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_riscv_64bit_csr (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: 64bit-fpu.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_riscv_64bit_fpu (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: tic6x-c6xp.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_tic6x_c6xp (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: tic6x-core.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_tic6x_core (struct target_desc *result, long regnum)
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: tic6x-gp.xml */
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
static int
create_feature_tic6x_gp (struct target_desc *result, long regnum)
#define FILENAME_SEEN_CACHE_H
#include "defs.h"
-#include "common/function-view.h"
+#include "gdbsupport/function-view.h"
/* Cache to watch for file names already seen. */
#include "target.h"
#include "cli/cli-utils.h"
#include <algorithm>
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
/* Copied from bfd_put_bits. */
#include "objfiles.h"
#include "language.h"
#include "dwarf2loc.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
/* Basic byte-swapping routines. All 'extract' functions return a
host-format integer from a target-format integer at ADDR which is
#include "terminal.h"
#include "gdbthread.h"
#include "top.h"
-#include "common/job-control.h"
-#include "common/filestuff.h"
+#include "gdbsupport/job-control.h"
+#include "gdbsupport/filestuff.h"
#include "nat/fork-inferior.h"
-#include "common/common-inferior.h"
+#include "gdbsupport/common-inferior.h"
/* The exec-wrapper, if any, that will be used when starting the
inferior. */
static char *exec_wrapper = NULL;
-/* See common/common-inferior.h. */
+/* See gdbsupport/common-inferior.h. */
const char *
get_exec_wrapper ()
#include "gdb_bfd.h"
#include "readline/tilde.h"
#include <algorithm>
-#include "common/gdb_unlinker.h"
-#include "common/byte-vector.h"
-#include "common/scope-exit.h"
+#include "gdbsupport/gdb_unlinker.h"
+#include "gdbsupport/byte-vector.h"
+#include "gdbsupport/scope-exit.h"
/* The largest amount of memory to read from the target at once. We
must throttle it to limit the amount of memory used by GDB during
#include "ui-out.h"
#include "gdbcmd.h"
#include "hashtab.h"
-#include "common/filestuff.h"
-#include "common/vec.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/vec.h"
#ifdef HAVE_MMAP
#include <sys/mman.h>
#ifndef MAP_FAILED
#define GDB_BFD_H
#include "registry.h"
-#include "common/gdb_ref_ptr.h"
+#include "gdbsupport/gdb_ref_ptr.h"
DECLARE_REGISTRY (bfd);
#ifndef GDB_PROC_SERVICE_H
#define GDB_PROC_SERVICE_H
-#include "common/gdb_proc_service.h"
+#include "gdbsupport/gdb_proc_service.h"
struct thread_info;
#include "defs.h"
#include "gdb_regex.h"
-#include "common/def-vector.h"
+#include "gdbsupport/def-vector.h"
compiled_regex::compiled_regex (const char *regex, int cflags,
const char *message)
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#else
-#include "common/gdb_sys_time.h"
+#include "gdbsupport/gdb_sys_time.h"
#endif
#ifdef USE_WIN32API
#include "defs.h"
#include "gdb_usleep.h"
#include "gdb_select.h"
-#include "common/gdb_sys_time.h"
+#include "gdbsupport/gdb_sys_time.h"
int
gdb_usleep (int usec)
#include "defs.h"
#if GDB_SELF_TEST
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "selftest-arch.h"
#include "inferior.h"
#include "gdbthread.h"
#include "target.h"
#include "test-target.h"
#include "target-float.h"
-#include "common/def-vector.h"
+#include "gdbsupport/def-vector.h"
namespace selftests {
+2019-07-09 Tom Tromey <tom@tromey.com>
+
+ * configure: Rebuild.
+ * configure.ac: Change common to gdbsupport.
+ * acinclude.m4: Change common to gdbsupport.
+ * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
+ (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
+ common to gdbsupport.
+ * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
+ gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
+ inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
+ linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
+ linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
+ linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
+ nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
+ server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
+ thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
+ common to gdbsupport.
+
2019-07-04 Alan Hayward <alan.hayward@arm.com>
* linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
$(srcdir)/arch/arm-linux.c \
$(srcdir)/arch/ppc-linux-common.c \
$(srcdir)/../alloc.c \
- $(srcdir)/common/btrace-common.c \
- $(srcdir)/common/buffer.c \
- $(srcdir)/common/cleanups.c \
- $(srcdir)/common/common-debug.c \
- $(srcdir)/common/common-exceptions.c \
- $(srcdir)/common/common-regcache.c \
- $(srcdir)/common/common-utils.c \
- $(srcdir)/common/errors.c \
- $(srcdir)/common/environ.c \
- $(srcdir)/common/fileio.c \
- $(srcdir)/common/filestuff.c \
- $(srcdir)/common/job-control.c \
- $(srcdir)/common/gdb_tilde_expand.c \
- $(srcdir)/common/gdb_vecs.c \
- $(srcdir)/common/netstuff.c \
- $(srcdir)/common/new-op.c \
- $(srcdir)/common/pathstuff.c \
- $(srcdir)/common/print-utils.c \
- $(srcdir)/common/ptid.c \
- $(srcdir)/common/rsp-low.c \
- $(srcdir)/common/tdesc.c \
- $(srcdir)/common/vec.c \
- $(srcdir)/common/xml-utils.c \
+ $(srcdir)/gdbsupport/btrace-common.c \
+ $(srcdir)/gdbsupport/buffer.c \
+ $(srcdir)/gdbsupport/cleanups.c \
+ $(srcdir)/gdbsupport/common-debug.c \
+ $(srcdir)/gdbsupport/common-exceptions.c \
+ $(srcdir)/gdbsupport/common-regcache.c \
+ $(srcdir)/gdbsupport/common-utils.c \
+ $(srcdir)/gdbsupport/errors.c \
+ $(srcdir)/gdbsupport/environ.c \
+ $(srcdir)/gdbsupport/fileio.c \
+ $(srcdir)/gdbsupport/filestuff.c \
+ $(srcdir)/gdbsupport/job-control.c \
+ $(srcdir)/gdbsupport/gdb_tilde_expand.c \
+ $(srcdir)/gdbsupport/gdb_vecs.c \
+ $(srcdir)/gdbsupport/netstuff.c \
+ $(srcdir)/gdbsupport/new-op.c \
+ $(srcdir)/gdbsupport/pathstuff.c \
+ $(srcdir)/gdbsupport/print-utils.c \
+ $(srcdir)/gdbsupport/ptid.c \
+ $(srcdir)/gdbsupport/rsp-low.c \
+ $(srcdir)/gdbsupport/tdesc.c \
+ $(srcdir)/gdbsupport/vec.c \
+ $(srcdir)/gdbsupport/xml-utils.c \
$(srcdir)/nat/aarch64-sve-linux-ptrace.c \
$(srcdir)/nat/linux-btrace.c \
$(srcdir)/nat/linux-namespaces.c \
OBS = \
alloc.o \
ax.o \
- common/agent.o \
- common/btrace-common.o \
- common/buffer.o \
- common/cleanups.o \
- common/common-debug.o \
- common/common-exceptions.o \
- common/job-control.o \
- common/common-regcache.o \
- common/common-utils.o \
- common/errors.o \
- common/environ.o \
- common/fileio.o \
- common/filestuff.o \
- common/format.o \
- common/gdb_tilde_expand.o \
- common/gdb_vecs.o \
- common/netstuff.o \
- common/new-op.o \
- common/pathstuff.o \
- common/print-utils.o \
- common/ptid.o \
- common/rsp-low.o \
- common/signals.o \
- common/signals-state-save-restore.o \
- common/tdesc.o \
- common/vec.o \
- common/xml-utils.o \
+ gdbsupport/agent.o \
+ gdbsupport/btrace-common.o \
+ gdbsupport/buffer.o \
+ gdbsupport/cleanups.o \
+ gdbsupport/common-debug.o \
+ gdbsupport/common-exceptions.o \
+ gdbsupport/job-control.o \
+ gdbsupport/common-regcache.o \
+ gdbsupport/common-utils.o \
+ gdbsupport/errors.o \
+ gdbsupport/environ.o \
+ gdbsupport/fileio.o \
+ gdbsupport/filestuff.o \
+ gdbsupport/format.o \
+ gdbsupport/gdb_tilde_expand.o \
+ gdbsupport/gdb_vecs.o \
+ gdbsupport/netstuff.o \
+ gdbsupport/new-op.o \
+ gdbsupport/pathstuff.o \
+ gdbsupport/print-utils.o \
+ gdbsupport/ptid.o \
+ gdbsupport/rsp-low.o \
+ gdbsupport/signals.o \
+ gdbsupport/signals-state-save-restore.o \
+ gdbsupport/tdesc.o \
+ gdbsupport/vec.o \
+ gdbsupport/xml-utils.o \
debug.o \
dll.o \
event-loop.o \
$(XML_BUILTIN)
GDBREPLAY_OBS = \
- common/cleanups.o \
- common/common-exceptions.o \
- common/common-utils.o \
- common/rsp-low.o \
- common/errors.o \
- common/netstuff.o \
- common/print-utils.o \
+ gdbsupport/cleanups.o \
+ gdbsupport/common-exceptions.o \
+ gdbsupport/common-utils.o \
+ gdbsupport/rsp-low.o \
+ gdbsupport/errors.o \
+ gdbsupport/netstuff.o \
+ gdbsupport/print-utils.o \
gdbreplay.o \
utils.o \
version.o
IPA_OBJS = \
alloc-ipa.o \
ax-ipa.o \
- common/common-utils-ipa.o \
- common/errors-ipa.o \
- common/format-ipa.o \
- common/print-utils-ipa.o \
- common/rsp-low-ipa.o \
- common/tdesc-ipa.o \
- common/vec-ipa.o \
+ gdbsupport/common-utils-ipa.o \
+ gdbsupport/errors-ipa.o \
+ gdbsupport/format-ipa.o \
+ gdbsupport/print-utils-ipa.o \
+ gdbsupport/rsp-low-ipa.o \
+ gdbsupport/tdesc-ipa.o \
+ gdbsupport/vec-ipa.o \
regcache-ipa.o \
remote-utils-ipa.o \
tdesc-ipa.o \
force:
-version-generated.c: Makefile $(srcdir)/../version.in $(srcdir)/../../bfd/version.h $(srcdir)/../common/create-version.sh
- $(ECHO_GEN) $(SHELL) $(srcdir)/../common/create-version.sh $(srcdir)/.. \
+version-generated.c: Makefile $(srcdir)/../version.in $(srcdir)/../../bfd/version.h $(srcdir)/../gdbsupport/create-version.sh
+ $(ECHO_GEN) $(SHELL) $(srcdir)/../gdbsupport/create-version.sh $(srcdir)/.. \
$(host_alias) $(target_alias) $@
xml-builtin-generated.c: stamp-xml; @true
$(IPAGENT_COMPILE) $<
$(POSTCOMPILE)
-common/%-ipa.o: ../common/%.c
+gdbsupport/%-ipa.o: ../gdbsupport/%.c
$(IPAGENT_COMPILE) $<
$(POSTCOMPILE)
$(COMPILE) $<
$(POSTCOMPILE)
-common/%.o: ../common/%.c
+gdbsupport/%.o: ../gdbsupport/%.c
$(COMPILE) $<
$(POSTCOMPILE)
dnl codeset.m4 is needed for common.m4, but not for
dnl anything else in gdbserver.
m4_include(../../config/codeset.m4)
-m4_include(../common/common.m4)
+m4_include(../gdbsupport/common.m4)
dnl For libiberty_INIT.
m4_include(../libiberty.m4)
#include "server.h"
#include "ax.h"
-#include "common/format.h"
+#include "gdbsupport/format.h"
#include "tracepoint.h"
-#include "common/rsp-low.h"
+#include "gdbsupport/rsp-low.h"
static void ax_vdebug (const char *, ...) ATTRIBUTE_PRINTF (1, 2);
{
#define DEFOP(NAME, SIZE, DATA_SIZE, CONSUMED, PRODUCED, VALUE) \
gdb_agent_op_ ## NAME = VALUE,
-#include "common/ax.def"
+#include "gdbsupport/ax.def"
#undef DEFOP
gdb_agent_op_last
};
{
"?undef?"
#define DEFOP(NAME, SIZE, DATA_SIZE, CONSUMED, PRODUCED, VALUE) , # NAME
-#include "common/ax.def"
+#include "gdbsupport/ax.def"
#undef DEFOP
};
{
0
#define DEFOP(NAME, SIZE, DATA_SIZE, CONSUMED, PRODUCED, VALUE) , SIZE
-#include "common/ax.def"
+#include "gdbsupport/ax.def"
#undef DEFOP
};
#endif
$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
- srv_selftest_objs="common/selftest.o"
+ srv_selftest_objs="gdbsupport/selftest.o"
fi
# Create sub-directories for objects and dependencies.
-CONFIG_SRC_SUBDIR="arch common"
+CONFIG_SRC_SUBDIR="arch gdbsupport"
ac_config_commands="$ac_config_commands gdbdepdir"
. ${srcdir}/configure.srv
# Add in the common host objects.
-. ${srcdir}/../common/common.host
+. ${srcdir}/../gdbsupport/common.host
srv_host_obs="$common_host_obs"
if test "${srv_mingwce}" = "yes"; then
GDB_AC_LIBMCHECK(${libmcheck_default})
GDB_AC_SELFTEST([
- srv_selftest_objs="common/selftest.o"
+ srv_selftest_objs="gdbsupport/selftest.o"
])
ACX_NONCANONICAL_TARGET
ZW_CREATE_DEPDIR
# Create sub-directories for objects and dependencies.
-CONFIG_SRC_SUBDIR="arch common"
+CONFIG_SRC_SUBDIR="arch gdbsupport"
AC_SUBST(CONFIG_SRC_SUBDIR)
AC_CONFIG_COMMANDS([gdbdepdir],[
. ${srcdir}/configure.srv
# Add in the common host objects.
-. ${srcdir}/../common/common.host
+. ${srcdir}/../gdbsupport/common.host
srv_host_obs="$common_host_obs"
if test "${srv_mingwce}" = "yes"; then
#include "server.h"
#include <sys/types.h>
-#include "common/gdb_sys_time.h"
+#include "gdbsupport/gdb_sys_time.h"
#ifdef USE_WIN32API
#include <windows.h>
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "server.h"
-#include "common/job-control.h"
+#include "gdbsupport/job-control.h"
#include "nat/fork-inferior.h"
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#ifndef GDBSERVER_GDB_PROC_SERVICE_H
#define GDBSERVER_GDB_PROC_SERVICE_H
-#include "common/gdb_proc_service.h"
+#include "gdbsupport/gdb_proc_service.h"
/* Structure that identifies the target process. */
struct ps_prochandle
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
-#include "common/version.h"
+#include "gdbsupport/common-defs.h"
+#include "gdbsupport/version.h"
#if HAVE_SYS_FILE_H
#include <sys/file.h>
#include <ws2tcpip.h>
#endif
-#include "common/netstuff.h"
-#include "common/rsp-low.h"
+#include "gdbsupport/netstuff.h"
+#include "gdbsupport/rsp-low.h"
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#ifndef GDBSERVER_GDBTHREAD_H
#define GDBSERVER_GDBTHREAD_H
-#include "common/common-gdbthread.h"
+#include "gdbsupport/common-gdbthread.h"
#include "inferiors.h"
#include <list>
on top of errno. */
#include "server.h"
-#include "common/fileio.h"
+#include "gdbsupport/fileio.h"
void
hostio_last_error_from_errno (char *buf)
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include "common/fileio.h"
+#include "gdbsupport/fileio.h"
struct fd_list
{
#include "server.h"
#include "i387-fp.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
static const int num_mpx_bnd_registers = 4;
static const int num_mpx_cfg_registers = 2;
return get_thread_process (current_thread);
}
-/* See common/common-gdbthread.h. */
+/* See gdbsupport/common-gdbthread.h. */
void
switch_to_thread (ptid_t ptid)
current_thread = find_thread_ptid (ptid);
}
-/* See common/common-inferior.h. */
+/* See gdbsupport/common-inferior.h. */
const char *
get_inferior_cwd ()
return current_inferior_cwd;
}
-/* See common/common-inferior.h. */
+/* See gdbsupport/common-inferior.h. */
void
set_inferior_cwd (const char *cwd)
#ifndef GDBSERVER_INFERIORS_H
#define GDBSERVER_INFERIORS_H
-#include "common/gdb_vecs.h"
+#include "gdbsupport/gdb_vecs.h"
#include <list>
struct thread_info;
#include <sys/mman.h>
#include "tracepoint.h"
#include "linux-x86-tdesc.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
/* Defined in auto-generated file amd64-linux.c. */
void init_registers_amd64_linux (void);
#include <sys/mman.h>
#include "tracepoint.h"
#include "linux-x86-tdesc.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
/* GDB register numbers. */
#include "server.h"
#include "linux-low.h"
#include "nat/linux-osdata.h"
-#include "common/agent.h"
+#include "gdbsupport/agent.h"
#include "tdesc.h"
-#include "common/rsp-low.h"
-#include "common/signals-state-save-restore.h"
+#include "gdbsupport/rsp-low.h"
+#include "gdbsupport/signals-state-save-restore.h"
#include "nat/linux-nat.h"
#include "nat/linux-waitpid.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include "nat/gdb_ptrace.h"
#include "nat/linux-ptrace.h"
#include "nat/linux-procfs.h"
#include <sys/stat.h>
#include <sys/vfs.h>
#include <sys/uio.h>
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include "tracepoint.h"
#include "hostio.h"
#include <inttypes.h>
-#include "common/common-inferior.h"
+#include "gdbsupport/common-inferior.h"
#include "nat/fork-inferior.h"
-#include "common/environ.h"
-#include "common/scoped_restore.h"
+#include "gdbsupport/environ.h"
+#include "gdbsupport/scoped_restore.h"
#ifndef ELFMAG0
/* Don't include <linux/elf.h> here. If it got included by gdb_proc_service.h
then ELFMAG0 will have been defined. If it didn't get included by
#ifdef HAVE_LINUX_BTRACE
# include "nat/linux-btrace.h"
-# include "common/btrace-common.h"
+# include "gdbsupport/btrace-common.h"
#endif
#ifndef HAVE_ELF32_AUXV_T
if (size == 0)
return;
- /* We use hex encoding - see common/rsp-low.h. */
+ /* We use hex encoding - see gdbsupport/rsp-low.h. */
buffer_grow_str (buffer, "<raw>\n");
while (size-- > 0)
};
#if GDB_SELF_TEST
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
namespace selftests {
namespace tdesc {
#include "linux-low.h"
#include "i387-fp.h"
#include "x86-low.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "nat/gdb_ptrace.h"
#ifdef __x86_64__
#include "elf/common.h"
#endif
-#include "common/agent.h"
+#include "gdbsupport/agent.h"
#include "tdesc.h"
#include "tracepoint.h"
#include "ax.h"
#include "tdesc.h"
#include "linux-x86-tdesc.h"
#include "arch/i386.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#ifdef __x86_64__
#include "arch/amd64.h"
#endif
#include "lynx-low.h"
#include <limits.h>
#include <sys/ptrace.h>
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "arch/i386.h"
#include "x86-tdesc.h"
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include <signal.h>
-#include "common/filestuff.h"
-#include "common/common-inferior.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/common-inferior.h"
#include "nat/fork-inferior.h"
int using_threads = 1;
#ifndef GDBSERVER_MEM_BREAK_H
#define GDBSERVER_MEM_BREAK_H
-#include "common/break-common.h"
+#include "gdbsupport/break-common.h"
/* Breakpoints are opaque. */
struct breakpoint;
#include "regcache.h"
#include <x86/context.h>
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "arch/i386.h"
#include "x86-tdesc.h"
#include "regdef.h"
#include "gdbthread.h"
#include "tdesc.h"
-#include "common/rsp-low.h"
+#include "gdbsupport/rsp-low.h"
#ifndef IN_PROCESS_AGENT
struct regcache *
return regcache;
}
-/* See common/common-regcache.h. */
+/* See gdbsupport/common-regcache.h. */
struct regcache *
get_thread_regcache_for_ptid (ptid_t ptid)
return find_register_by_number (tdesc, n).size / 8;
}
-/* See common/common-regcache.h. */
+/* See gdbsupport/common-regcache.h. */
int
regcache_register_size (const struct regcache *regcache, int n)
return regcache->raw_supply (n, buf);
}
-/* See common/common-regcache.h. */
+/* See gdbsupport/common-regcache.h. */
void
regcache::raw_supply (int n, const void *buf)
regcache->raw_collect (n, buf);
}
-/* See common/common-regcache.h. */
+/* See gdbsupport/common-regcache.h. */
void
regcache::raw_collect (int n, void *buf) const
#endif
-/* See common/common-regcache.h. */
+/* See gdbsupport/common-regcache.h. */
enum register_status
regcache::get_register_status (int regnum) const
#endif
}
-/* See common/common-regcache.h. */
+/* See gdbsupport/common-regcache.h. */
bool
regcache::raw_compare (int regnum, const void *buf, int offset) const
#ifndef GDBSERVER_REGCACHE_H
#define GDBSERVER_REGCACHE_H
-#include "common/common-regcache.h"
+#include "gdbsupport/common-regcache.h"
struct thread_info;
struct target_desc;
unsigned char *register_status = nullptr;
#endif
- /* See common/common-regcache.h. */
+ /* See gdbsupport/common-regcache.h. */
enum register_status get_register_status (int regnum) const override;
- /* See common/common-regcache.h. */
+ /* See gdbsupport/common-regcache.h. */
void raw_supply (int regnum, const void *buf) override;
- /* See common/common-regcache.h. */
+ /* See gdbsupport/common-regcache.h. */
void raw_collect (int regnum, void *buf) const override;
- /* See common/common-regcache.h. */
+ /* See gdbsupport/common-regcache.h. */
bool raw_compare (int regnum, const void *buf, int offset) const override;
};
void registers_from_string (struct regcache *regcache, char *buf);
-/* For regcache_read_pc see common/common-regcache.h. */
+/* For regcache_read_pc see gdbsupport/common-regcache.h. */
void regcache_write_pc (struct regcache *regcache, CORE_ADDR pc);
#include "gdbthread.h"
#include "tdesc.h"
#include "dll.h"
-#include "common/rsp-low.h"
-#include "common/netstuff.h"
-#include "common/filestuff.h"
+#include "gdbsupport/rsp-low.h"
+#include "gdbsupport/netstuff.h"
+#include "gdbsupport/filestuff.h"
#include <ctype.h>
#if HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#if HAVE_FCNTL_H
#include <fcntl.h>
#endif
-#include "common/gdb_sys_time.h"
+#include "gdbsupport/gdb_sys_time.h"
#include <unistd.h>
#if HAVE_ARPA_INET_H
#include <arpa/inet.h>
#include "server.h"
#include "gdbthread.h"
-#include "common/agent.h"
+#include "gdbsupport/agent.h"
#include "notif.h"
#include "tdesc.h"
-#include "common/rsp-low.h"
-#include "common/signals-state-save-restore.h"
+#include "gdbsupport/rsp-low.h"
+#include "gdbsupport/signals-state-save-restore.h"
#include <ctype.h>
#include <unistd.h>
#if HAVE_SIGNAL_H
#include <signal.h>
#endif
-#include "common/gdb_vecs.h"
-#include "common/gdb_wait.h"
-#include "common/btrace-common.h"
-#include "common/filestuff.h"
+#include "gdbsupport/gdb_vecs.h"
+#include "gdbsupport/gdb_wait.h"
+#include "gdbsupport/btrace-common.h"
+#include "gdbsupport/filestuff.h"
#include "tracepoint.h"
#include "dll.h"
#include "hostio.h"
#include <vector>
-#include "common/common-inferior.h"
-#include "common/job-control.h"
-#include "common/environ.h"
+#include "gdbsupport/common-inferior.h"
+#include "gdbsupport/job-control.h"
+#include "gdbsupport/environ.h"
#include "filenames.h"
-#include "common/pathstuff.h"
+#include "gdbsupport/pathstuff.h"
-#include "common/selftest.h"
-#include "common/scope-exit.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/scope-exit.h"
#define require_running_or_return(BUF) \
if (!target_running ()) \
return get_first_thread () != NULL;
}
-/* See common/common-inferior.h. */
+/* See gdbsupport/common-inferior.h. */
const char *
get_exec_wrapper ()
return !wrapper_argv.empty () ? wrapper_argv.c_str () : NULL;
}
-/* See common/common-inferior.h. */
+/* See gdbsupport/common-inferior.h. */
char *
get_exec_file (int err)
#ifndef GDBSERVER_SERVER_H
#define GDBSERVER_SERVER_H
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
gdb_static_assert (sizeof (CORE_ADDR) >= sizeof (void *));
#include "wincecompat.h"
#endif
-#include "common/version.h"
+#include "gdbsupport/version.h"
#if !HAVE_DECL_STRERROR
#ifndef strerror
# define PROG "gdbserver"
#endif
-#include "common/buffer.h"
-#include "common/xml-utils.h"
+#include "gdbsupport/buffer.h"
+#include "gdbsupport/xml-utils.h"
#include "regcache.h"
-#include "common/gdb_signals.h"
+#include "gdbsupport/gdb_signals.h"
#include "target.h"
#include "mem-break.h"
-#include "common/environ.h"
+#include "gdbsupport/environ.h"
/* Target-specific functions */
#include "utils.h"
#include "debug.h"
-#include "common/gdb_vecs.h"
+#include "gdbsupport/gdb_vecs.h"
/* Maximum number of bytes to read/write at once. The value here
is chosen to fill up a packet (the headers account for the 32). */
#include "server.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include <sys/ptrace.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/syscall.h>
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include "hostio.h"
#include "nat/fork-inferior.h"
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "server.h"
-#include "common/symbol.h"
+#include "gdbsupport/symbol.h"
-/* See common/symbol.h. */
+/* See gdbsupport/symbol.h. */
int
find_minimal_symbol_address (const char *name, CORE_ADDR *addr,
#include "target/wait.h"
#include "target/waitstatus.h"
#include "mem-break.h"
-#include "common/btrace-common.h"
+#include "gdbsupport/btrace-common.h"
#include <vector>
struct emit_ops;
return current_process ()->tdesc;
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
const char *
tdesc_architecture_name (const struct target_desc *target_desc)
return target_desc->arch;
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
void
set_tdesc_architecture (struct target_desc *target_desc,
target_desc->arch = xstrdup (name);
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
const char *
tdesc_osabi_name (const struct target_desc *target_desc)
return target_desc->osabi;
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
void
set_tdesc_osabi (struct target_desc *target_desc, const char *name)
target_desc->osabi = xstrdup (name);
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
const char *
tdesc_get_features_xml (const target_desc *tdesc)
}
#endif
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
struct tdesc_feature *
tdesc_create_feature (struct target_desc *tdesc, const char *name)
#ifndef GDBSERVER_TDESC_H
#define GDBSERVER_TDESC_H
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
#include "regdef.h"
#include <vector>
#include "gdb_proc_service.h"
#include "nat/gdb_thread_db.h"
-#include "common/gdb_vecs.h"
+#include "gdbsupport/gdb_vecs.h"
#include "nat/linux-procfs.h"
-#include "common/scoped_restore.h"
+#include "gdbsupport/scoped_restore.h"
#ifndef USE_LIBTHREAD_DB_DIRECTLY
#include <dlfcn.h>
#include "server.h"
#include "tracepoint.h"
#include "gdbthread.h"
-#include "common/rsp-low.h"
+#include "gdbsupport/rsp-low.h"
#include <ctype.h>
#include <fcntl.h>
#include "tdesc.h"
#define IPA_SYM_STRUCT_NAME ipa_sym_addresses
-#include "common/agent.h"
+#include "gdbsupport/agent.h"
#define DEFAULT_TRACE_BUFFER_SIZE 5242880 /* 5*1024*1024 */
#include "server.h"
#include "win32-low.h"
#include "x86-low.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#ifdef __x86_64__
#include "arch/amd64.h"
#endif
#include <tlhelp32.h>
#include <psapi.h>
#include <process.h>
-#include "common/gdb_tilde_expand.h"
-#include "common/common-inferior.h"
+#include "gdbsupport/gdb_tilde_expand.h"
+#include "gdbsupport/common-inferior.h"
#ifndef USE_WIN32API
#include <sys/cygwin.h>
#include "common-defs.h"
#include "target/target.h"
-#include "common/symbol.h"
+#include "gdbsupport/symbol.h"
#include <unistd.h>
#include "filestuff.h"
#ifndef COMMON_AGENT_H
#define COMMON_AGENT_H
-#include "common/preprocessor.h"
+#include "gdbsupport/preprocessor.h"
int agent_run_command (int pid, const char *cmd, int len);
/* Define an entry in an IPA symbol list array. If IPA_SYM is used, the macro
IPA_SYM_STRUCT_NAME must be defined to the structure name holding the IPA
symbol addresses in that particular file, before including
- common/agent.h. */
+ gdbsupport/agent.h. */
#define IPA_SYM(SYM) \
{ \
STRINGIFY (IPA_SYM_EXPORTED_NAME (SYM)), \
#ifndef COMMON_BYTE_VECTOR_H
#define COMMON_BYTE_VECTOR_H
-#include "common/def-vector.h"
+#include "gdbsupport/def-vector.h"
namespace gdb {
#include "common-defs.h"
#include "common-debug.h"
-/* See common/common-debug.h. */
+/* See gdbsupport/common-debug.h. */
int show_debug_regs;
-/* See common/common-debug.h. */
+/* See gdbsupport/common-debug.h. */
void
debug_printf (const char *fmt, ...)
#include "common-debug.h"
#include "cleanups.h"
#include "common-exceptions.h"
-#include "common/poison.h"
+#include "gdbsupport/poison.h"
#define EXTERN_C extern "C"
#define EXTERN_C_PUSH extern "C" {
#define EXTERN_C_POP }
/* Pull in gdb::unique_xmalloc_ptr. */
-#include "common/gdb_unique_ptr.h"
+#include "gdbsupport/gdb_unique_ptr.h"
/* String containing the current directory (what getwd would return). */
extern char *current_directory;
return (char *) skip_to_space ((const char *) chp);
}
-/* See common/common-utils.h. */
+/* See gdbsupport/common-utils.h. */
void
free_vector_argv (std::vector<char *> &v)
v.clear ();
}
-/* See common/common-utils.h. */
+/* See gdbsupport/common-utils.h. */
std::string
stringify_argv (const std::vector<char *> &args)
return ret;
}
-/* See common/common-utils.h. */
+/* See gdbsupport/common-utils.h. */
ULONGEST
align_up (ULONGEST v, int n)
return (v + n - 1) & -n;
}
-/* See common/common-utils.h. */
+/* See gdbsupport/common-utils.h. */
ULONGEST
align_down (ULONGEST v, int n)
case "${host}" in
-*-mingw*) common_host_obs=common/mingw-strerror.o
+*-mingw*) common_host_obs=gdbsupport/mingw-strerror.o
;;
*)
- common_host_obs=common/posix-strerror.o
+ common_host_obs=gdbsupport/posix-strerror.o
;;
esac
rm -f version.c-tmp $output version.tmp
date=`sed -n -e 's/^.* BFD_VERSION_DATE \(.*\)$/\1/p' $srcdir/../bfd/version.h`
sed -e "s/DATE/$date/" < $srcdir/version.in > version.tmp
-echo '#include "common/version.h"' >> version.c-tmp
+echo '#include "gdbsupport/version.h"' >> version.c-tmp
echo 'const char version[] = "'"`sed q version.tmp`"'";' >> version.c-tmp
echo 'const char host_name[] = "'"$host_alias"'";' >> version.c-tmp
echo 'const char target_name[] = "'"$target_alias"'";' >> version.c-tmp
#define COMMON_DEF_VECTOR_H
#include <vector>
-#include "common/default-init-alloc.h"
+#include "gdbsupport/default-init-alloc.h"
namespace gdb {
#include <algorithm>
#include <utility>
-/* See common/environ.h. */
+/* See gdbsupport/environ.h. */
gdb_environ &
gdb_environ::operator= (gdb_environ &&e)
return *this;
}
-/* See common/environ.h. */
+/* See gdbsupport/environ.h. */
gdb_environ gdb_environ::from_host_environ ()
{
return e;
}
-/* See common/environ.h. */
+/* See gdbsupport/environ.h. */
void
gdb_environ::clear ()
return false;
}
-/* See common/environ.h. */
+/* See gdbsupport/environ.h. */
const char *
gdb_environ::get (const char *var) const
return NULL;
}
-/* See common/environ.h. */
+/* See gdbsupport/environ.h. */
void
gdb_environ::set (const char *var, const char *value)
m_user_unset_env.erase (std::string (var));
}
-/* See common/environ.h. */
+/* See gdbsupport/environ.h. */
void
gdb_environ::unset (const char *var, bool update_unset_list)
m_user_unset_env.insert (std::string (var));
}
-/* See common/environ.h. */
+/* See gdbsupport/environ.h. */
void
gdb_environ::unset (const char *var)
unset (var, true);
}
-/* See common/environ.h. */
+/* See gdbsupport/environ.h. */
char **
gdb_environ::envp () const
return const_cast<char **> (&m_environ_vector[0]);
}
-/* See common/environ.h. */
+/* See gdbsupport/environ.h. */
const std::set<std::string> &
gdb_environ::user_set_env () const
#include "common-defs.h"
#include "errors.h"
-/* See common/errors.h. */
+/* See gdbsupport/errors.h. */
void
warning (const char *fmt, ...)
va_end (ap);
}
-/* See common/errors.h. */
+/* See gdbsupport/errors.h. */
void
error (const char *fmt, ...)
va_end (ap);
}
-/* See common/errors.h. */
+/* See gdbsupport/errors.h. */
void
internal_error (const char *file, int line, const char *fmt, ...)
va_end (ap);
}
-/* See common/errors.h. */
+/* See gdbsupport/errors.h. */
void
internal_warning (const char *file, int line, const char *fmt, ...)
return result;
}
-/* See common/filestuff.h. */
+/* See gdbsupport/filestuff.h. */
bool
is_regular_file (const char *name, int *errno_ptr)
return false;
}
-/* See common/filestuff.h. */
+/* See gdbsupport/filestuff.h. */
bool
mkdir_recursive (const char *dir)
#ifndef COMMON_FORMAT_H
#define COMMON_FORMAT_H
-#include "common/gdb_string_view.h"
+#include "gdbsupport/gdb_string_view.h"
#if defined(__MINGW32__) && !defined(PRINTF_HAS_LONG_LONG)
# define USE_PRINTF_I64 1
#ifndef COMMON_FORWARD_SCOPE_EXIT_H
#define COMMON_FORWARD_SCOPE_EXIT_H
-#include "common/scope-exit.h"
+#include "gdbsupport/scope-exit.h"
#include <functional>
/* A forward_scope_exit is like scope_exit, but instead of giving it a
#ifndef COMMON_GDB_OPTIONAL_H
#define COMMON_GDB_OPTIONAL_H
-#include "common/traits.h"
+#include "gdbsupport/traits.h"
namespace gdb
{
glob_t m_glob;
};
-/* See common/gdb_tilde_expand.h. */
+/* See gdbsupport/gdb_tilde_expand.h. */
std::string
gdb_tilde_expand (const char *dir)
return expanded_dir;
}
-/* See common/gdb_tilde_expand.h. */
+/* See gdbsupport/gdb_tilde_expand.h. */
gdb::unique_xmalloc_ptr<char>
gdb_tilde_expand_up (const char *dir)
return retval;
}
-/* See common/common-terminal.h. */
+/* See gdbsupport/common-terminal.h. */
void
have_job_control ()
/* 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
- common/common-inflow.c. */
+ gdbsupport/common-inflow.c. */
extern int job_control;
/* Set the process group of the caller to its own pid, or do nothing
#include <netinet/tcp.h>
#endif
-/* See common/netstuff.h. */
+/* See gdbsupport/netstuff.h. */
scoped_free_addrinfo::~scoped_free_addrinfo ()
{
freeaddrinfo (m_res);
}
-/* See common/netstuff.h. */
+/* See gdbsupport/netstuff.h. */
parsed_connection_spec
parse_connection_spec_without_prefix (std::string spec, struct addrinfo *hint)
return ret;
}
-/* See common/netstuff.h. */
+/* See gdbsupport/netstuff.h. */
parsed_connection_spec
parse_connection_spec (const char *spec, struct addrinfo *hint)
#include <windows.h>
#endif
-/* See common/pathstuff.h. */
+/* See gdbsupport/pathstuff.h. */
gdb::unique_xmalloc_ptr<char>
gdb_realpath (const char *filename)
return make_unique_xstrdup (filename);
}
-/* See common/pathstuff.h. */
+/* See gdbsupport/pathstuff.h. */
gdb::unique_xmalloc_ptr<char>
gdb_realpath_keepfile (const char *filename)
return gdb::unique_xmalloc_ptr<char> (result);
}
-/* See common/pathstuff.h. */
+/* See gdbsupport/pathstuff.h. */
gdb::unique_xmalloc_ptr<char>
gdb_abspath (const char *path)
path, (char *) NULL));
}
-/* See common/pathstuff.h. */
+/* See gdbsupport/pathstuff.h. */
const char *
child_path (const char *parent, const char *child)
return NULL;
}
-/* See common/pathstuff.h. */
+/* See gdbsupport/pathstuff.h. */
bool
contains_dir_separator (const char *path)
return false;
}
-/* See common/pathstuff.h. */
+/* See gdbsupport/pathstuff.h. */
std::string
get_standard_cache_dir ()
return {};
}
-/* See common/pathstuff.h. */
+/* See gdbsupport/pathstuff.h. */
std::string
get_standard_temp_dir ()
#endif
}
-/* See common/pathstuff.h. */
+/* See gdbsupport/pathstuff.h. */
const char *
get_shell ()
return ret;
}
-/* See common/pathstuff.h. */
+/* See gdbsupport/pathstuff.h. */
gdb::char_vector
make_temp_filename (const std::string &f)
#ifndef COMMON_PATHSTUFF_H
#define COMMON_PATHSTUFF_H
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
/* Path utilities. */
#ifndef COMMON_RSP_LOW_H
#define COMMON_RSP_LOW_H
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
/* Convert hex digit A to a number, or throw an exception. */
#include <functional>
#include <type_traits>
-#include "common/preprocessor.h"
+#include "gdbsupport/preprocessor.h"
/* scope_exit is a general-purpose scope guard that calls its exit
function at the end of the current scope. A scope_exit may be
#include "common-defs.h"
#include "scoped_mmap.h"
#include "scoped_fd.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#ifdef HAVE_SYS_MMAN_H
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "common-defs.h"
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
tdesc_reg::tdesc_reg (struct tdesc_feature *feature, const std::string &name_,
int regnum, int save_restore_, const char *group_,
gdb_assert_not_reached ("bad predefined tdesc type");
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
struct tdesc_type *
tdesc_named_type (const struct tdesc_feature *feature, const char *id)
return NULL;
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
void
tdesc_create_reg (struct tdesc_feature *feature, const char *name,
feature->registers.emplace_back (reg);
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
struct tdesc_type *
tdesc_create_vector (struct tdesc_feature *feature, const char *name,
return type;
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
tdesc_type_with_fields *
tdesc_create_struct (struct tdesc_feature *feature, const char *name)
return type;
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
void
tdesc_set_struct_size (tdesc_type_with_fields *type, int size)
type->size = size;
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
tdesc_type_with_fields *
tdesc_create_union (struct tdesc_feature *feature, const char *name)
return type;
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
tdesc_type_with_fields *
tdesc_create_flags (struct tdesc_feature *feature, const char *name,
return type;
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
tdesc_type_with_fields *
tdesc_create_enum (struct tdesc_feature *feature, const char *name,
return type;
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
void
tdesc_add_field (tdesc_type_with_fields *type, const char *field_name,
type->fields.emplace_back (field_name, field_type, -1, -1);
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
void
tdesc_add_typed_bitfield (tdesc_type_with_fields *type, const char *field_name,
type->fields.emplace_back (field_name, field_type, start, end);
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
void
tdesc_add_bitfield (tdesc_type_with_fields *type, const char *field_name,
tdesc_add_typed_bitfield (type, field_name, start, end, field_type);
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
void
tdesc_add_flag (tdesc_type_with_fields *type, int start,
start, start);
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
void
tdesc_add_enum_value (tdesc_type_with_fields *type, int value,
#ifndef COMMON_VALID_EXPR_H
#define COMMON_VALID_EXPR_H
-#include "common/preprocessor.h"
-#include "common/traits.h"
+#include "gdbsupport/preprocessor.h"
+#include "gdbsupport/traits.h"
/* Macro that uses SFINAE magic to detect whether the EXPR expression
is either valid or ill-formed, at compile time, without actually
#include "frame.h"
#include "ui-out.h"
#include "btrace.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "target/waitstatus.h"
#include "cli/cli-utils.h"
-#include "common/refcounted-object.h"
-#include "common/common-gdbthread.h"
-#include "common/forward-scope-exit.h"
+#include "gdbsupport/refcounted-object.h"
+#include "gdbsupport/common-gdbthread.h"
+#include "gdbsupport/forward-scope-exit.h"
struct inferior;
*/
#include "hashtab.h"
-#include "common/array-view.h"
-#include "common/offset-type.h"
-#include "common/enum-flags.h"
-#include "common/underlying.h"
-#include "common/print-utils.h"
+#include "gdbsupport/array-view.h"
+#include "gdbsupport/offset-type.h"
+#include "gdbsupport/enum-flags.h"
+#include "gdbsupport/underlying.h"
+#include "gdbsupport/print-utils.h"
#include "gdbarch.h"
/* Forward declarations for prototypes. */
#include "value.h"
#include "language.h"
#include "target.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include "gdbcmd.h"
#include "gdbcore.h"
#include "gdbthread.h"
#include "inferior.h"
#include "infrun.h"
#include "gdbthread.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include "gdbcore.h"
#include "command.h"
#include "gdbcmd.h"
#include "top.h"
#include "extension-priv.h"
#include "utils.h"
-#include "common/version.h"
+#include "gdbsupport/version.h"
#ifdef HAVE_GUILE
#include "guile.h"
#include "guile-internal.h"
#include "top.h"
#include "target.h"
#include "guile-internal.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
#ifdef HAVE_POLL
#if defined (HAVE_POLL_H)
#include "defs.h"
#include "filenames.h"
#include "guile-internal.h"
-#include "common/pathstuff.h"
+#include "gdbsupport/pathstuff.h"
/* Struct to marshall args to scscm_safe_call_body. */
#include "gdbtypes.h"
#include "objfiles.h"
#include "language.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "bcache.h"
#include "dwarf2loc.h"
#include "typeprint.h"
#include "fbsd-nat.h"
#include "i386-tdep.h"
#include "x86-nat.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "x86-bsd-nat.h"
#include "i386-bsd-nat.h"
#include "regcache.h"
#include "regset.h"
#include "i386-fbsd-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "i386-tdep.h"
#include "i387-tdep.h"
#include "defs.h"
#include "i386-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "target-descriptions.h"
#include "osabi.h"
#include "i387-tdep.h"
#include "i386-tdep.h"
#include "i386-linux-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "x86-linux-nat.h"
#include "nat/linux-ptrace.h"
#include "xml-syscall.h"
#include "i387-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
/* The syscall's XML filename for i386. */
#define XML_SYSCALL_FILENAME_I386 "syscalls/i386-linux.xml"
#include "remote.h"
#include "i386-tdep.h"
#include "i387-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "x86-tdep.h"
#include "record.h"
#include "i386-tdep.h"
#include "i387-tdep.h"
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
/* Print the floating point number specified by RAW. */
#include "ia64-libunwind-tdep.h"
#include "complaints.h"
-#include "common/preprocessor.h"
+#include "gdbsupport/preprocessor.h"
/* IA-64 is the only target that currently uses ia64-libunwind-tdep.
Note how UNW_TARGET, UNW_OBJ, etc. are compile time constants below.
#include <signal.h>
#include "nat/gdb_ptrace.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#ifdef HAVE_SYS_REG_H
#include <sys/reg.h>
#endif
#include "inferior.h"
#include <sys/stat.h>
#include "inf-child.h"
-#include "common/fileio.h"
-#include "common/agent.h"
-#include "common/gdb_wait.h"
-#include "common/filestuff.h"
+#include "gdbsupport/fileio.h"
+#include "gdbsupport/agent.h"
+#include "gdbsupport/gdb_wait.h"
+#include "gdbsupport/filestuff.h"
#include <sys/types.h>
#include <fcntl.h>
#include "gdbcore.h"
#include "regcache.h"
#include "nat/gdb_ptrace.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include <signal.h>
#include "inf-ptrace.h"
#include "interps.h"
#include "thread-fsm.h"
#include <algorithm>
-#include "common/scope-exit.h"
+#include "gdbsupport/scope-exit.h"
/* If we can't find a function's name from its address,
we print this instead. */
#define INFCALL_H
#include "dummy-frame.h"
-#include "common/array-view.h"
+#include "gdbsupport/array-view.h"
struct value;
struct type;
#include "frame.h"
#include "inferior.h"
#include "infrun.h"
-#include "common/environ.h"
+#include "gdbsupport/environ.h"
#include "value.h"
#include "gdbcmd.h"
#include "symfile.h"
#include "thread-fsm.h"
#include "top.h"
#include "interps.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
#include "source.h"
/* Local functions: */
deprecated_show_value_hack (file, from_tty, c, get_inferior_args ());
}
-/* See common/common-inferior.h. */
+/* See gdbsupport/common-inferior.h. */
void
set_inferior_cwd (const char *cwd)
inf->cwd.reset (xstrdup (cwd));
}
-/* See common/common-inferior.h. */
+/* See gdbsupport/common-inferior.h. */
const char *
get_inferior_cwd ()
#ifndef INFERIOR_ITER_H
#define INFERIOR_ITER_H
-#include "common/filtered-iterator.h"
-#include "common/safe-iterator.h"
+#include "gdbsupport/filtered-iterator.h"
+#include "gdbsupport/safe-iterator.h"
/* A forward iterator that iterates over all inferiors. */
#include "observable.h"
#include "gdbcore.h"
#include "symfile.h"
-#include "common/environ.h"
+#include "gdbsupport/environ.h"
#include "cli/cli-utils.h"
#include "continuations.h"
#include "arch-utils.h"
#include "frame.h"
/* For gdb_environ. */
-#include "common/environ.h"
+#include "gdbsupport/environ.h"
#include "progspace.h"
#include "registry.h"
#include "symfile-add-flags.h"
-#include "common/refcounted-object.h"
-#include "common/forward-scope-exit.h"
+#include "gdbsupport/refcounted-object.h"
+#include "gdbsupport/forward-scope-exit.h"
-#include "common/common-inferior.h"
+#include "gdbsupport/common-inferior.h"
#include "gdbthread.h"
struct infcall_suspend_state;
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
-#include "common/job-control.h"
+#include "gdbsupport/job-control.h"
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#include <unistd.h>
#include <signal.h>
-#include "common/job-control.h"
+#include "gdbsupport/job-control.h"
/* RAII class used to ignore SIGTTOU in a scope. */
#include "frame.h"
#include "inferior.h"
#include "breakpoint.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include "gdbcore.h"
#include "gdbcmd.h"
#include "cli/cli-script.h"
#include "solist.h"
#include "event-loop.h"
#include "thread-fsm.h"
-#include "common/enum-flags.h"
+#include "gdbsupport/enum-flags.h"
#include "progspace-and-thread.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
#include "arch-utils.h"
-#include "common/scope-exit.h"
-#include "common/forward-scope-exit.h"
+#include "gdbsupport/scope-exit.h"
+#include "gdbsupport/forward-scope-exit.h"
/* Prototypes for local functions */
#define INFRUN_H 1
#include "symtab.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
struct target_waitstatus;
struct frame_info;
#include "gdbthread.h"
#include "regcache.h"
#include "symtab.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "frame.h"
#include <algorithm>
#define LANGUAGE_H 1
#include "symtab.h"
-#include "common/function-view.h"
+#include "gdbsupport/function-view.h"
#include "expression.h"
/* Forward decls for prototypes. */
#include "ada-lang.h"
#include "stack.h"
#include "location.h"
-#include "common/function-view.h"
-#include "common/def-vector.h"
+#include "gdbsupport/function-view.h"
+#include "gdbsupport/def-vector.h"
#include <algorithm>
/* An enumeration of the various things a user might attempt to
#include "source.h"
#include "nat/gdb_ptrace.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include <dirent.h>
#include <ctype.h>
#include "target.h"
#include "nat/linux-nat.h"
#include "nat/linux-waitpid.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include <unistd.h>
#include <sys/syscall.h>
#include "nat/gdb_ptrace.h"
#include "nat/linux-osdata.h"
#include "linux-tdep.h"
#include "symfile.h"
-#include "common/agent.h"
+#include "gdbsupport/agent.h"
#include "tracepoint.h"
-#include "common/buffer.h"
+#include "gdbsupport/buffer.h"
#include "target-descriptions.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include "objfiles.h"
#include "nat/linux-namespaces.h"
-#include "common/fileio.h"
-#include "common/scope-exit.h"
+#include "gdbsupport/fileio.h"
+#include "gdbsupport/scope-exit.h"
#ifndef SPUFS_MAGIC
#define SPUFS_MAGIC 0x23c9b64e
#include "infcall.h"
#include "gdbcmd.h"
#include "gdb_regex.h"
-#include "common/enum-flags.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/enum-flags.h"
+#include "gdbsupport/gdb_optional.h"
#include <ctype.h>
#include <dlfcn.h>
#include "gdb_proc_service.h"
#include "nat/gdb_thread_db.h"
-#include "common/gdb_vecs.h"
+#include "gdbsupport/gdb_vecs.h"
#include "bfd.h"
#include "command.h"
#include "gdbcmd.h"
#include <ctype.h>
#include "nat/linux-namespaces.h"
#include <algorithm>
-#include "common/pathstuff.h"
+#include "gdbsupport/pathstuff.h"
#include "valprint.h"
/* GNU/Linux libthread_db support.
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/gdb_assert.h"
+#include "gdbsupport/gdb_assert.h"
#include "location.h"
#include "symtab.h"
#include "language.h"
#include "gdbcore.h"
#include "mach-o.h"
#include "aout/stab_gnu.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "psympriv.h"
#include "complaints.h"
#include "gdb_bfd.h"
#ifndef MACROTAB_H
#define MACROTAB_H
-#include "common/function-view.h"
+#include "gdbsupport/function-view.h"
struct obstack;
struct bcache;
#include "maint.h"
#include "filenames.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include <signal.h>
#include "event-top.h"
#include "infrun.h"
-#include "common/signals-state-save-restore.h"
+#include "gdbsupport/signals-state-save-restore.h"
#include <vector>
-#include "common/pathstuff.h"
+#include "gdbsupport/pathstuff.h"
#include "cli/cli-style.h"
/* The selected interpreter. This will be used as a set command
#include "value.h"
#include "top.h"
#include "maint.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "cli/cli-decode.h"
#include "cli/cli-utils.h"
#ifndef MAINT_H
#define MAINT_H
-#include "common/run-time-clock.h"
+#include "gdbsupport/run-time-clock.h"
#include <chrono>
extern void set_per_command_time (int);
#include "target-dcache.h"
#include "value.h"
#include "language.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "breakpoint.h"
#include "cli/cli-utils.h"
#include <algorithm>
#ifndef MEMRANGE_H
#define MEMRANGE_H
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
/* Defines a [START, START + LENGTH) memory range. */
#ifndef MI_MI_CMD_BREAK_H
#define MI_MI_CMD_BREAK_H
-#include "common/scoped_restore.h"
+#include "gdbsupport/scoped_restore.h"
/* Setup the reporting of the insertion of a new breakpoint or
catchpoint. */
#include "mi-getopt.h"
#include "symtab.h"
#include "target.h"
-#include "common/environ.h"
+#include "gdbsupport/environ.h"
#include "command.h"
#include "ui-out.h"
#include "top.h"
#include "extension.h"
#include <ctype.h>
#include "mi-parse.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
#include "safe-ctype.h"
enum what_to_list { locals, arguments, all };
#include "mi-getopt.h"
#include "gdbthread.h"
#include "mi-parse.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
#include "inferior.h"
extern unsigned int varobjdebug; /* defined in varobj.c. */
#include "cli-out.h"
#include "thread-fsm.h"
#include "cli/cli-interp.h"
-#include "common/scope-exit.h"
+#include "gdbsupport/scope-exit.h"
/* These are the interpreter setup, etc. functions for the MI
interpreter. */
#include "language.h"
#include "valprint.h"
#include "osdata.h"
-#include "common/gdb_splay_tree.h"
+#include "gdbsupport/gdb_splay_tree.h"
#include "tracepoint.h"
#include "ctf.h"
#include "ada-lang.h"
#include "extension.h"
#include "gdbcmd.h"
#include "observable.h"
-#include "common/gdb_optional.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/gdb_optional.h"
+#include "gdbsupport/byte-vector.h"
#include <ctype.h>
-#include "common/run-time-clock.h"
+#include "gdbsupport/run-time-clock.h"
#include <chrono>
#include "progspace-and-thread.h"
-#include "common/rsp-low.h"
+#include "gdbsupport/rsp-low.h"
#include <algorithm>
#include <set>
#include <map>
#ifndef MI_MI_PARSE_H
#define MI_MI_PARSE_H
-#include "common/run-time-clock.h"
+#include "gdbsupport/run-time-clock.h"
#include <chrono>
#include "mi-cmds.h" /* For enum print_values. */
#include "cp-support.h"
#include "language.h"
#include "cli/cli-utils.h"
-#include "common/symbol.h"
+#include "gdbsupport/symbol.h"
#include <algorithm>
#include "safe-ctype.h"
return lookup_minimal_symbol (name, NULL, NULL);
}
-/* See common/symbol.h. */
+/* See gdbsupport/symbol.h. */
int
find_minimal_symbol_address (const char *name, CORE_ADDR *addr,
#include "glibc-tdep.h"
#include "linux-tdep.h"
#include "xml-syscall.h"
-#include "common/gdb_signals.h"
+#include "gdbsupport/gdb_signals.h"
#include "features/mips-linux.c"
#include "features/mips-dsp-linux.c"
}
/* Translate signals based on MIPS signal values.
- Adapted from gdb/common/signals.c. */
+ Adapted from gdb/gdbsupport/signals.c. */
static enum gdb_signal
mips_gdb_signal_from_target (struct gdbarch *gdbarch, int signal)
#ifndef NAMESPACE_H
#define NAMESPACE_H
-#include "common/vec.h"
-#include "common/gdb_vecs.h"
+#include "gdbsupport/vec.h"
+#include "gdbsupport/gdb_vecs.h"
#include "gdb_obstack.h"
/* This struct is designed to store data from using directives. It
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
-#include "common/break-common.h"
-#include "common/common-regcache.h"
+#include "gdbsupport/common-defs.h"
+#include "gdbsupport/break-common.h"
+#include "gdbsupport/common-regcache.h"
#include "nat/linux-nat.h"
#include "aarch64-linux-hw-point.h"
#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. */
+#include "gdbsupport/break-common.h" /* For enum target_hw_bp_type. */
/* Macro definitions, data structures, and code for the hardware
breakpoint and hardware watchpoint support follow. We use the
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
-#include "common/break-common.h"
+#include "gdbsupport/common-defs.h"
+#include "gdbsupport/break-common.h"
#include "nat/linux-nat.h"
#include "nat/aarch64-linux-hw-point.h"
#include "nat/aarch64-linux.h"
#include <sys/utsname.h>
#include <sys/uio.h>
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "elf/external.h"
#include "elf/common.h"
#include "aarch64-sve-linux-ptrace.h"
#include "arch/aarch64.h"
-#include "common/common-regcache.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/common-regcache.h"
+#include "gdbsupport/byte-vector.h"
/* See nat/aarch64-sve-linux-ptrace.h. */
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <signal.h>
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "amd64-linux-siginfo.h"
#define GDB_SI_SIZE 128
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "fork-inferior.h"
#include "target/waitstatus.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include "target/target.h"
-#include "common/common-inferior.h"
-#include "common/common-gdbthread.h"
-#include "common/pathstuff.h"
-#include "common/signals-state-save-restore.h"
-#include "common/gdb_tilde_expand.h"
+#include "gdbsupport/common-inferior.h"
+#include "gdbsupport/common-gdbthread.h"
+#include "gdbsupport/pathstuff.h"
+#include "gdbsupport/signals-state-save-restore.h"
+#include "gdbsupport/gdb_tilde_expand.h"
#include <vector>
extern char **environ;
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "linux-btrace.h"
-#include "common/common-regcache.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/common-regcache.h"
+#include "gdbsupport/gdb_wait.h"
#include "x86-cpuid.h"
-#include "common/filestuff.h"
-#include "common/scoped_fd.h"
-#include "common/scoped_mmap.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/scoped_fd.h"
+#include "gdbsupport/scoped_mmap.h"
#include <inttypes.h>
#ifndef NAT_LINUX_BTRACE_H
#define NAT_LINUX_BTRACE_H
-#include "common/btrace-common.h"
-#include "common/vec.h"
+#include "gdbsupport/btrace-common.h"
+#include "gdbsupport/vec.h"
#if HAVE_LINUX_PERF_EVENT_H
# include <linux/perf_event.h>
#endif
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "nat/linux-namespaces.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include <fcntl.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include <signal.h>
#include <sched.h>
-#include "common/scope-exit.h"
+#include "gdbsupport/scope-exit.h"
/* See nat/linux-namespaces.h. */
int debug_linux_namespaces;
#ifndef NAT_LINUX_NAT_H
#define NAT_LINUX_NAT_H
-#include "common/function-view.h"
+#include "gdbsupport/function-view.h"
#include "target/waitstatus.h"
struct lwp_info;
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "linux-osdata.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include "common/xml-utils.h"
-#include "common/buffer.h"
+#include "gdbsupport/xml-utils.h"
+#include "gdbsupport/buffer.h"
#include <dirent.h>
#include <sys/stat.h>
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include <algorithm>
#define NAMELEN(dirent) strlen ((dirent)->d_name)
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "nat/linux-personality.h"
#ifdef HAVE_PERSONALITY
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "linux-procfs.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include <dirent.h>
#include <sys/stat.h>
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "linux-ptrace.h"
#include "linux-procfs.h"
#include "linux-waitpid.h"
-#include "common/buffer.h"
+#include "gdbsupport/buffer.h"
#ifdef HAVE_SYS_PROCFS_H
#include <sys/procfs.h>
#endif
struct buffer;
#include "nat/gdb_ptrace.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#ifdef __UCLIBC__
#if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__))
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "linux-nat.h"
#include "linux-waitpid.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
/* Convert wait status STATUS to a string. Used for printing debug
messages only. */
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "nat/gdb_ptrace.h"
#include "mips-linux-watch.h"
#define NAT_MIPS_LINUX_WATCH_H
#include <asm/ptrace.h>
-#include "common/break-common.h"
+#include "gdbsupport/break-common.h"
#define MAX_DEBUG_REGISTER 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/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "ppc-linux.h"
#include "nat/gdb_ptrace.h"
#include <elf.h>
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "x86-dregs.h"
-#include "common/break-common.h"
+#include "gdbsupport/break-common.h"
/* Support for hardware watchpoints and breakpoints using the x86
debug registers.
(32 bytes on 64 bit hosts). */
-#include "common/break-common.h" /* target_hw_bp_type */
+#include "gdbsupport/break-common.h" /* target_hw_bp_type */
/* Low-level function vector. */
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "nat/gdb_ptrace.h"
#include <sys/user.h>
#include "target/waitstatus.h"
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "x86-linux.h"
#include "x86-linux-dregs.h"
#include "regcache.h"
#include "solib.h"
#include "inf-child.h"
-#include "common/filestuff.h"
-#include "common/scoped_fd.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/scoped_fd.h"
#define NULL_PID 0
#define _DEBUG_FLAG_TRACE (_DEBUG_FLAG_TRACE_EXEC|_DEBUG_FLAG_TRACE_RD|\
#include "gdbcore.h"
#include "objfiles.h"
#include "source.h"
-#include "common/pathstuff.h"
+#include "gdbsupport/pathstuff.h"
#define QNX_NOTE_NAME "QNX"
#define QNX_INFO_SECT_NAME "QNX_info"
#if !defined (OBJFILE_FLAGS_H)
#define OBJFILE_FLAGS_H
-#include "common/enum-flags.h"
+#include "gdbsupport/enum-flags.h"
/* Defines for the objfile flags field. Defined in a separate file to
break circular header dependencies. */
#include "solist.h"
#include "gdb_bfd.h"
#include "btrace.h"
-#include "common/pathstuff.h"
+#include "gdbsupport/pathstuff.h"
#include <vector>
#include "psymtab.h"
#include <bitset>
#include <vector>
-#include "common/next-iterator.h"
-#include "common/safe-iterator.h"
+#include "gdbsupport/next-iterator.h"
+#include "gdbsupport/safe-iterator.h"
#include "bcache.h"
struct htab;
#include <sys/types.h>
#include <sys/ptrace.h>
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include "inf-child.h"
#include "obsd-nat.h"
#ifndef OBSERVABLE_H
#define OBSERVABLE_H
-#include "common/observable.h"
+#include "gdbsupport/observable.h"
struct bpstats;
struct so_list;
#include "defs.h"
#include "target.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "xml-support.h"
#include "osdata.h"
#include "ui-out.h"
#include "cp-abi.h"
#include "cp-support.h"
#include "objfiles.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
\f
/* Decorations for Pascal. */
#include "objfiles.h"
#include "user-regs.h"
#include <algorithm>
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
/* Standard set of definitions for printing, dumping, prefixifying,
* and evaluating expressions. */
#if !defined (PARSER_DEFS_H)
#define PARSER_DEFS_H 1
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "expression.h"
struct block;
#include <sys/user.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include <fcntl.h>
#include <sys/procfs.h>
#include "nat/gdb_ptrace.h"
#include "cli/cli-option.h"
#include "cli/cli-script.h"
#include "cli/cli-style.h"
-#include "common/format.h"
+#include "gdbsupport/format.h"
#include "source.h"
-#include "common/byte-vector.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/byte-vector.h"
+#include "gdbsupport/gdb_optional.h"
/* Last specified output format. */
#include "location.h"
#include <ctype.h>
#include <algorithm>
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
/* Class that implements the static probe methods for "any" probe. */
#include <sys/proc.h> /* for struct proc */
#include <sys/user.h> /* for struct user */
#include <fcntl.h> /* for O_RDWR etc. */
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include "proc-utils.h"
#include "regcache.h"
#include "inf-child.h"
#include "nat/fork-inferior.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#define _STRUCTURED_PROC 1 /* Should be done by configure script. */
#include <sys/procfs.h>
#include <sys/fault.h>
#include <sys/syscall.h>
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include <signal.h>
#include <ctype.h>
#include "gdb_bfd.h"
#include "auxv.h"
#include "procfs.h"
#include "observable.h"
-#include "common/scoped_fd.h"
-#include "common/pathstuff.h"
+#include "gdbsupport/scoped_fd.h"
+#include "gdbsupport/pathstuff.h"
/* This module provides the interface between GDB and the
/proc file system, which is used on many versions of Unix
#include "defs.h"
#include "producer.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
/* See producer.h. */
#define PROGSPACE_H
#include "target.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "gdb_bfd.h"
-#include "common/gdb_vecs.h"
+#include "gdbsupport/gdb_vecs.h"
#include "registry.h"
-#include "common/next-iterator.h"
-#include "common/safe-iterator.h"
+#include "gdbsupport/next-iterator.h"
+#include "gdbsupport/safe-iterator.h"
struct target_ops;
struct bfd;
#include "gdb_obstack.h"
#include "symfile.h"
-#include "common/next-iterator.h"
+#include "gdbsupport/next-iterator.h"
#include "bcache.h"
struct partial_symbol;
#include "demangle.h"
#include "mi/mi-cmds.h"
#include "python-internal.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
enum mi_print_types
{
#include "python-internal.h"
#include "arch-utils.h"
#include "language.h"
-#include "common/gdb_signals.h"
+#include "gdbsupport/gdb_signals.h"
#include "py-event.h"
#include "py-stopevent.h"
#ifndef PYTHON_PY_REF_H
#define PYTHON_PY_REF_H
-#include "common/gdb_ref_ptr.h"
+#include "gdbsupport/gdb_ref_ptr.h"
/* A policy class for gdb::ref_ptr for Python reference counting. */
template<typename T>
#include "demangle.h"
#include "objfiles.h"
#include "language.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "typeprint.h"
typedef struct pyty_type_object
#include "python-internal.h"
#include "linespec.h"
#include "source.h"
-#include "common/version.h"
+#include "gdbsupport/version.h"
#include "target.h"
#include "gdbthread.h"
#include "interps.h"
#include "infrun.h"
#include "event-loop.h"
#include "inf-loop.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "inferior.h"
#include <algorithm>
#include "gdb_bfd.h"
#include "observable.h"
#include "infrun.h"
-#include "common/gdb_unlinker.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/gdb_unlinker.h"
+#include "gdbsupport/byte-vector.h"
#include <signal.h>
#include "record.h"
#include "observable.h"
#include "inferior.h"
-#include "common/common-utils.h"
+#include "gdbsupport/common-utils.h"
#include "cli/cli-utils.h"
#include "disasm.h"
#define RECORD_H
#include "target/waitstatus.h" /* For enum target_stop_reason. */
-#include "common/enum-flags.h"
+#include "gdbsupport/enum-flags.h"
struct cmd_list_element;
struct inferior;
#include "defs.h"
#include "gdbcmd.h"
#include "regcache.h"
-#include "common/def-vector.h"
+#include "gdbsupport/def-vector.h"
#include "valprint.h"
#include "remote.h"
#include "reggroups.h"
return size;
}
-/* See common/common-regcache.h. */
+/* See gdbsupport/common-regcache.h. */
int
regcache_register_size (const struct regcache *regcache, int n)
}
}
-/* See common/common-regcache.h. */
+/* See gdbsupport/common-regcache.h. */
enum register_status
reg_buffer::get_register_status (int regnum) const
return get_thread_regcache (inferior_thread ());
}
-/* See common/common-regcache.h. */
+/* See gdbsupport/common-regcache.h. */
struct regcache *
get_thread_regcache_for_ptid (ptid_t ptid)
write_part (regnum, offset, len, buf, false);
}
-/* See common/common-regcache.h. */
+/* See gdbsupport/common-regcache.h. */
void
reg_buffer::raw_supply (int regnum, const void *buf)
m_register_status[regnum] = REG_VALID;
}
-/* See common/common-regcache.h. */
+/* See gdbsupport/common-regcache.h. */
void
reg_buffer::raw_collect (int regnum, void *buf) const
transfer_regset (regset, nullptr, regnum, nullptr, (gdb_byte *) buf, size);
}
-/* See common/common-regcache.h. */
+/* See gdbsupport/common-regcache.h. */
bool
reg_buffer::raw_compare (int regnum, const void *buf, int offset) const
}
#if GDB_SELF_TEST
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "selftest-arch.h"
#include "target-float.h"
#ifndef REGCACHE_H
#define REGCACHE_H
-#include "common/common-regcache.h"
+#include "gdbsupport/common-regcache.h"
#include <forward_list>
struct regcache;
/* Special routines to read/write the PC. */
-/* For regcache_read_pc see common/common-regcache.h. */
+/* For regcache_read_pc see gdbsupport/common-regcache.h. */
extern void regcache_write_pc (struct regcache *regcache, CORE_ADDR pc);
/* Mapping between register numbers and offsets in a buffer, for use
/* Return regcache's architecture. */
gdbarch *arch () const;
- /* See common/common-regcache.h. */
+ /* See gdbsupport/common-regcache.h. */
enum register_status get_register_status (int regnum) const override;
- /* See common/common-regcache.h. */
+ /* See gdbsupport/common-regcache.h. */
void raw_collect (int regnum, void *buf) const override;
/* Collect register REGNUM from REGCACHE. Store collected value as an integer
reading only LEN. */
void raw_collect_part (int regnum, int offset, int len, gdb_byte *out) const;
- /* See common/common-regcache.h. */
+ /* See gdbsupport/common-regcache.h. */
void raw_supply (int regnum, const void *buf) override;
void raw_supply (int regnum, const reg_buffer &src)
virtual ~reg_buffer () = default;
- /* See common/common-regcache.h. */
+ /* See gdbsupport/common-regcache.h. */
bool raw_compare (int regnum, const void *buf, int offset) const override;
protected:
#include "defs.h"
#include "gdbcmd.h"
#include "remote.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include <sys/stat.h>
#include "remote-fileio.h"
#include "event-loop.h"
#include "target.h"
#include "filenames.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include <fcntl.h>
-#include "common/gdb_sys_time.h"
+#include "gdbsupport/gdb_sys_time.h"
#ifdef __CYGWIN__
#include <sys/cygwin.h> /* For cygwin_conv_path. */
#endif
#ifndef REMOTE_FILEIO_H
#define REMOTE_FILEIO_H
-#include "common/fileio.h"
+#include "gdbsupport/fileio.h"
struct cmd_list_element;
struct remote_target;
#include "arch-utils.h"
#include "readline/readline.h"
#include "gdbthread.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
/* Prototypes */
#include "cli/cli-setshow.h"
#include "target-descriptions.h"
#include "gdb_bfd.h"
-#include "common/filestuff.h"
-#include "common/rsp-low.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/rsp-low.h"
#include "disasm.h"
#include "location.h"
-#include "common/gdb_sys_time.h"
+#include "gdbsupport/gdb_sys_time.h"
#include "event-loop.h"
#include "event-top.h"
#include "tracepoint.h"
#include "ax.h"
#include "ax-gdb.h"
-#include "common/agent.h"
+#include "gdbsupport/agent.h"
#include "btrace.h"
#include "record-btrace.h"
#include <algorithm>
-#include "common/scoped_restore.h"
-#include "common/environ.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/scoped_restore.h"
+#include "gdbsupport/environ.h"
+#include "gdbsupport/byte-vector.h"
#include <unordered_map>
/* The remote target. */
#include "dwarf2-frame.h"
#include "user-regs.h"
#include "valprint.h"
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "opcode/riscv-opc.h"
#include "cli/cli-decode.h"
#include "observable.h"
#include "solib.h"
#include "solib-aix.h"
#include "target-float.h"
-#include "common/xml-utils.h"
+#include "gdbsupport/xml-utils.h"
#include "trad-frame.h"
#include "frame-unwind.h"
#include "gdb_regex.h"
#include "rust-lang.h"
#include "parser-defs.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "value.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#define GDB_YY_REMAP_PREFIX rust
#include "yy-remap.h"
#include "arch-utils.h"
#include "dwarf2-frame.h"
-#include "common/errors.h"
+#include "gdbsupport/errors.h"
#include "frame-unwind.h"
#include "gdbcore.h"
#include "gdbcmd.h"
#include "defs.h"
#if GDB_SELF_TEST
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "selftest-arch.h"
#include "arch-utils.h"
#include "event-loop.h"
#include "gdb_select.h"
-#include "common/gdb_sys_time.h"
+#include "gdbsupport/gdb_sys_time.h"
#ifdef USE_WIN32API
#include <winsock2.h>
#endif
#include "defs.h"
#include "ser-event.h"
#include "serial.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
/* On POSIX hosts, a serial_event is basically an abstraction for the
classical self-pipe trick.
#include <sys/types.h>
#include <sys/socket.h>
-#include "common/gdb_sys_time.h"
+#include "gdbsupport/gdb_sys_time.h"
#include <fcntl.h>
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include <signal.h>
#include "gdbcmd.h"
#include "cli/cli-decode.h"
#include "cli/cli-setshow.h"
-#include "common/filestuff.h"
-#include "common/netstuff.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/netstuff.h"
#include <sys/types.h>
#include <sys/ioctl.h> /* For FIONBIO. */
#endif
-#include "common/gdb_sys_time.h"
+#include "gdbsupport/gdb_sys_time.h"
#ifdef USE_WIN32API
#include <ws2tcpip.h>
#include <sys/types.h>
#include "terminal.h"
#include <sys/socket.h>
-#include "common/gdb_sys_time.h"
+#include "gdbsupport/gdb_sys_time.h"
#include "gdb_select.h"
#include "gdbcmd.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include <termios.h>
#include "inflow.h"
#include "filenames.h"
#include "fnmatch.h"
#include "gdb_regex.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
#include <list>
/* True if we want to print debug printouts related to file/function
#include "xcoffread.h"
#include "observable.h"
#include "gdbcmd.h"
-#include "common/scope-exit.h"
+#include "gdbsupport/scope-exit.h"
/* Variable controlling the output of the debugging traces for
this module. */
#include "symtab.h"
#include "symfile.h"
#include "target.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "solib-target.h"
#include <vector>
#include "frame.h"
#include "gdb_regex.h"
#include "inferior.h"
-#include "common/environ.h"
+#include "gdbsupport/environ.h"
#include "language.h"
#include "gdbcmd.h"
#include "completer.h"
#include "interps.h"
#include "filesystem.h"
#include "gdb_bfd.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include "source.h"
/* Architecture-specific operations. */
#include "defs.h"
#include "source-cache.h"
-#include "common/scoped_fd.h"
+#include "gdbsupport/scoped_fd.h"
#include "source.h"
#include "cli/cli-style.h"
#include "gdbcmd.h"
#include "frame.h"
#include "value.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include <sys/types.h>
#include <fcntl.h>
#include "completer.h"
#include "ui-out.h"
#include "readline/readline.h"
-#include "common/enum-flags.h"
-#include "common/scoped_fd.h"
+#include "gdbsupport/enum-flags.h"
+#include "gdbsupport/scoped_fd.h"
#include <algorithm>
-#include "common/pathstuff.h"
+#include "gdbsupport/pathstuff.h"
#include "source-cache.h"
#define OPEN_MODE (O_RDONLY | O_BINARY)
#ifndef SOURCE_H
#define SOURCE_H
-#include "common/scoped_fd.h"
+#include "gdbsupport/scoped_fd.h"
struct symtab;
#include <signal.h>
#include <sys/ptrace.h>
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#ifdef HAVE_MACHINE_REG_H
#include <machine/reg.h>
#endif
#include "inf-ptrace.h"
#include "regcache.h"
#include "symfile.h"
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include "gdbthread.h"
#include "gdb_bfd.h"
#include "symfile.h"
#include "extension.h"
#include "observable.h"
-#include "common/def-vector.h"
+#include "gdbsupport/def-vector.h"
#include "cli/cli-option.h"
/* The possible choices of "set print frame-arguments", and the value
#include "defs.h"
#include "stap-probe.h"
#include "probe.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "ui-out.h"
#include "objfiles.h"
#include "arch-utils.h"
#if !defined (SYMFILE_ADD_FLAGS_H)
#define SYMFILE_ADD_FLAGS_H
-#include "common/enum-flags.h"
+#include "gdbsupport/enum-flags.h"
/* This enum encodes bit-flags passed as ADD_FLAGS parameter to
symbol_file_add, etc. Defined in a separate file to break circular
#include "stack.h"
#include "gdb_bfd.h"
#include "cli/cli-utils.h"
-#include "common/byte-vector.h"
-#include "common/pathstuff.h"
-#include "common/selftest.h"
+#include "gdbsupport/byte-vector.h"
+#include "gdbsupport/pathstuff.h"
+#include "gdbsupport/selftest.h"
#include "cli/cli-style.h"
-#include "common/forward-scope-exit.h"
+#include "gdbsupport/forward-scope-exit.h"
#include <sys/types.h>
#include <fcntl.h>
#include "symfile-add-flags.h"
#include "objfile-flags.h"
#include "gdb_bfd.h"
-#include "common/function-view.h"
+#include "gdbsupport/function-view.h"
/* Opaque declarations. */
struct target_section;
#include "parser-defs.h"
#include "completer.h"
#include "progspace-and-thread.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
#include "filename-seen-cache.h"
#include "arch-utils.h"
#include <algorithm>
-#include "common/pathstuff.h"
+#include "gdbsupport/pathstuff.h"
/* Forward declarations for local functions. */
#include <array>
#include <vector>
#include <string>
-#include "common/gdb_vecs.h"
+#include "gdbsupport/gdb_vecs.h"
#include "gdbtypes.h"
#include "gdb_regex.h"
-#include "common/enum-flags.h"
-#include "common/function-view.h"
-#include "common/gdb_optional.h"
-#include "common/next-iterator.h"
+#include "gdbsupport/enum-flags.h"
+#include "gdbsupport/function-view.h"
+#include "gdbsupport/gdb_optional.h"
+#include "gdbsupport/next-iterator.h"
#include "completer.h"
/* Opaque declarations. */
#include "reggroups.h"
#include "target.h"
#include "target-descriptions.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "xml-support.h"
#include "xml-tdesc.h"
#include "osabi.h"
return target_desc->arch;
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
const char *
tdesc_architecture_name (const struct target_desc *target_desc)
return target_desc->osabi;
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
const char *
tdesc_osabi_name (const struct target_desc *target_desc)
set_gdbarch_register_reggroup_p (gdbarch, tdesc_register_reggroup_p);
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
struct tdesc_feature *
tdesc_create_feature (struct target_desc *tdesc, const char *name)
target_desc->properties.emplace_back (key, value);
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
void
set_tdesc_architecture (struct target_desc *target_desc,
target_desc->arch = arch;
}
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
void
set_tdesc_osabi (struct target_desc *target_desc, const char *name)
printf_unfiltered (" Original: %s */\n\n",
lbasename (m_filename_after_features.c_str ()));
- printf_unfiltered ("#include \"common/tdesc.h\"\n");
+ printf_unfiltered ("#include \"gdbsupport/tdesc.h\"\n");
printf_unfiltered ("\n");
}
int m_next_regnum = 0;
};
-/* See common/tdesc.h. */
+/* See gdbsupport/tdesc.h. */
const char *
tdesc_get_features_xml (const target_desc *tdesc)
#ifndef TARGET_DESCRIPTIONS_H
#define TARGET_DESCRIPTIONS_H 1
-#include "common/tdesc.h"
+#include "gdbsupport/tdesc.h"
struct tdesc_arch_data;
struct target_ops;
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "target.h"
#include "memory-map.h"
-#include "common/gdb_sys_time.h"
+#include "gdbsupport/gdb_sys_time.h"
#include <algorithm>
static bool
#include "inline-frame.h"
#include "tracepoint.h"
#include "gdb/fileio.h"
-#include "common/agent.h"
+#include "gdbsupport/agent.h"
#include "auxv.h"
#include "target-debug.h"
#include "top.h"
#include "event-top.h"
#include <algorithm>
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
#include "terminal.h"
#include <unordered_map>
#include "infrun.h" /* For enum exec_direction_kind. */
#include "breakpoint.h" /* For enum bptype. */
-#include "common/scoped_restore.h"
+#include "gdbsupport/scoped_restore.h"
/* This include file defines the interface between the main part
of the debugger, and the part which is target-specific, or
#include "bfd.h"
#include "symtab.h"
#include "memattr.h"
-#include "common/vec.h"
-#include "common/gdb_signals.h"
+#include "gdbsupport/vec.h"
+#include "gdbsupport/gdb_signals.h"
#include "btrace.h"
#include "record.h"
#include "command.h"
#include "disasm.h"
#include "tracepoint.h"
-#include "common/break-common.h" /* For enum target_hw_bp_type. */
+#include "gdbsupport/break-common.h" /* For enum target_hw_bp_type. */
enum strata
{
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
+#include "gdbsupport/common-defs.h"
#include "waitstatus.h"
/* Return a pretty printed form of target_waitstatus. */
#ifndef TARGET_WAITSTATUS_H
#define TARGET_WAITSTATUS_H
-#include "common/gdb_signals.h"
+#include "gdbsupport/gdb_signals.h"
/* Stuff for target_wait. */
#ifndef THREAD_ITER_H
#define THREAD_ITER_H
-#include "common/filtered-iterator.h"
-#include "common/next-iterator.h"
-#include "common/safe-iterator.h"
+#include "gdbsupport/filtered-iterator.h"
+#include "gdbsupport/next-iterator.h"
+#include "gdbsupport/safe-iterator.h"
/* A forward iterator that iterates over a given inferior's
threads. */
#include "symtab.h"
#include "frame.h"
#include "inferior.h"
-#include "common/environ.h"
+#include "gdbsupport/environ.h"
#include "value.h"
#include "target.h"
#include "gdbthread.h"
#include "thread-fsm.h"
#include "tid-parse.h"
#include <algorithm>
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
#include "inline-frame.h"
#include "stack.h"
reinit_frame_cache ();
}
-/* See common/common-gdbthread.h. */
+/* See gdbsupport/common-gdbthread.h. */
void
switch_to_thread (ptid_t ptid)
#include "tilegx-tdep.h"
#include "opcode/tilegx.h"
#include <algorithm>
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
struct tilegx_frame_cache
{
#include "value.h"
#include "language.h"
#include "terminal.h"
-#include "common/job-control.h"
+#include "gdbsupport/job-control.h"
#include "annotate.h"
#include "completer.h"
#include "top.h"
-#include "common/version.h"
+#include "gdbsupport/version.h"
#include "serial.h"
#include "main.h"
#include "event-loop.h"
#include "maint.h"
#include "filenames.h"
#include "frame.h"
-#include "common/buffer.h"
+#include "gdbsupport/buffer.h"
#include "gdb_select.h"
-#include "common/scope-exit.h"
+#include "gdbsupport/scope-exit.h"
/* readline include files. */
#include "readline/readline.h"
#ifndef TOP_H
#define TOP_H
-#include "common/buffer.h"
+#include "gdbsupport/buffer.h"
#include "event-loop.h"
#include "value.h"
#include "defs.h"
#include "tracefile.h"
#include "readline/tilde.h"
-#include "common/filestuff.h"
-#include "common/rsp-low.h" /* bin2hex */
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/rsp-low.h" /* bin2hex */
#include "regcache.h"
#include "inferior.h"
#include "gdbthread.h"
#include "remote.h"
#include "xml-tdesc.h"
#include "target-descriptions.h"
-#include "common/buffer.h"
+#include "gdbsupport/buffer.h"
#include <algorithm>
#ifndef O_LARGEFILE
#include "ctf.h"
#include "exec.h"
#include "regcache.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
/* Helper macros. */
#include "cli/cli-utils.h"
#include "probe.h"
#include "ctf.h"
-#include "common/filestuff.h"
-#include "common/rsp-low.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/rsp-low.h"
#include "tracefile.h"
#include "location.h"
#include <algorithm>
#include "breakpoint.h"
#include "memrange.h"
-#include "common/gdb_vecs.h"
+#include "gdbsupport/gdb_vecs.h"
#include <vector>
#include <string>
#ifdef __MINGW32__
#include <windows.h>
#endif
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include "completer.h"
#include "gdb_curses.h"
#include <map>
#include "ui-file.h"
#include "gdb_obstack.h"
#include "gdb_select.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
null_file null_stream;
#include <vector>
-#include "common/enum-flags.h"
+#include "gdbsupport/enum-flags.h"
class ui_out_level;
class ui_out_table;
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
-#include "common/array-view.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/array-view.h"
#include <array>
namespace selftests {
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/pathstuff.h"
-#include "common/selftest.h"
+#include "gdbsupport/pathstuff.h"
+#include "gdbsupport/selftest.h"
namespace selftests {
namespace child_path {
#include "defs.h"
#include "cli/cli-utils.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
namespace selftests {
namespace cli_utils {
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common/common-defs.h"
-#include "common/selftest.h"
+#include "gdbsupport/common-defs.h"
+#include "gdbsupport/selftest.h"
namespace selftests {
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "utils.h"
namespace selftests {
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
-#include "common/environ.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/environ.h"
#include "diagnostics.h"
static const char gdb_selftest_env_var[] = "GDB_SELFTEST_ENVIRON";
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/format.h"
-#include "common/selftest.h"
+#include "gdbsupport/format.h"
+#include "gdbsupport/selftest.h"
namespace selftests {
namespace format_pieces {
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
-#include "common/function-view.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/function-view.h"
namespace selftests {
namespace function_view {
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "symtab.h"
namespace selftests {
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "memory-map.h"
#if defined(HAVE_LIBEXPAT)
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "memrange.h"
namespace selftests {
#include "defs.h"
-#include "common/filestuff.h"
-#include "common/selftest.h"
-#include "common/byte-vector.h"
-#include "common/pathstuff.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/byte-vector.h"
+#include "gdbsupport/pathstuff.h"
namespace selftests {
namespace mkdir_recursive {
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
-#include "common/observable.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/observable.h"
namespace selftests {
namespace observers {
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
-#include "common/offset-type.h"
-#include "common/underlying.h"
-#include "common/valid-expr.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/offset-type.h"
+#include "gdbsupport/underlying.h"
+#include "gdbsupport/valid-expr.h"
namespace selftests {
namespace offset_type {
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/gdb_optional.h"
/* Used by the included .cc files below. Included here because the
included test files are wrapped in a namespace. */
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
-#include "common/netstuff.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/netstuff.h"
#include "diagnostics.h"
#ifdef USE_WIN32API
#include <ws2tcpip.h>
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/ptid.h"
+#include "gdbsupport/ptid.h"
#include <type_traits>
namespace selftests {
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
-#include "common/rsp-low.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/rsp-low.h"
namespace selftests {
namespace rsp_low {
#include "defs.h"
-#include "common/filestuff.h"
-#include "common/scoped_fd.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/scoped_fd.h"
#include "config.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
namespace selftests {
namespace scoped_fd {
#include "defs.h"
-#include "common/filestuff.h"
-#include "common/scoped_mmap.h"
+#include "gdbsupport/filestuff.h"
+#include "gdbsupport/scoped_mmap.h"
#include "config.h"
#if defined(HAVE_SYS_MMAN_H)
-#include "common/selftest.h"
-#include "common/gdb_unlinker.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/gdb_unlinker.h"
#include <unistd.h>
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
-#include "common/scoped_restore.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/scoped_restore.h"
namespace selftests {
namespace scoped_restore_tests {
#define GNULIB_NAMESPACE gnulib
#include "defs.h"
-#include "common/selftest.h"
-#include "common/gdb_string_view.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/gdb_string_view.h"
/* Used by the included .cc files below. Included here because the
included test files are wrapped in a namespace. */
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "ui-style.h"
namespace selftests {
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "tracepoint.h"
namespace selftests {
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
#include "selftest-arch.h"
#include "value.h"
#include "gdbtypes.h"
#include "defs.h"
#include "utils.h"
-#include "common/selftest.h"
+#include "gdbsupport/selftest.h"
namespace selftests {
namespace utils {
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "common/xml-utils.h"
-#include "common/selftest.h"
+#include "gdbsupport/xml-utils.h"
+#include "gdbsupport/selftest.h"
namespace selftests {
namespace xml_utils {
#include "defs.h"
#include <ctype.h>
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include "event-top.h"
#include "gdbthread.h"
#include "fnmatch.h"
#include "gdb_usleep.h"
#include "interps.h"
#include "gdb_regex.h"
-#include "common/job-control.h"
-#include "common/selftest.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/job-control.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/gdb_optional.h"
#include "cp-support.h"
#include <algorithm>
-#include "common/pathstuff.h"
+#include "gdbsupport/pathstuff.h"
#include "cli/cli-style.h"
-#include "common/scope-exit.h"
+#include "gdbsupport/scope-exit.h"
void (*deprecated_error_begin_hook) (void);
#define UTILS_H
#include "exceptions.h"
-#include "common/scoped_restore.h"
+#include "gdbsupport/scoped_restore.h"
#include <chrono>
extern void initialize_utils (void);
#include "language.h"
#include "target-float.h"
#include "infcall.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
/* Define whether or not the C operator '/' truncates towards zero for
differently signed operands (truncation direction is undefined in C). */
#include "observable.h"
#include "objfiles.h"
#include "extension.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
extern unsigned int overload_debug;
/* Local functions. */
#include "typeprint.h"
#include <ctype.h>
#include <algorithm>
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
#include "cli/cli-option.h"
/* Maximum number of wchars returned from wchar_iterate. */
#include "user-regs.h"
#include <algorithm>
#include "completer.h"
-#include "common/selftest.h"
-#include "common/array-view.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/array-view.h"
/* Definition of a user function. */
struct internal_function
#include "frame.h" /* For struct frame_id. */
#include "extension.h"
-#include "common/gdb_ref_ptr.h"
+#include "gdbsupport/gdb_ref_ptr.h"
struct block;
struct expression;
#include "gdb_regex.h"
#include "varobj.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "gdbthread.h"
#include "inferior.h"
#include "varobj-iter.h"
#include "symtab.h"
#include "gdbtypes.h"
-#include "common/vec.h"
+#include "gdbsupport/vec.h"
#include "value.h"
/* Enumeration for the format types */
#include "x86-nat.h"
#include "complaints.h"
#include "inf-child.h"
-#include "common/gdb_tilde_expand.h"
-#include "common/pathstuff.h"
+#include "gdbsupport/gdb_tilde_expand.h"
+#include "gdbsupport/pathstuff.h"
#define AdjustTokenPrivileges dyn_AdjustTokenPrivileges
#define DebugActiveProcessStop dyn_DebugActiveProcessStop
#ifdef __x86_64__
#include "amd64-linux-tdep.h"
#endif
-#include "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
#include "nat/linux-btrace.h"
#include "nat/linux-nat.h"
#include "nat/x86-linux.h"
#include "defs.h"
#include "gdbcmd.h"
#include "xml-support.h"
-#include "common/filestuff.h"
+#include "gdbsupport/filestuff.h"
#include "safe-ctype.h"
#include <vector>
#include <string>
#define XML_SUPPORT_H
#include "gdb_obstack.h"
-#include "common/vec.h"
-#include "common/xml-utils.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/vec.h"
+#include "gdbsupport/xml-utils.h"
+#include "gdbsupport/byte-vector.h"
struct gdb_xml_parser;
struct gdb_xml_element;
#ifndef XML_TDESC_H
#define XML_TDESC_H
-#include "common/gdb_optional.h"
+#include "gdbsupport/gdb_optional.h"
#include <string>
struct target_ops;
#include "regcache.h"
#include "osabi.h"
#include "objfiles.h"
-#include "common/byte-vector.h"
+#include "gdbsupport/byte-vector.h"
enum gdb_regnum
{
#include <signal.h>
#include <sys/user.h>
#include <sys/ioctl.h>
-#include "common/gdb_wait.h"
+#include "gdbsupport/gdb_wait.h"
#include <fcntl.h>
#include <sys/procfs.h>
#include "nat/gdb_ptrace.h"