aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog11
-rw-r--r--MAINTAINERS2
-rw-r--r--Makefile.def1
-rw-r--r--Makefile.in460
-rwxr-xr-xconfigure21
-rw-r--r--configure.ac20
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/Makefile.in5
-rw-r--r--gdb/README7
-rwxr-xr-xgdb/configure41
-rw-r--r--gdb/configure.ac28
-rw-r--r--gdb/configure.tgt24
-rw-r--r--gdbserver/.gitignore (renamed from gdb/gdbserver/.gitignore)0
-rw-r--r--gdbserver/ChangeLog (renamed from gdb/gdbserver/ChangeLog)17
-rw-r--r--gdbserver/Makefile.in (renamed from gdb/gdbserver/Makefile.in)138
-rw-r--r--gdbserver/README (renamed from gdb/gdbserver/README)21
-rw-r--r--gdbserver/acinclude.m4 (renamed from gdb/gdbserver/acinclude.m4)34
-rw-r--r--gdbserver/aclocal.m4 (renamed from gdb/gdbserver/aclocal.m4)0
-rw-r--r--gdbserver/ax.c (renamed from gdb/gdbserver/ax.c)0
-rw-r--r--gdbserver/ax.h (renamed from gdb/gdbserver/ax.h)0
-rw-r--r--gdbserver/config.in (renamed from gdb/gdbserver/config.in)0
-rwxr-xr-xgdbserver/configure (renamed from gdb/gdbserver/configure)6
-rw-r--r--gdbserver/configure.ac (renamed from gdb/gdbserver/configure.ac)6
-rw-r--r--gdbserver/configure.srv (renamed from gdb/gdbserver/configure.srv)12
-rw-r--r--gdbserver/debug.c (renamed from gdb/gdbserver/debug.c)0
-rw-r--r--gdbserver/debug.h (renamed from gdb/gdbserver/debug.h)0
-rw-r--r--gdbserver/dll.c (renamed from gdb/gdbserver/dll.c)0
-rw-r--r--gdbserver/dll.h (renamed from gdb/gdbserver/dll.h)0
-rw-r--r--gdbserver/event-loop.c (renamed from gdb/gdbserver/event-loop.c)0
-rw-r--r--gdbserver/event-loop.h (renamed from gdb/gdbserver/event-loop.h)0
-rw-r--r--gdbserver/fork-child.c (renamed from gdb/gdbserver/fork-child.c)0
-rw-r--r--gdbserver/gdb_proc_service.h (renamed from gdb/gdbserver/gdb_proc_service.h)0
-rw-r--r--gdbserver/gdbreplay.c (renamed from gdb/gdbserver/gdbreplay.c)0
-rw-r--r--gdbserver/gdbthread.h (renamed from gdb/gdbserver/gdbthread.h)0
-rw-r--r--gdbserver/hostio-errno.c (renamed from gdb/gdbserver/hostio-errno.c)0
-rw-r--r--gdbserver/hostio.c (renamed from gdb/gdbserver/hostio.c)0
-rw-r--r--gdbserver/hostio.h (renamed from gdb/gdbserver/hostio.h)0
-rw-r--r--gdbserver/i387-fp.c (renamed from gdb/gdbserver/i387-fp.c)0
-rw-r--r--gdbserver/i387-fp.h (renamed from gdb/gdbserver/i387-fp.h)0
-rw-r--r--gdbserver/inferiors.c (renamed from gdb/gdbserver/inferiors.c)0
-rw-r--r--gdbserver/inferiors.h (renamed from gdb/gdbserver/inferiors.h)0
-rw-r--r--gdbserver/linux-aarch32-low.c (renamed from gdb/gdbserver/linux-aarch32-low.c)0
-rw-r--r--gdbserver/linux-aarch32-low.h (renamed from gdb/gdbserver/linux-aarch32-low.h)0
-rw-r--r--gdbserver/linux-aarch32-tdesc.c (renamed from gdb/gdbserver/linux-aarch32-tdesc.c)0
-rw-r--r--gdbserver/linux-aarch32-tdesc.h (renamed from gdb/gdbserver/linux-aarch32-tdesc.h)0
-rw-r--r--gdbserver/linux-aarch64-ipa.c (renamed from gdb/gdbserver/linux-aarch64-ipa.c)0
-rw-r--r--gdbserver/linux-aarch64-low.c (renamed from gdb/gdbserver/linux-aarch64-low.c)0
-rw-r--r--gdbserver/linux-aarch64-tdesc.c (renamed from gdb/gdbserver/linux-aarch64-tdesc.c)0
-rw-r--r--gdbserver/linux-aarch64-tdesc.h (renamed from gdb/gdbserver/linux-aarch64-tdesc.h)0
-rw-r--r--gdbserver/linux-amd64-ipa.c (renamed from gdb/gdbserver/linux-amd64-ipa.c)0
-rw-r--r--gdbserver/linux-arm-low.c (renamed from gdb/gdbserver/linux-arm-low.c)0
-rw-r--r--gdbserver/linux-arm-tdesc.c (renamed from gdb/gdbserver/linux-arm-tdesc.c)0
-rw-r--r--gdbserver/linux-arm-tdesc.h (renamed from gdb/gdbserver/linux-arm-tdesc.h)0
-rw-r--r--gdbserver/linux-bfin-low.c (renamed from gdb/gdbserver/linux-bfin-low.c)0
-rw-r--r--gdbserver/linux-cris-low.c (renamed from gdb/gdbserver/linux-cris-low.c)0
-rw-r--r--gdbserver/linux-crisv32-low.c (renamed from gdb/gdbserver/linux-crisv32-low.c)0
-rw-r--r--gdbserver/linux-i386-ipa.c (renamed from gdb/gdbserver/linux-i386-ipa.c)0
-rw-r--r--gdbserver/linux-ia64-low.c (renamed from gdb/gdbserver/linux-ia64-low.c)0
-rw-r--r--gdbserver/linux-low.c (renamed from gdb/gdbserver/linux-low.c)0
-rw-r--r--gdbserver/linux-low.h (renamed from gdb/gdbserver/linux-low.h)0
-rw-r--r--gdbserver/linux-m32r-low.c (renamed from gdb/gdbserver/linux-m32r-low.c)0
-rw-r--r--gdbserver/linux-m68k-low.c (renamed from gdb/gdbserver/linux-m68k-low.c)0
-rw-r--r--gdbserver/linux-mips-low.c (renamed from gdb/gdbserver/linux-mips-low.c)0
-rw-r--r--gdbserver/linux-nios2-low.c (renamed from gdb/gdbserver/linux-nios2-low.c)0
-rw-r--r--gdbserver/linux-ppc-ipa.c (renamed from gdb/gdbserver/linux-ppc-ipa.c)0
-rw-r--r--gdbserver/linux-ppc-low.c (renamed from gdb/gdbserver/linux-ppc-low.c)0
-rw-r--r--gdbserver/linux-ppc-tdesc-init.h (renamed from gdb/gdbserver/linux-ppc-tdesc-init.h)0
-rw-r--r--gdbserver/linux-s390-ipa.c (renamed from gdb/gdbserver/linux-s390-ipa.c)0
-rw-r--r--gdbserver/linux-s390-low.c (renamed from gdb/gdbserver/linux-s390-low.c)0
-rw-r--r--gdbserver/linux-s390-tdesc.h (renamed from gdb/gdbserver/linux-s390-tdesc.h)0
-rw-r--r--gdbserver/linux-sh-low.c (renamed from gdb/gdbserver/linux-sh-low.c)0
-rw-r--r--gdbserver/linux-sparc-low.c (renamed from gdb/gdbserver/linux-sparc-low.c)0
-rw-r--r--gdbserver/linux-tic6x-low.c (renamed from gdb/gdbserver/linux-tic6x-low.c)0
-rw-r--r--gdbserver/linux-tile-low.c (renamed from gdb/gdbserver/linux-tile-low.c)0
-rw-r--r--gdbserver/linux-x86-low.c (renamed from gdb/gdbserver/linux-x86-low.c)0
-rw-r--r--gdbserver/linux-x86-tdesc.c (renamed from gdb/gdbserver/linux-x86-tdesc.c)0
-rw-r--r--gdbserver/linux-x86-tdesc.h (renamed from gdb/gdbserver/linux-x86-tdesc.h)0
-rw-r--r--gdbserver/linux-xtensa-low.c (renamed from gdb/gdbserver/linux-xtensa-low.c)0
-rw-r--r--gdbserver/lynx-i386-low.c (renamed from gdb/gdbserver/lynx-i386-low.c)0
-rw-r--r--gdbserver/lynx-low.c (renamed from gdb/gdbserver/lynx-low.c)0
-rw-r--r--gdbserver/lynx-low.h (renamed from gdb/gdbserver/lynx-low.h)0
-rw-r--r--gdbserver/lynx-ppc-low.c (renamed from gdb/gdbserver/lynx-ppc-low.c)0
-rw-r--r--gdbserver/mem-break.c (renamed from gdb/gdbserver/mem-break.c)0
-rw-r--r--gdbserver/mem-break.h (renamed from gdb/gdbserver/mem-break.h)0
-rw-r--r--gdbserver/notif.c (renamed from gdb/gdbserver/notif.c)0
-rw-r--r--gdbserver/notif.h (renamed from gdb/gdbserver/notif.h)0
-rw-r--r--gdbserver/nto-low.c (renamed from gdb/gdbserver/nto-low.c)0
-rw-r--r--gdbserver/nto-low.h (renamed from gdb/gdbserver/nto-low.h)0
-rw-r--r--gdbserver/nto-x86-low.c (renamed from gdb/gdbserver/nto-x86-low.c)0
-rw-r--r--gdbserver/proc-service.c (renamed from gdb/gdbserver/proc-service.c)0
-rw-r--r--gdbserver/proc-service.list (renamed from gdb/gdbserver/proc-service.list)0
-rw-r--r--gdbserver/regcache.c (renamed from gdb/gdbserver/regcache.c)0
-rw-r--r--gdbserver/regcache.h (renamed from gdb/gdbserver/regcache.h)0
-rw-r--r--gdbserver/remote-utils.c (renamed from gdb/gdbserver/remote-utils.c)0
-rw-r--r--gdbserver/remote-utils.h (renamed from gdb/gdbserver/remote-utils.h)0
-rw-r--r--gdbserver/server.c (renamed from gdb/gdbserver/server.c)0
-rw-r--r--gdbserver/server.h (renamed from gdb/gdbserver/server.h)0
-rw-r--r--gdbserver/symbol.c (renamed from gdb/gdbserver/symbol.c)0
-rw-r--r--gdbserver/target.c (renamed from gdb/gdbserver/target.c)0
-rw-r--r--gdbserver/target.h (renamed from gdb/gdbserver/target.h)0
-rw-r--r--gdbserver/tdesc.c (renamed from gdb/gdbserver/tdesc.c)0
-rw-r--r--gdbserver/tdesc.h (renamed from gdb/gdbserver/tdesc.h)0
-rw-r--r--gdbserver/thread-db.c (renamed from gdb/gdbserver/thread-db.c)0
-rw-r--r--gdbserver/tracepoint.c (renamed from gdb/gdbserver/tracepoint.c)0
-rw-r--r--gdbserver/tracepoint.h (renamed from gdb/gdbserver/tracepoint.h)0
-rw-r--r--gdbserver/utils.c (renamed from gdb/gdbserver/utils.c)0
-rw-r--r--gdbserver/utils.h (renamed from gdb/gdbserver/utils.h)0
-rw-r--r--gdbserver/win32-arm-low.c (renamed from gdb/gdbserver/win32-arm-low.c)0
-rw-r--r--gdbserver/win32-i386-low.c (renamed from gdb/gdbserver/win32-i386-low.c)0
-rw-r--r--gdbserver/win32-low.c (renamed from gdb/gdbserver/win32-low.c)0
-rw-r--r--gdbserver/win32-low.h (renamed from gdb/gdbserver/win32-low.h)0
-rw-r--r--gdbserver/wincecompat.c (renamed from gdb/gdbserver/wincecompat.c)0
-rw-r--r--gdbserver/wincecompat.h (renamed from gdb/gdbserver/wincecompat.h)0
-rw-r--r--gdbserver/x86-low.c (renamed from gdb/gdbserver/x86-low.c)0
-rw-r--r--gdbserver/x86-low.h (renamed from gdb/gdbserver/x86-low.h)0
-rw-r--r--gdbserver/x86-tdesc.h (renamed from gdb/gdbserver/x86-tdesc.h)0
-rw-r--r--gdbserver/xtensa-xtregs.c (renamed from gdb/gdbserver/xtensa-xtregs.c)0
-rwxr-xr-xsrc-release.sh4
118 files changed, 652 insertions, 215 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b835d0..4112251 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2020-02-07 Tom Tromey <tom@tromey.com>
+ Pedro Alves <palves@redhat.com>
+
+ * src-release.sh (GDB_SUPPORT_DIRS): Add gdbserver.
+ * gdbserver: New directory, moved from gdb/gdbserver.
+ * configure.ac (host_tools): Add gdbserver.
+ Only build gdbserver on certain systems.
+ * Makefile.in, configure: Rebuild.
+ * Makefile.def (host_modules, dependencies): Add gdbserver.
+ * MAINTAINERS: Add gdbserver.
+
2020-01-28 Sergio Durigan Junior <sergiodj@redhat.com>
* src-release.sh (getver): Look for gdbsupport's
diff --git a/MAINTAINERS b/MAINTAINERS
index 805f2e3..5b8a4ef 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -41,7 +41,7 @@ config.guess; config.sub; readline/support/config.{sub,guess}
depcomp; mkinstalldirs
Send bug reports and patches to bug-automake@gnu.org.
-gdb/; gdbsupport/; gnulib/; readline/; sim/; GDB's part of include/
+gdb/; gdbserver/; gdbsupport/; gnulib/; readline/; sim/; GDB's part of include/
GDB: http://www.gnu.org/software/gdb/
Patches to gdb-patches@sourceware.org.
See also gdb/MAINTAINERS and sim/MAINTAINERS.
diff --git a/Makefile.def b/Makefile.def
index 253eb45..72cb133 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -114,6 +114,7 @@ host_modules= { module= zlib; no_install=true; no_check=true;
extra_configure_flags='@extra_host_zlib_configure_flags@';};
host_modules= { module= gnulib; };
host_modules= { module= gdbsupport; };
+host_modules= { module= gdbserver; };
host_modules= { module= gdb; };
host_modules= { module= expect; };
host_modules= { module= guile; };
diff --git a/Makefile.in b/Makefile.in
index af38671..80fa458 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -944,6 +944,7 @@ configure-host: \
maybe-configure-zlib \
maybe-configure-gnulib \
maybe-configure-gdbsupport \
+ maybe-configure-gdbserver \
maybe-configure-gdb \
maybe-configure-expect \
maybe-configure-guile \
@@ -1099,6 +1100,7 @@ all-host: maybe-all-zlib
@endif zlib-no-bootstrap
all-host: maybe-all-gnulib
all-host: maybe-all-gdbsupport
+all-host: maybe-all-gdbserver
all-host: maybe-all-gdb
all-host: maybe-all-expect
all-host: maybe-all-guile
@@ -1208,6 +1210,7 @@ info-host: maybe-info-texinfo
info-host: maybe-info-zlib
info-host: maybe-info-gnulib
info-host: maybe-info-gdbsupport
+info-host: maybe-info-gdbserver
info-host: maybe-info-gdb
info-host: maybe-info-expect
info-host: maybe-info-guile
@@ -1296,6 +1299,7 @@ dvi-host: maybe-dvi-texinfo
dvi-host: maybe-dvi-zlib
dvi-host: maybe-dvi-gnulib
dvi-host: maybe-dvi-gdbsupport
+dvi-host: maybe-dvi-gdbserver
dvi-host: maybe-dvi-gdb
dvi-host: maybe-dvi-expect
dvi-host: maybe-dvi-guile
@@ -1384,6 +1388,7 @@ pdf-host: maybe-pdf-texinfo
pdf-host: maybe-pdf-zlib
pdf-host: maybe-pdf-gnulib
pdf-host: maybe-pdf-gdbsupport
+pdf-host: maybe-pdf-gdbserver
pdf-host: maybe-pdf-gdb
pdf-host: maybe-pdf-expect
pdf-host: maybe-pdf-guile
@@ -1472,6 +1477,7 @@ html-host: maybe-html-texinfo
html-host: maybe-html-zlib
html-host: maybe-html-gnulib
html-host: maybe-html-gdbsupport
+html-host: maybe-html-gdbserver
html-host: maybe-html-gdb
html-host: maybe-html-expect
html-host: maybe-html-guile
@@ -1560,6 +1566,7 @@ TAGS-host: maybe-TAGS-texinfo
TAGS-host: maybe-TAGS-zlib
TAGS-host: maybe-TAGS-gnulib
TAGS-host: maybe-TAGS-gdbsupport
+TAGS-host: maybe-TAGS-gdbserver
TAGS-host: maybe-TAGS-gdb
TAGS-host: maybe-TAGS-expect
TAGS-host: maybe-TAGS-guile
@@ -1648,6 +1655,7 @@ install-info-host: maybe-install-info-texinfo
install-info-host: maybe-install-info-zlib
install-info-host: maybe-install-info-gnulib
install-info-host: maybe-install-info-gdbsupport
+install-info-host: maybe-install-info-gdbserver
install-info-host: maybe-install-info-gdb
install-info-host: maybe-install-info-expect
install-info-host: maybe-install-info-guile
@@ -1736,6 +1744,7 @@ install-pdf-host: maybe-install-pdf-texinfo
install-pdf-host: maybe-install-pdf-zlib
install-pdf-host: maybe-install-pdf-gnulib
install-pdf-host: maybe-install-pdf-gdbsupport
+install-pdf-host: maybe-install-pdf-gdbserver
install-pdf-host: maybe-install-pdf-gdb
install-pdf-host: maybe-install-pdf-expect
install-pdf-host: maybe-install-pdf-guile
@@ -1824,6 +1833,7 @@ install-html-host: maybe-install-html-texinfo
install-html-host: maybe-install-html-zlib
install-html-host: maybe-install-html-gnulib
install-html-host: maybe-install-html-gdbsupport
+install-html-host: maybe-install-html-gdbserver
install-html-host: maybe-install-html-gdb
install-html-host: maybe-install-html-expect
install-html-host: maybe-install-html-guile
@@ -1912,6 +1922,7 @@ installcheck-host: maybe-installcheck-texinfo
installcheck-host: maybe-installcheck-zlib
installcheck-host: maybe-installcheck-gnulib
installcheck-host: maybe-installcheck-gdbsupport
+installcheck-host: maybe-installcheck-gdbserver
installcheck-host: maybe-installcheck-gdb
installcheck-host: maybe-installcheck-expect
installcheck-host: maybe-installcheck-guile
@@ -2000,6 +2011,7 @@ mostlyclean-host: maybe-mostlyclean-texinfo
mostlyclean-host: maybe-mostlyclean-zlib
mostlyclean-host: maybe-mostlyclean-gnulib
mostlyclean-host: maybe-mostlyclean-gdbsupport
+mostlyclean-host: maybe-mostlyclean-gdbserver
mostlyclean-host: maybe-mostlyclean-gdb
mostlyclean-host: maybe-mostlyclean-expect
mostlyclean-host: maybe-mostlyclean-guile
@@ -2088,6 +2100,7 @@ clean-host: maybe-clean-texinfo
clean-host: maybe-clean-zlib
clean-host: maybe-clean-gnulib
clean-host: maybe-clean-gdbsupport
+clean-host: maybe-clean-gdbserver
clean-host: maybe-clean-gdb
clean-host: maybe-clean-expect
clean-host: maybe-clean-guile
@@ -2176,6 +2189,7 @@ distclean-host: maybe-distclean-texinfo
distclean-host: maybe-distclean-zlib
distclean-host: maybe-distclean-gnulib
distclean-host: maybe-distclean-gdbsupport
+distclean-host: maybe-distclean-gdbserver
distclean-host: maybe-distclean-gdb
distclean-host: maybe-distclean-expect
distclean-host: maybe-distclean-guile
@@ -2264,6 +2278,7 @@ maintainer-clean-host: maybe-maintainer-clean-texinfo
maintainer-clean-host: maybe-maintainer-clean-zlib
maintainer-clean-host: maybe-maintainer-clean-gnulib
maintainer-clean-host: maybe-maintainer-clean-gdbsupport
+maintainer-clean-host: maybe-maintainer-clean-gdbserver
maintainer-clean-host: maybe-maintainer-clean-gdb
maintainer-clean-host: maybe-maintainer-clean-expect
maintainer-clean-host: maybe-maintainer-clean-guile
@@ -2408,6 +2423,7 @@ check-host: \
maybe-check-zlib \
maybe-check-gnulib \
maybe-check-gdbsupport \
+ maybe-check-gdbserver \
maybe-check-gdb \
maybe-check-expect \
maybe-check-guile \
@@ -2543,6 +2559,7 @@ install-host-nogcc: \
maybe-install-zlib \
maybe-install-gnulib \
maybe-install-gdbsupport \
+ maybe-install-gdbserver \
maybe-install-gdb \
maybe-install-expect \
maybe-install-guile \
@@ -2595,6 +2612,7 @@ install-host: \
maybe-install-zlib \
maybe-install-gnulib \
maybe-install-gdbsupport \
+ maybe-install-gdbserver \
maybe-install-gdb \
maybe-install-expect \
maybe-install-guile \
@@ -2703,6 +2721,7 @@ install-strip-host: \
maybe-install-strip-zlib \
maybe-install-strip-gnulib \
maybe-install-strip-gdbsupport \
+ maybe-install-strip-gdbserver \
maybe-install-strip-gdb \
maybe-install-strip-expect \
maybe-install-strip-guile \
@@ -29005,6 +29024,447 @@ maintainer-clean-gdbsupport:
+.PHONY: configure-gdbserver maybe-configure-gdbserver
+maybe-configure-gdbserver:
+@if gcc-bootstrap
+configure-gdbserver: stage_current
+@endif gcc-bootstrap
+@if gdbserver
+maybe-configure-gdbserver: configure-gdbserver
+configure-gdbserver:
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ test ! -f $(HOST_SUBDIR)/gdbserver/Makefile || exit 0; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdbserver; \
+ $(HOST_EXPORTS) \
+ echo Configuring in $(HOST_SUBDIR)/gdbserver; \
+ cd "$(HOST_SUBDIR)/gdbserver" || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/gdbserver/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=gdbserver; \
+ $(SHELL) \
+ $$s/$$module_srcdir/configure \
+ --srcdir=$${topdir}/$$module_srcdir \
+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+ --target=${target_alias} \
+ || exit 1
+@endif gdbserver
+
+
+
+
+
+.PHONY: all-gdbserver maybe-all-gdbserver
+maybe-all-gdbserver:
+@if gcc-bootstrap
+all-gdbserver: stage_current
+@endif gcc-bootstrap
+@if gdbserver
+TARGET-gdbserver=all
+maybe-all-gdbserver: all-gdbserver
+all-gdbserver: configure-gdbserver
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
+ $(TARGET-gdbserver))
+@endif gdbserver
+
+
+
+
+.PHONY: check-gdbserver maybe-check-gdbserver
+maybe-check-gdbserver:
+@if gdbserver
+maybe-check-gdbserver: check-gdbserver
+
+check-gdbserver:
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(FLAGS_TO_PASS) check)
+
+@endif gdbserver
+
+.PHONY: install-gdbserver maybe-install-gdbserver
+maybe-install-gdbserver:
+@if gdbserver
+maybe-install-gdbserver: install-gdbserver
+
+install-gdbserver: installdirs
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(FLAGS_TO_PASS) install)
+
+@endif gdbserver
+
+.PHONY: install-strip-gdbserver maybe-install-strip-gdbserver
+maybe-install-strip-gdbserver:
+@if gdbserver
+maybe-install-strip-gdbserver: install-strip-gdbserver
+
+install-strip-gdbserver: installdirs
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(FLAGS_TO_PASS) install-strip)
+
+@endif gdbserver
+
+# Other targets (info, dvi, pdf, etc.)
+
+.PHONY: maybe-info-gdbserver info-gdbserver
+maybe-info-gdbserver:
+@if gdbserver
+maybe-info-gdbserver: info-gdbserver
+
+info-gdbserver: \
+ configure-gdbserver
+ @: $(MAKE); $(unstage)
+ @[ -f ./gdbserver/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing info in gdbserver"; \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ info) \
+ || exit 1
+
+@endif gdbserver
+
+.PHONY: maybe-dvi-gdbserver dvi-gdbserver
+maybe-dvi-gdbserver:
+@if gdbserver
+maybe-dvi-gdbserver: dvi-gdbserver
+
+dvi-gdbserver: \
+ configure-gdbserver
+ @: $(MAKE); $(unstage)
+ @[ -f ./gdbserver/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing dvi in gdbserver"; \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ dvi) \
+ || exit 1
+
+@endif gdbserver
+
+.PHONY: maybe-pdf-gdbserver pdf-gdbserver
+maybe-pdf-gdbserver:
+@if gdbserver
+maybe-pdf-gdbserver: pdf-gdbserver
+
+pdf-gdbserver: \
+ configure-gdbserver
+ @: $(MAKE); $(unstage)
+ @[ -f ./gdbserver/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing pdf in gdbserver"; \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ pdf) \
+ || exit 1
+
+@endif gdbserver
+
+.PHONY: maybe-html-gdbserver html-gdbserver
+maybe-html-gdbserver:
+@if gdbserver
+maybe-html-gdbserver: html-gdbserver
+
+html-gdbserver: \
+ configure-gdbserver
+ @: $(MAKE); $(unstage)
+ @[ -f ./gdbserver/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing html in gdbserver"; \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ html) \
+ || exit 1
+
+@endif gdbserver
+
+.PHONY: maybe-TAGS-gdbserver TAGS-gdbserver
+maybe-TAGS-gdbserver:
+@if gdbserver
+maybe-TAGS-gdbserver: TAGS-gdbserver
+
+TAGS-gdbserver: \
+ configure-gdbserver
+ @: $(MAKE); $(unstage)
+ @[ -f ./gdbserver/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing TAGS in gdbserver"; \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ TAGS) \
+ || exit 1
+
+@endif gdbserver
+
+.PHONY: maybe-install-info-gdbserver install-info-gdbserver
+maybe-install-info-gdbserver:
+@if gdbserver
+maybe-install-info-gdbserver: install-info-gdbserver
+
+install-info-gdbserver: \
+ configure-gdbserver \
+ info-gdbserver
+ @: $(MAKE); $(unstage)
+ @[ -f ./gdbserver/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing install-info in gdbserver"; \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ install-info) \
+ || exit 1
+
+@endif gdbserver
+
+.PHONY: maybe-install-pdf-gdbserver install-pdf-gdbserver
+maybe-install-pdf-gdbserver:
+@if gdbserver
+maybe-install-pdf-gdbserver: install-pdf-gdbserver
+
+install-pdf-gdbserver: \
+ configure-gdbserver \
+ pdf-gdbserver
+ @: $(MAKE); $(unstage)
+ @[ -f ./gdbserver/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing install-pdf in gdbserver"; \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ install-pdf) \
+ || exit 1
+
+@endif gdbserver
+
+.PHONY: maybe-install-html-gdbserver install-html-gdbserver
+maybe-install-html-gdbserver:
+@if gdbserver
+maybe-install-html-gdbserver: install-html-gdbserver
+
+install-html-gdbserver: \
+ configure-gdbserver \
+ html-gdbserver
+ @: $(MAKE); $(unstage)
+ @[ -f ./gdbserver/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing install-html in gdbserver"; \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ install-html) \
+ || exit 1
+
+@endif gdbserver
+
+.PHONY: maybe-installcheck-gdbserver installcheck-gdbserver
+maybe-installcheck-gdbserver:
+@if gdbserver
+maybe-installcheck-gdbserver: installcheck-gdbserver
+
+installcheck-gdbserver: \
+ configure-gdbserver
+ @: $(MAKE); $(unstage)
+ @[ -f ./gdbserver/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing installcheck in gdbserver"; \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ installcheck) \
+ || exit 1
+
+@endif gdbserver
+
+.PHONY: maybe-mostlyclean-gdbserver mostlyclean-gdbserver
+maybe-mostlyclean-gdbserver:
+@if gdbserver
+maybe-mostlyclean-gdbserver: mostlyclean-gdbserver
+
+mostlyclean-gdbserver:
+ @: $(MAKE); $(unstage)
+ @[ -f ./gdbserver/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing mostlyclean in gdbserver"; \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ mostlyclean) \
+ || exit 1
+
+@endif gdbserver
+
+.PHONY: maybe-clean-gdbserver clean-gdbserver
+maybe-clean-gdbserver:
+@if gdbserver
+maybe-clean-gdbserver: clean-gdbserver
+
+clean-gdbserver:
+ @: $(MAKE); $(unstage)
+ @[ -f ./gdbserver/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing clean in gdbserver"; \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ clean) \
+ || exit 1
+
+@endif gdbserver
+
+.PHONY: maybe-distclean-gdbserver distclean-gdbserver
+maybe-distclean-gdbserver:
+@if gdbserver
+maybe-distclean-gdbserver: distclean-gdbserver
+
+distclean-gdbserver:
+ @: $(MAKE); $(unstage)
+ @[ -f ./gdbserver/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing distclean in gdbserver"; \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ distclean) \
+ || exit 1
+
+@endif gdbserver
+
+.PHONY: maybe-maintainer-clean-gdbserver maintainer-clean-gdbserver
+maybe-maintainer-clean-gdbserver:
+@if gdbserver
+maybe-maintainer-clean-gdbserver: maintainer-clean-gdbserver
+
+maintainer-clean-gdbserver:
+ @: $(MAKE); $(unstage)
+ @[ -f ./gdbserver/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing maintainer-clean in gdbserver"; \
+ (cd $(HOST_SUBDIR)/gdbserver && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ maintainer-clean) \
+ || exit 1
+
+@endif gdbserver
+
+
+
.PHONY: configure-gdb maybe-configure-gdb
maybe-configure-gdb:
@if gcc-bootstrap
diff --git a/configure b/configure
index 91dc42f..8a3e702 100755
--- a/configure
+++ b/configure
@@ -2831,7 +2831,7 @@ host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktr
# binutils, gas and ld appear in that order because it makes sense to run
# "make check" in that particular order.
# If --enable-gold is used, "gold" may replace "ld".
-host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
+host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
# these libraries are built for the target environment, and are built after
# the host libraries and the host tools (which may be a cross compiler)
@@ -3538,6 +3538,25 @@ case "${target}" in
;;
esac
+# Only allow gdbserver on some systems.
+if test -d ${srcdir}/gdbserver; then
+ if test x$enable_gdbserver = x; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
+$as_echo_n "checking for gdbserver support... " >&6; }
+ if (srcdir=${srcdir}/gdbserver; \
+ . ${srcdir}/configure.srv; \
+ test -n "$UNSUPPORTED")
+ then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ noconfigdirs="$noconfigdirs gdbserver"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ fi
+ fi
+fi
+
# Disable libgo for some systems where it is known to not work.
# For testing, you can easily override this with --enable-libgo.
if test x$enable_libgo = x; then
diff --git a/configure.ac b/configure.ac
index 4bd869a..35a9c18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
# 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012,
-# 2014, 2015, 2016, 2019 Free Software Foundation, Inc.
+# 2014, 2015, 2016, 2019, 2020 Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -140,7 +140,7 @@ host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktr
# binutils, gas and ld appear in that order because it makes sense to run
# "make check" in that particular order.
# If --enable-gold is used, "gold" may replace "ld".
-host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
+host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
# these libraries are built for the target environment, and are built after
# the host libraries and the host tools (which may be a cross compiler)
@@ -782,6 +782,22 @@ case "${target}" in
;;
esac
+# Only allow gdbserver on some systems.
+if test -d ${srcdir}/gdbserver; then
+ if test x$enable_gdbserver = x; then
+ AC_MSG_CHECKING([for gdbserver support])
+ if (srcdir=${srcdir}/gdbserver; \
+ . ${srcdir}/configure.srv; \
+ test -n "$UNSUPPORTED")
+ then
+ AC_MSG_RESULT([no])
+ noconfigdirs="$noconfigdirs gdbserver"
+ else
+ AC_MSG_RESULT([yes])
+ fi
+ fi
+fi
+
# Disable libgo for some systems where it is known to not work.
# For testing, you can easily override this with --enable-libgo.
if test x$enable_libgo = x; then
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 59648e6..901841e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,12 @@
+2020-02-07 Tom Tromey <tom@tromey.com>
+
+ * README: Update gdbserver documentation.
+ * gdbserver: Move to top level.
+ * configure.tgt (build_gdbserver): Remove.
+ * configure.ac: Remove --enable-gdbserver.
+ * configure: Rebuild.
+ * Makefile.in (distclean): Don't mention gdbserver.
+
2020-02-06 Shahab Vahedi <shahab@synopsys.com>
* source-cache.c (source_cache::ensure): Surround
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 45d1586..49fff37 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1898,13 +1898,8 @@ clean mostlyclean: $(CONFIG_CLEAN)
# I believe this is wrong; the makefile standards for distclean just
# describe removing files; the only sort of "re-create a distribution"
# functionality described is if the distributed files are unmodified.
-# NB: While GDBSERVER might be configured on native systems, it isn't
-# always included in SUBDIRS. Remove the gdbserver files explicitly.
distclean: clean
@$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(CLEANDIRS)" subdir_do
- rm -f gdbserver/config.status gdbserver/config.log
- rm -f gdbserver/tm.h gdbserver/xm.h gdbserver/nm.h
- rm -f gdbserver/Makefile gdbserver/config.cache
rm -f nm.h config.status config.h stamp-h b jit-reader.h
rm -f gdb-gdb.py gdb-gdb.gdb
rm -f y.output yacc.acts yacc.tmp y.tab.h
diff --git a/gdb/README b/gdb/README
index be7fdcb..3895758 100644
--- a/gdb/README
+++ b/gdb/README
@@ -583,12 +583,11 @@ of remote stubs to be used with remote.c. They are designed to run
standalone on an m68k, i386, or SPARC cpu and communicate properly
with the remote.c stub over a serial line.
- The directory gdb/gdbserver/ contains `gdbserver', a program that
+ The directory gdbserver/ contains `gdbserver', a program that
allows remote debugging for Unix applications. GDBserver is only
-supported for some native configurations, including Sun 3, Sun 4, and
-Linux.
+supported for some native configurations.
- The file gdb/gdbserver/README includes further notes on GDBserver; in
+ The file gdbserver/README includes further notes on GDBserver; in
particular, it explains how to build GDBserver for cross-debugging
(where GDBserver runs on the target machine, which is of a different
architecture than the host machine running GDB).
diff --git a/gdb/configure b/gdb/configure
index 72ffad8..a1d1506 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -905,7 +905,6 @@ with_tcl
with_tk
with_x
enable_sim
-enable_gdbserver
with_babeltrace
with_libbabeltrace_prefix
with_xxhash
@@ -930,8 +929,7 @@ YACC
YFLAGS
XMKMF'
ac_subdirs_all='testsuite
-gdbtk
-gdbserver'
+gdbtk'
# Initialize some variables set by options.
ac_init_help=
@@ -1575,8 +1573,6 @@ Optional Features:
gcc is used
--enable-ubsan enable undefined behavior sanitizer (auto/yes/no)
--enable-sim link gdb with simulator
- --enable-gdbserver automatically build gdbserver (yes/no/auto, default
- is auto)
--enable-unit-tests Enable the inclusion of unit tests when compiling
GDB
@@ -6738,7 +6734,6 @@ fi
# For other settings, only the main target counts.
gdb_sim=
gdb_osabi=
-build_gdbserver=
targ=$target; . ${srcdir}/configure.tgt
# Fetch the default architecture and default target vector from BFD.
@@ -17848,40 +17843,6 @@ _ACEOF
fi
-# Check whether --enable-gdbserver was given.
-if test "${enable_gdbserver+set}" = set; then :
- enableval=$enable_gdbserver; case "${enableval}" in
- yes| no|auto) ;;
- *) as_fn_error $? "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
-esac
-else
- enable_gdbserver=auto
-fi
-
-
-# We only build gdbserver automatically in a native configuration, and
-# only if the user did not explicitly disable its build.
-if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
-$as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
- if test "x$build_gdbserver" = xyes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- subdirs="$subdirs gdbserver"
-
- gdbserver_build_enabled=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- fi
-fi
-
-# If the user explicitly request the gdbserver to be built, verify that
-# we were in fact able to enable it.
-if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
- as_fn_error $? "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
-fi
-
# Check for babeltrace and babeltrace-ctf
# Check whether --with-babeltrace was given.
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 0ca1691..335971f 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -254,7 +254,6 @@ AC_SUBST(HAVE_NATIVE_GCORE_TARGET)
# For other settings, only the main target counts.
gdb_sim=
gdb_osabi=
-build_gdbserver=
targ=$target; . ${srcdir}/configure.tgt
# Fetch the default architecture and default target vector from BFD.
@@ -2001,33 +2000,6 @@ if test x"${gdb_osabi}" != x ; then
[Define to the default OS ABI for this configuration.])
fi
-AC_ARG_ENABLE(gdbserver,
-AS_HELP_STRING([--enable-gdbserver],
- [automatically build gdbserver (yes/no/auto, default is auto)]),
-[case "${enableval}" in
- yes| no|auto) ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-gdbserver option) ;;
-esac],[enable_gdbserver=auto])
-
-# We only build gdbserver automatically in a native configuration, and
-# only if the user did not explicitly disable its build.
-if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
- AC_MSG_CHECKING(whether gdbserver is supported on this host)
- if test "x$build_gdbserver" = xyes; then
- AC_MSG_RESULT(yes)
- AC_CONFIG_SUBDIRS(gdbserver)
- gdbserver_build_enabled=yes
- else
- AC_MSG_RESULT(no)
- fi
-fi
-
-# If the user explicitly request the gdbserver to be built, verify that
-# we were in fact able to enable it.
-if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
- AC_MSG_ERROR(Automatic gdbserver build is not supported for this configuration)
-fi
-
# Check for babeltrace and babeltrace-ctf
AC_ARG_WITH(babeltrace,
AC_HELP_STRING([--with-babeltrace], [include babeltrace support (auto/yes/no)]),
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index ab4c098..755187d 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -5,7 +5,6 @@
# gdb_target_obs target-specific object files to use
# gdb_sim simulator library for target
# gdb_osabi default OS ABI to use with target
-# build_gdbserver set to "yes" if gdbserver supports target
# gdb_have_gcore set to "true"/"false" if this target can run gcore
# NOTE: Every file added to a gdb_target_obs variable for any target here
@@ -129,7 +128,6 @@ aarch64*-*-linux*)
arm-tdep.o arm-linux-tdep.o \
glibc-tdep.o linux-tdep.o solib-svr4.o \
symfile-mem.o linux-record.o"
- build_gdbserver=yes
;;
alpha*-*-linux*)
@@ -162,13 +160,11 @@ arc*-*-elf32)
arm*-wince-pe | arm*-*-mingw32ce*)
# Target: ARM based machine running Windows CE (win32)
gdb_target_obs="arm-wince-tdep.o windows-tdep.o"
- build_gdbserver=yes
;;
arm*-*-linux*)
# Target: ARM based machine running GNU/Linux
gdb_target_obs="arch/arm-linux.o arm-linux-tdep.o glibc-tdep.o \
solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
- build_gdbserver=yes
;;
arm*-*-freebsd*)
# Target: FreeBSD/arm
@@ -202,7 +198,6 @@ bfin-*-*linux*)
# Target: Blackfin Linux
gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
gdb_sim=../sim/bfin/libsim.a
- build_gdbserver=yes
;;
bfin-*-*)
# Target: Blackfin processor
@@ -285,7 +280,6 @@ i[34567]86-*-nto*)
# Target: Intel 386 running qnx6.
gdb_target_obs="solib-svr4.o \
i386-nto-tdep.o nto-tdep.o"
- build_gdbserver=yes
;;
i[34567]86-*-solaris2* | x86_64-*-solaris2*)
# Target: Solaris x86_64
@@ -303,7 +297,6 @@ i[34567]86-*-linux*)
# Target: GNU/Linux x86-64
gdb_target_obs="amd64-linux-tdep.o ${gdb_target_obs}"
fi
- build_gdbserver=yes
;;
i[34567]86-*-gnu*)
# Target: Intel 386 running the GNU Hurd
@@ -312,12 +305,10 @@ i[34567]86-*-gnu*)
i[34567]86-*-cygwin*)
# Target: Intel 386 running win32
gdb_target_obs="i386-cygwin-tdep.o windows-tdep.o"
- build_gdbserver=yes
;;
i[34567]86-*-mingw32*)
# Target: Intel 386 running win32
gdb_target_obs="i386-cygwin-tdep.o windows-tdep.o"
- build_gdbserver=yes
;;
i[34567]86-*-go32* | i[34567]86-*-msdosdjgpp*)
# Target: i386 running DJGPP/go32.
@@ -328,7 +319,6 @@ ia64-*-linux*)
# Target: Intel IA-64 running GNU/Linux
gdb_target_obs="ia64-linux-tdep.o linux-tdep.o \
solib-svr4.o symfile-mem.o"
- build_gdbserver=yes
;;
ia64-*-*vms*)
# Target: Intel IA-64 running OpenVMS
@@ -359,7 +349,6 @@ m32r*-*-linux*)
glibc-tdep.o solib-svr4.o symfile-mem.o \
linux-tdep.o"
gdb_sim=../sim/m32r/libsim.a
- build_gdbserver=yes
;;
m32r*-*-*)
# Target: Renesas m32r processor
@@ -382,7 +371,6 @@ m68*-*-linux*)
# Target: Motorola m68k with a.out and ELF
gdb_target_obs="m68k-tdep.o m68k-linux-tdep.o solib-svr4.o \
linux-tdep.o glibc-tdep.o symfile-mem.o"
- build_gdbserver=yes
;;
m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
# Target: NetBSD/m68k
@@ -416,7 +404,6 @@ mips*-*-linux*)
gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
solib-svr4.o symfile-mem.o linux-tdep.o"
gdb_sim=../sim/mips/libsim.a
- build_gdbserver=yes
;;
mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
# Target: MIPS running NetBSD
@@ -480,7 +467,6 @@ or1k*-*-linux*)
gdb_target_obs="or1k-tdep.o or1k-linux-tdep.o solib-svr4.o \
symfile-mem.o glibc-tdep.o linux-tdep.o"
gdb_sim=../sim/or1k/libsim.a
- build_gdbserver=yes
;;
or1k-*-* | or1knd-*-*)
@@ -522,7 +508,6 @@ powerpc*-*-linux*)
linux-record.o \
arch/ppc-linux-common.o"
gdb_sim=../sim/ppc/libsim.a
- build_gdbserver=yes
;;
powerpc-*-lynx*178)
# Target: PowerPC running Lynx178.
@@ -541,7 +526,6 @@ s390*-*-linux*)
# Target: S390 running Linux
gdb_target_obs="s390-linux-tdep.o s390-tdep.o solib-svr4.o \
linux-tdep.o linux-record.o symfile-mem.o"
- build_gdbserver=yes
;;
riscv*-*-freebsd*)
@@ -575,7 +559,6 @@ rx-*-elf)
score-*-*)
# Target: S+core embedded system
gdb_target_obs="score-tdep.o"
- build_gdbserver=yes
;;
sh*-*-linux*)
@@ -584,7 +567,6 @@ sh*-*-linux*)
solib-svr4.o symfile-mem.o \
glibc-tdep.o linux-tdep.o"
gdb_sim=../sim/sh/libsim.a
- build_gdbserver=yes
;;
sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
# Target: NetBSD/sh
@@ -612,7 +594,6 @@ sparc-*-linux*)
gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
sparc64-linux-tdep.o ${gdb_target_obs}"
fi
- build_gdbserver=yes
;;
sparc64-*-linux*)
# Target: GNU/Linux UltraSPARC
@@ -620,7 +601,6 @@ sparc64-*-linux*)
sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
sparc-linux-tdep.o solib-svr4.o linux-tdep.o \
ravenscar-thread.o sparc-ravenscar-thread.o"
- build_gdbserver=yes
;;
sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
# Target: FreeBSD/sparc64
@@ -689,7 +669,6 @@ tilegx-*-linux*)
# Target: TILE-Gx
gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
symfile-mem.o glibc-tdep.o linux-tdep.o"
- build_gdbserver=yes
;;
xstormy16-*-*)
@@ -742,7 +721,6 @@ x86_64-*-linux*)
gdb_target_obs="amd64-linux-tdep.o ${i386_tobjs} \
i386-linux-tdep.o glibc-tdep.o \
solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
- build_gdbserver=yes
;;
x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
# Target: FreeBSD/amd64
@@ -754,7 +732,6 @@ x86_64-*-mingw* | x86_64-*-cygwin*)
gdb_target_obs="amd64-windows-tdep.o \
${i386_tobjs} i386-cygwin-tdep.o \
windows-tdep.o"
- build_gdbserver=yes
;;
x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
# Target: NetBSD/amd64
@@ -772,7 +749,6 @@ x86_64-*-rtems*)
xtensa*-*-*linux*)
# Target: GNU/Linux Xtensa
gdb_target_obs="xtensa-linux-tdep.o symfile-mem.o linux-tdep.o"
- build_gdbserver=yes
;;
esac
diff --git a/gdb/gdbserver/.gitignore b/gdbserver/.gitignore
index fef0d01..fef0d01 100644
--- a/gdb/gdbserver/.gitignore
+++ b/gdbserver/.gitignore
diff --git a/gdb/gdbserver/ChangeLog b/gdbserver/ChangeLog
index 9bc965a..a1d6e2a 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdbserver/ChangeLog
@@ -1,3 +1,20 @@
+2020-02-07 Tom Tromey <tom@tromey.com>
+ Pedro Alves <palves@redhat.com>
+
+ * README: Update build documentation.
+ * configure.srv: Set UNSUPPORTED if host is unsupported. Check
+ host, not target.
+ * configure.ac: Update paths.
+ * configure: Rebuild.
+ * acinclude.m4: Update paths.
+ * Makefile.in: Update include paths.
+ (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
+ (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
+ (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
+ (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
+ (%-generated.c): Update paths.
+ * Move entire directory from ../gdb/gdbserver.
+
2020-01-29 Maciej W. Rozycki <macro@wdc.com>
* configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
diff --git a/gdb/gdbserver/Makefile.in b/gdbserver/Makefile.in
index 3922b52..60a52d3 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdbserver/Makefile.in
@@ -66,7 +66,7 @@ STRIP = @STRIP@
# Dependency tracking information.
DEPMODE = @CCDEPMODE@
DEPDIR = @DEPDIR@
-depcomp = $(SHELL) $(srcdir)/../../depcomp
+depcomp = $(SHELL) $(srcdir)/../depcomp
# Directory containing source files. Don't clean up the spacing,
# this exact string is matched for by the "configure" script.
@@ -75,7 +75,7 @@ abs_top_srcdir = @abs_top_srcdir@
abs_srcdir = @abs_srcdir@
VPATH = @srcdir@
-include $(srcdir)/../silent-rules.mk
+include $(srcdir)/../gdb/silent-rules.mk
# Note that these are overridden by GNU make-specific code below if
# GNU make is used. The overrides implement dependency tracking.
@@ -94,7 +94,7 @@ POSTCOMPILE = @true
CC_LD = $(CXX) $(CXX_DIALECT)
# Where is the "include" directory? Traditionally ../include or ./include
-INCLUDE_DIR = ${srcdir}/../../include
+INCLUDE_DIR = ${srcdir}/../include
INCLUDE_DEP = $$(INCLUDE_DIR)
LIBIBERTY_BUILDDIR = build-libiberty-gdbserver
@@ -107,26 +107,26 @@ ustinc = @ustinc@
# gnulib
GNULIB_BUILDDIR = build-gnulib-gdbserver
LIBGNU = $(GNULIB_BUILDDIR)/import/libgnu.a
-INCGNU = -I$(srcdir)/../../gnulib/import -I$(GNULIB_BUILDDIR)/import
+INCGNU = -I$(srcdir)/../gnulib/import -I$(GNULIB_BUILDDIR)/import
# Generated headers in the gnulib directory. These must be listed
# so that they are generated before other files are compiled.
GNULIB_H = $(GNULIB_BUILDDIR)/import/string.h @GNULIB_STDINT_H@
-INCSUPPORT = -I$(srcdir)/../.. -I../..
+INCSUPPORT = -I$(srcdir)/.. -I..
# All the includes used for CFLAGS and for lint.
# -I. for config files.
# -I${srcdir} for our headers.
-# -I$(srcdir)/../regformats for regdef.h.
+# -I$(srcdir)/../gdb/regformats for regdef.h.
#
# We do not include ../target or ../nat in here because headers
# in those directories should be included with the subdirectory.
# e.g.: "target/wait.h".
#
INCLUDE_CFLAGS = -I. -I${srcdir} \
- -I$(srcdir)/../regformats -I$(srcdir)/.. -I$(INCLUDE_DIR) \
- $(INCGNU) $(INCSUPPORT)
+ -I$(srcdir)/../gdb/regformats -I$(srcdir)/.. -I$(INCLUDE_DIR) \
+ -I$(srcdir)/../gdb $(INCGNU) $(INCSUPPORT)
# M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
# from the config/ directory.
@@ -202,46 +202,46 @@ SFILES = \
$(srcdir)/win32-low.c \
$(srcdir)/wincecompat.c \
$(srcdir)/x86-low.c \
- $(srcdir)/../alloc.c \
- $(srcdir)/../arch/arm.c \
- $(srcdir)/../arch/arm-get-next-pcs.c \
- $(srcdir)/../arch/arm-linux.c \
- $(srcdir)/../arch/ppc-linux-common.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-inferior.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-dlfcn.c \
- $(srcdir)/../../gdbsupport/gdb_tilde_expand.c \
- $(srcdir)/../../gdbsupport/gdb_vecs.c \
- $(srcdir)/../../gdbsupport/gdb_wait.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/safe-strerror.c \
- $(srcdir)/../../gdbsupport/tdesc.c \
- $(srcdir)/../../gdbsupport/xml-utils.c \
- $(srcdir)/../nat/aarch64-sve-linux-ptrace.c \
- $(srcdir)/../nat/linux-btrace.c \
- $(srcdir)/../nat/linux-namespaces.c \
- $(srcdir)/../nat/linux-osdata.c \
- $(srcdir)/../nat/linux-personality.c \
- $(srcdir)/../nat/mips-linux-watch.c \
- $(srcdir)/../nat/ppc-linux.c \
- $(srcdir)/../nat/fork-inferior.c \
- $(srcdir)/../target/waitstatus.c
+ $(srcdir)/../gdb/alloc.c \
+ $(srcdir)/../gdb/arch/arm.c \
+ $(srcdir)/../gdb/arch/arm-get-next-pcs.c \
+ $(srcdir)/../gdb/arch/arm-linux.c \
+ $(srcdir)/../gdb/arch/ppc-linux-common.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-inferior.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-dlfcn.c \
+ $(srcdir)/../gdbsupport/gdb_tilde_expand.c \
+ $(srcdir)/../gdbsupport/gdb_vecs.c \
+ $(srcdir)/../gdbsupport/gdb_wait.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/safe-strerror.c \
+ $(srcdir)/../gdbsupport/tdesc.c \
+ $(srcdir)/../gdbsupport/xml-utils.c \
+ $(srcdir)/../gdb/nat/aarch64-sve-linux-ptrace.c \
+ $(srcdir)/../gdb/nat/linux-btrace.c \
+ $(srcdir)/../gdb/nat/linux-namespaces.c \
+ $(srcdir)/../gdb/nat/linux-osdata.c \
+ $(srcdir)/../gdb/nat/linux-personality.c \
+ $(srcdir)/../gdb/nat/mips-linux-watch.c \
+ $(srcdir)/../gdb/nat/ppc-linux.c \
+ $(srcdir)/../gdb/nat/fork-inferior.c \
+ $(srcdir)/../gdb/target/waitstatus.c
DEPFILES = @GDBSERVER_DEPFILES@
@@ -322,7 +322,7 @@ XM_CLIBS = @LIBS@
CDEPS = $(srcdir)/proc-service.list
# XML files to compile in to gdbserver, if any.
-XML_DIR = $(srcdir)/../features
+XML_DIR = $(srcdir)/../gdb/features
XML_FILES = @srv_xmlfiles@
XML_BUILTIN = @srv_xmlbuiltin@
@@ -388,10 +388,10 @@ install-only:
n=`echo gdbserver | sed '$(program_transform_name)'`; \
if [ x$$n = x ]; then n=gdbserver; else true; fi; \
if [ x"$(IPA_DEPFILES)" != x ]; then \
- $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
+ $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(libdir); \
$(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
fi; \
- $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir); \
+ $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir); \
$(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) gdbserver$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
# Note that we run install and not install-only, as the latter
# is not part of GNU standards and in particular not provided
@@ -522,14 +522,14 @@ stamp-h: config.in config.status
Makefile: Makefile.in config.status
$(SHELL) ./config.status $@
-$(GNULIB_BUILDDIR)/Makefile: $(srcdir)/../../gnulib/Makefile.in config.status
+$(GNULIB_BUILDDIR)/Makefile: $(srcdir)/../gnulib/Makefile.in config.status
@cd $(GNULIB_BUILDDIR); CONFIG_FILES="Makefile" \
CONFIG_COMMANDS="depfiles" \
CONFIG_HEADERS= \
CONFIG_LINKS= \
$(SHELL) config.status
-config.status: configure configure.srv $(srcdir)/../../bfd/development.sh
+config.status: configure configure.srv $(srcdir)/../bfd/development.sh
$(SHELL) ./config.status --recheck
# automatic rebuilding in automake-generated Makefiles requires
@@ -541,8 +541,8 @@ am--refresh:
force:
-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)/.. \
+version-generated.c: Makefile $(srcdir)/../gdb/version.in $(srcdir)/../bfd/version.h $(srcdir)/../gdbsupport/create-version.sh
+ $(ECHO_GEN) $(SHELL) $(srcdir)/../gdbsupport/create-version.sh $(srcdir)/../gdb \
$(host_alias) $(target_alias) $@
xml-builtin-generated.c: stamp-xml; @true
@@ -550,7 +550,7 @@ stamp-xml: $(XML_DIR)/feature_to_c.sh Makefile $(XML_FILES)
$(SILENCE) rm -f xml-builtin.tmp
$(ECHO_GEN_XML_BUILTIN_GENERATED) $(SHELL) $(XML_DIR)/feature_to_c.sh \
xml-builtin.tmp $(XML_FILES)
- $(SILENCE) $(SHELL) $(srcdir)/../../move-if-change xml-builtin.tmp xml-builtin-generated.c
+ $(SILENCE) $(SHELL) $(srcdir)/../move-if-change xml-builtin.tmp xml-builtin-generated.c
$(SILENCE) echo stamp > stamp-xml
.PRECIOUS: xml-builtin.c
@@ -566,7 +566,7 @@ stamp-xml: $(XML_DIR)/feature_to_c.sh Makefile $(XML_FILES)
# will remove them.
MAKEOVERRIDES =
-regdat_sh = $(srcdir)/../regformats/regdat.sh
+regdat_sh = $(srcdir)/../gdb/regformats/regdat.sh
UST_CFLAGS = $(ustinc) -DCONFIG_UST_GDB_INTEGRATION
@@ -596,11 +596,11 @@ ax.o: ax.c
# Rules for objects that go in the in-process agent.
-arch/%-ipa.o: ../arch/%.c
+arch/%-ipa.o: ../gdb/arch/%.c
$(IPAGENT_COMPILE) $<
$(POSTCOMPILE)
-gdbsupport/%-ipa.o: ../../gdbsupport/%.c
+gdbsupport/%-ipa.o: ../gdbsupport/%.c
$(IPAGENT_COMPILE) $<
$(POSTCOMPILE)
@@ -612,7 +612,7 @@ gdbsupport/%-ipa.o: ../../gdbsupport/%.c
$(IPAGENT_COMPILE) $<
$(POSTCOMPILE)
-%-ipa.o: ../%.c
+%-ipa.o: ../gdb/%.c
$(IPAGENT_COMPILE) $<
$(POSTCOMPILE)
@@ -629,11 +629,11 @@ gdbsupport/%-ipa.o: ../../gdbsupport/%.c
# Rules for objects that go in the gdbserver binary.
-arch/%.o: ../arch/%.c
+arch/%.o: ../gdb/arch/%.c
$(COMPILE) $<
$(POSTCOMPILE)
-gdbsupport/%.o: ../../gdbsupport/%.c
+gdbsupport/%.o: ../gdbsupport/%.c
$(COMPILE) $<
$(POSTCOMPILE)
@@ -645,28 +645,28 @@ gdbsupport/%.o: ../../gdbsupport/%.c
$(COMPILE) $<
$(POSTCOMPILE)
-nat/%.o: ../nat/%.c
+nat/%.o: ../gdb/nat/%.c
$(COMPILE) $<
$(POSTCOMPILE)
-target/%.o: ../target/%.c
+target/%.o: ../gdb/target/%.c
$(COMPILE) $<
$(POSTCOMPILE)
-%.o: ../%.c
+%.o: ../gdb/%.c
$(COMPILE) $<
$(POSTCOMPILE)
# Rules for register format descriptions. Suffix destination files with
# -generated to identify and clean them easily.
-%-generated.c: ../regformats/%.dat $(regdat_sh)
+%-generated.c: ../gdb/regformats/%.dat $(regdat_sh)
$(ECHO_REGDAT) $(SHELL) $(regdat_sh) $< $@
-%-generated.c: ../regformats/arm/%.dat $(regdat_sh)
+%-generated.c: ../gdb/regformats/arm/%.dat $(regdat_sh)
$(ECHO_REGDAT) $(SHELL) $(regdat_sh) $< $@
-%-generated.c: ../regformats/rs6000/%.dat $(regdat_sh)
+%-generated.c: ../gdb/regformats/rs6000/%.dat $(regdat_sh)
$(ECHO_REGDAT) $(SHELL) $(regdat_sh) $< $@
#
@@ -711,7 +711,7 @@ all_deps_files = $(foreach dep,$(patsubst %.o,%.Po,$(all_object_files)),\
-include $(all_deps_files)
# Disable implicit make rules.
-include $(srcdir)/../disable-implicit-rules.mk
+include $(srcdir)/../gdb/disable-implicit-rules.mk
# Do not delete intermediate files (e.g. *-generated.c).
.SECONDARY:
diff --git a/gdb/gdbserver/README b/gdbserver/README
index 52a876b..17d435c 100644
--- a/gdb/gdbserver/README
+++ b/gdbserver/README
@@ -100,27 +100,24 @@ The supported targets as of November 2006 are:
spu*-*-*
x86_64-*-linux*
-Configuring GDBserver you should specify the same machine for host and
-target (which are the machine that GDBserver is going to run on. This
-is not the same as the machine that GDB is going to run on; building
-GDBserver automatically as part of building a whole tree of tools does
-not currently work if cross-compilation is involved (we don't get the
-right CC in the Makefile, to start with)).
-
-Building GDBserver for your target is very straightforward. If you build
-GDB natively on a target which GDBserver supports, it will be built
+Building GDBserver for your host is very straightforward. If you build
+GDB natively on a host which GDBserver supports, it will be built
automatically when you build GDB. You can also build just GDBserver:
% mkdir obj
% cd obj
- % path-to-gdbserver-sources/configure
- % make
+ % path-to-toplevel-sources/configure --disable-gdb
+ % make all-gdbserver
+
+(If you have a combined binutils+gdb tree, you may want to also
+disable other directories when configuring, e.g., binutils, gas, gold,
+gprof, and ld.)
If you prefer to cross-compile to your target, then you can also build
GDBserver that way. In a Bourne shell, for example:
% export CC=your-cross-compiler
- % path-to-gdbserver-sources/configure your-target-name
+ % path-to-topevel-sources/configure your-target-name --disable-gdb
% make
Using GDBreplay:
diff --git a/gdb/gdbserver/acinclude.m4 b/gdbserver/acinclude.m4
index eba3a13..5a28451 100644
--- a/gdb/gdbserver/acinclude.m4
+++ b/gdbserver/acinclude.m4
@@ -1,42 +1,42 @@
dnl gdb/gdbserver/configure.in uses BFD_HAVE_SYS_PROCFS_TYPE.
-m4_include(../../bfd/bfd.m4)
+m4_include(../bfd/bfd.m4)
-m4_include(../acx_configure_dir.m4)
+m4_include(../gdb/acx_configure_dir.m4)
# This gets AM_GDB_WARNINGS.
-m4_include(../warning.m4)
+m4_include(../gdb/warning.m4)
dnl This gets autoconf bugfixes
-m4_include(../../config/override.m4)
+m4_include(../config/override.m4)
dnl For ACX_PKGVERSION and ACX_BUGURL.
-m4_include(../../config/acx.m4)
+m4_include(../config/acx.m4)
-m4_include(../../config/depstand.m4)
-m4_include(../../config/lead-dot.m4)
+m4_include(../config/depstand.m4)
+m4_include(../config/lead-dot.m4)
dnl Needed for common.m4
dnl For AC_LIB_HAVE_LINKFLAGS.
-m4_include(../../config/lib-ld.m4)
-m4_include(../../config/lib-prefix.m4)
-m4_include(../../config/lib-link.m4)
+m4_include(../config/lib-ld.m4)
+m4_include(../config/lib-prefix.m4)
+m4_include(../config/lib-link.m4)
dnl codeset.m4 is needed for common.m4, but not for
dnl anything else in gdbserver.
-m4_include(../../config/codeset.m4)
-m4_include(../../gdbsupport/common.m4)
+m4_include(../config/codeset.m4)
+m4_include(../gdbsupport/common.m4)
dnl For libiberty_INIT.
-m4_include(../libiberty.m4)
+m4_include(../gdb/libiberty.m4)
dnl For GDB_AC_PTRACE.
-m4_include(../ptrace.m4)
+m4_include(../gdb/ptrace.m4)
-m4_include(../ax_cxx_compile_stdcxx.m4)
+m4_include(../gdb/ax_cxx_compile_stdcxx.m4)
dnl For GDB_AC_SELFTEST.
-m4_include(../selftest.m4)
+m4_include(../gdb/selftest.m4)
-m4_include([../../config/ax_pthread.m4])
+m4_include([../config/ax_pthread.m4])
dnl Check for existence of a type $1 in libthread_db.h
dnl Based on BFD_HAVE_SYS_PROCFS_TYPE in bfd/bfd.m4.
diff --git a/gdb/gdbserver/aclocal.m4 b/gdbserver/aclocal.m4
index 110b416..110b416 100644
--- a/gdb/gdbserver/aclocal.m4
+++ b/gdbserver/aclocal.m4
diff --git a/gdb/gdbserver/ax.c b/gdbserver/ax.c
index 213db41..213db41 100644
--- a/gdb/gdbserver/ax.c
+++ b/gdbserver/ax.c
diff --git a/gdb/gdbserver/ax.h b/gdbserver/ax.h
index 1fba69e..1fba69e 100644
--- a/gdb/gdbserver/ax.h
+++ b/gdbserver/ax.h
diff --git a/gdb/gdbserver/config.in b/gdbserver/config.in
index da8c313..da8c313 100644
--- a/gdb/gdbserver/config.in
+++ b/gdbserver/config.in
diff --git a/gdb/gdbserver/configure b/gdbserver/configure
index 94f2bed..4b9d7e3 100755
--- a/gdb/gdbserver/configure
+++ b/gdbserver/configure
@@ -6072,7 +6072,7 @@ fi
# Set the 'development' global.
-. $srcdir/../../bfd/development.sh
+. $srcdir/../bfd/development.sh
# Check whether we will enable the inclusion of unit tests when
@@ -6255,7 +6255,7 @@ fi
# "gnulib", to avoid the problem of both GDB and GDBserver wanting to
# build it in the same directory, when building in the source dir.
- in_src="../../gnulib"
+ in_src="../gnulib"
in_build="build-gnulib-gdbserver"
in_extra_args="$gnulib_extra_configure_args"
@@ -6358,7 +6358,7 @@ $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cach
- in_src="../../libiberty"
+ in_src="../libiberty"
in_build="build-libiberty-gdbserver"
in_extra_args=
diff --git a/gdb/gdbserver/configure.ac b/gdbserver/configure.ac
index 03b36dc..285a297 100644
--- a/gdb/gdbserver/configure.ac
+++ b/gdbserver/configure.ac
@@ -44,7 +44,7 @@ AX_CXX_COMPILE_STDCXX(11, , mandatory)
AC_HEADER_STDC
# Set the 'development' global.
-. $srcdir/../../bfd/development.sh
+. $srcdir/../bfd/development.sh
GDB_AC_SELFTEST([
srv_selftest_objs="gdbsupport/selftest.o"
@@ -80,10 +80,10 @@ fi
# gdbserver/. We need to build gnulib under some other directory not
# "gnulib", to avoid the problem of both GDB and GDBserver wanting to
# build it in the same directory, when building in the source dir.
-ACX_CONFIGURE_DIR(["../../gnulib"], ["build-gnulib-gdbserver"],
+ACX_CONFIGURE_DIR(["../gnulib"], ["build-gnulib-gdbserver"],
["$gnulib_extra_configure_args"])
-ACX_CONFIGURE_DIR(["../../libiberty"], ["build-libiberty-gdbserver"])
+ACX_CONFIGURE_DIR(["../libiberty"], ["build-libiberty-gdbserver"])
AC_CHECK_HEADERS(termios.h sys/reg.h string.h dnl
sys/procfs.h linux/elf.h dnl
diff --git a/gdb/gdbserver/configure.srv b/gdbserver/configure.srv
index dba0733..2e83cbd 100644
--- a/gdb/gdbserver/configure.srv
+++ b/gdbserver/configure.srv
@@ -1,6 +1,8 @@
# Mappings from configuration triplets to gdbserver build options.
# This is invoked from the autoconf-generated configure script, to
# produce the appropriate Makefile substitutions.
+# It is also sourced by the top level configure script, to determine
+# whether gdbserver is supported on a given host.
# This file sets the following shell variables:
# srv_regobj The register protocol appropriate for this target.
@@ -12,6 +14,7 @@
# gdbserver in this configuration.
# ipa_obj Any other target-specific modules appropriate
# for this target's in-process agent.
+# UNSUPPORTED Set to 1 if the host is unsupported.
#
# In addition, on GNU/Linux the following shell variables will be set:
# srv_linux_regsets Set to "yes" if ptrace(PTRACE_GETREGS) and friends
@@ -30,9 +33,9 @@ ipa_ppc_linux_regobj="powerpc-32l-ipa.o powerpc-altivec32l-ipa.o powerpc-vsx32l-
# these files over and over again.
srv_linux_obj="linux-low.o nat/linux-osdata.o nat/linux-procfs.o nat/linux-ptrace.o nat/linux-waitpid.o nat/linux-personality.o nat/linux-namespaces.o fork-child.o nat/fork-inferior.o"
-# Input is taken from the "${target}" variable.
+# Input is taken from the "${host}" variable.
-case "${target}" in
+case "${host}" in
aarch64*-*-linux*) srv_tgtobj="linux-aarch64-low.o"
srv_tgtobj="$srv_tgtobj nat/aarch64-linux-hw-point.o"
srv_tgtobj="$srv_tgtobj linux-aarch32-low.o"
@@ -396,7 +399,8 @@ case "${target}" in
srv_linux_regsets=yes
srv_linux_thread_db=yes
;;
- *) echo "Error: target not supported by gdbserver."
- exit 1
+ *)
+ # Who are you?
+ UNSUPPORTED=1
;;
esac
diff --git a/gdb/gdbserver/debug.c b/gdbserver/debug.c
index 7bb2504..7bb2504 100644
--- a/gdb/gdbserver/debug.c
+++ b/gdbserver/debug.c
diff --git a/gdb/gdbserver/debug.h b/gdbserver/debug.h
index b026ee7..b026ee7 100644
--- a/gdb/gdbserver/debug.h
+++ b/gdbserver/debug.h
diff --git a/gdb/gdbserver/dll.c b/gdbserver/dll.c
index fdc7bec..fdc7bec 100644
--- a/gdb/gdbserver/dll.c
+++ b/gdbserver/dll.c
diff --git a/gdb/gdbserver/dll.h b/gdbserver/dll.h
index 63c1cd4..63c1cd4 100644
--- a/gdb/gdbserver/dll.h
+++ b/gdbserver/dll.h
diff --git a/gdb/gdbserver/event-loop.c b/gdbserver/event-loop.c
index 8827e8a..8827e8a 100644
--- a/gdb/gdbserver/event-loop.c
+++ b/gdbserver/event-loop.c
diff --git a/gdb/gdbserver/event-loop.h b/gdbserver/event-loop.h
index a49173e..a49173e 100644
--- a/gdb/gdbserver/event-loop.h
+++ b/gdbserver/event-loop.h
diff --git a/gdb/gdbserver/fork-child.c b/gdbserver/fork-child.c
index 7a71ec0..7a71ec0 100644
--- a/gdb/gdbserver/fork-child.c
+++ b/gdbserver/fork-child.c
diff --git a/gdb/gdbserver/gdb_proc_service.h b/gdbserver/gdb_proc_service.h
index bf657e7..bf657e7 100644
--- a/gdb/gdbserver/gdb_proc_service.h
+++ b/gdbserver/gdb_proc_service.h
diff --git a/gdb/gdbserver/gdbreplay.c b/gdbserver/gdbreplay.c
index 263fb0e..263fb0e 100644
--- a/gdb/gdbserver/gdbreplay.c
+++ b/gdbserver/gdbreplay.c
diff --git a/gdb/gdbserver/gdbthread.h b/gdbserver/gdbthread.h
index 6876251..6876251 100644
--- a/gdb/gdbserver/gdbthread.h
+++ b/gdbserver/gdbthread.h
diff --git a/gdb/gdbserver/hostio-errno.c b/gdbserver/hostio-errno.c
index b75e64d..b75e64d 100644
--- a/gdb/gdbserver/hostio-errno.c
+++ b/gdbserver/hostio-errno.c
diff --git a/gdb/gdbserver/hostio.c b/gdbserver/hostio.c
index 8af4fbf..8af4fbf 100644
--- a/gdb/gdbserver/hostio.c
+++ b/gdbserver/hostio.c
diff --git a/gdb/gdbserver/hostio.h b/gdbserver/hostio.h
index 4aca65c..4aca65c 100644
--- a/gdb/gdbserver/hostio.h
+++ b/gdbserver/hostio.h
diff --git a/gdb/gdbserver/i387-fp.c b/gdbserver/i387-fp.c
index ef7b513..ef7b513 100644
--- a/gdb/gdbserver/i387-fp.c
+++ b/gdbserver/i387-fp.c
diff --git a/gdb/gdbserver/i387-fp.h b/gdbserver/i387-fp.h
index e4e03e7..e4e03e7 100644
--- a/gdb/gdbserver/i387-fp.h
+++ b/gdbserver/i387-fp.h
diff --git a/gdb/gdbserver/inferiors.c b/gdbserver/inferiors.c
index 88adb16..88adb16 100644
--- a/gdb/gdbserver/inferiors.c
+++ b/gdbserver/inferiors.c
diff --git a/gdb/gdbserver/inferiors.h b/gdbserver/inferiors.h
index 4e24b2c..4e24b2c 100644
--- a/gdb/gdbserver/inferiors.h
+++ b/gdbserver/inferiors.h
diff --git a/gdb/gdbserver/linux-aarch32-low.c b/gdbserver/linux-aarch32-low.c
index c6a7024..c6a7024 100644
--- a/gdb/gdbserver/linux-aarch32-low.c
+++ b/gdbserver/linux-aarch32-low.c
diff --git a/gdb/gdbserver/linux-aarch32-low.h b/gdbserver/linux-aarch32-low.h
index 85eda5c..85eda5c 100644
--- a/gdb/gdbserver/linux-aarch32-low.h
+++ b/gdbserver/linux-aarch32-low.h
diff --git a/gdb/gdbserver/linux-aarch32-tdesc.c b/gdbserver/linux-aarch32-tdesc.c
index b0dffe2..b0dffe2 100644
--- a/gdb/gdbserver/linux-aarch32-tdesc.c
+++ b/gdbserver/linux-aarch32-tdesc.c
diff --git a/gdb/gdbserver/linux-aarch32-tdesc.h b/gdbserver/linux-aarch32-tdesc.h
index 67d3f69..67d3f69 100644
--- a/gdb/gdbserver/linux-aarch32-tdesc.h
+++ b/gdbserver/linux-aarch32-tdesc.h
diff --git a/gdb/gdbserver/linux-aarch64-ipa.c b/gdbserver/linux-aarch64-ipa.c
index 694dfd7..694dfd7 100644
--- a/gdb/gdbserver/linux-aarch64-ipa.c
+++ b/gdbserver/linux-aarch64-ipa.c
diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdbserver/linux-aarch64-low.c
index 961fd5b..961fd5b 100644
--- a/gdb/gdbserver/linux-aarch64-low.c
+++ b/gdbserver/linux-aarch64-low.c
diff --git a/gdb/gdbserver/linux-aarch64-tdesc.c b/gdbserver/linux-aarch64-tdesc.c
index 897fbb4..897fbb4 100644
--- a/gdb/gdbserver/linux-aarch64-tdesc.c
+++ b/gdbserver/linux-aarch64-tdesc.c
diff --git a/gdb/gdbserver/linux-aarch64-tdesc.h b/gdbserver/linux-aarch64-tdesc.h
index 0165e63..0165e63 100644
--- a/gdb/gdbserver/linux-aarch64-tdesc.h
+++ b/gdbserver/linux-aarch64-tdesc.h
diff --git a/gdb/gdbserver/linux-amd64-ipa.c b/gdbserver/linux-amd64-ipa.c
index 53d98f2..53d98f2 100644
--- a/gdb/gdbserver/linux-amd64-ipa.c
+++ b/gdbserver/linux-amd64-ipa.c
diff --git a/gdb/gdbserver/linux-arm-low.c b/gdbserver/linux-arm-low.c
index 9f046c0..9f046c0 100644
--- a/gdb/gdbserver/linux-arm-low.c
+++ b/gdbserver/linux-arm-low.c
diff --git a/gdb/gdbserver/linux-arm-tdesc.c b/gdbserver/linux-arm-tdesc.c
index 2c9fac8..2c9fac8 100644
--- a/gdb/gdbserver/linux-arm-tdesc.c
+++ b/gdbserver/linux-arm-tdesc.c
diff --git a/gdb/gdbserver/linux-arm-tdesc.h b/gdbserver/linux-arm-tdesc.h
index 5e8c6a3..5e8c6a3 100644
--- a/gdb/gdbserver/linux-arm-tdesc.h
+++ b/gdbserver/linux-arm-tdesc.h
diff --git a/gdb/gdbserver/linux-bfin-low.c b/gdbserver/linux-bfin-low.c
index 5bfc886..5bfc886 100644
--- a/gdb/gdbserver/linux-bfin-low.c
+++ b/gdbserver/linux-bfin-low.c
diff --git a/gdb/gdbserver/linux-cris-low.c b/gdbserver/linux-cris-low.c
index 8ea5af9..8ea5af9 100644
--- a/gdb/gdbserver/linux-cris-low.c
+++ b/gdbserver/linux-cris-low.c
diff --git a/gdb/gdbserver/linux-crisv32-low.c b/gdbserver/linux-crisv32-low.c
index facb5c5..facb5c5 100644
--- a/gdb/gdbserver/linux-crisv32-low.c
+++ b/gdbserver/linux-crisv32-low.c
diff --git a/gdb/gdbserver/linux-i386-ipa.c b/gdbserver/linux-i386-ipa.c
index 41f77c8..41f77c8 100644
--- a/gdb/gdbserver/linux-i386-ipa.c
+++ b/gdbserver/linux-i386-ipa.c
diff --git a/gdb/gdbserver/linux-ia64-low.c b/gdbserver/linux-ia64-low.c
index 2399e58..2399e58 100644
--- a/gdb/gdbserver/linux-ia64-low.c
+++ b/gdbserver/linux-ia64-low.c
diff --git a/gdb/gdbserver/linux-low.c b/gdbserver/linux-low.c
index 676dea2..676dea2 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdbserver/linux-low.c
diff --git a/gdb/gdbserver/linux-low.h b/gdbserver/linux-low.h
index e25ddd0..e25ddd0 100644
--- a/gdb/gdbserver/linux-low.h
+++ b/gdbserver/linux-low.h
diff --git a/gdb/gdbserver/linux-m32r-low.c b/gdbserver/linux-m32r-low.c
index c52e816..c52e816 100644
--- a/gdb/gdbserver/linux-m32r-low.c
+++ b/gdbserver/linux-m32r-low.c
diff --git a/gdb/gdbserver/linux-m68k-low.c b/gdbserver/linux-m68k-low.c
index 246b295..246b295 100644
--- a/gdb/gdbserver/linux-m68k-low.c
+++ b/gdbserver/linux-m68k-low.c
diff --git a/gdb/gdbserver/linux-mips-low.c b/gdbserver/linux-mips-low.c
index f94e141..f94e141 100644
--- a/gdb/gdbserver/linux-mips-low.c
+++ b/gdbserver/linux-mips-low.c
diff --git a/gdb/gdbserver/linux-nios2-low.c b/gdbserver/linux-nios2-low.c
index bfc5aee..bfc5aee 100644
--- a/gdb/gdbserver/linux-nios2-low.c
+++ b/gdbserver/linux-nios2-low.c
diff --git a/gdb/gdbserver/linux-ppc-ipa.c b/gdbserver/linux-ppc-ipa.c
index 42d668f..42d668f 100644
--- a/gdb/gdbserver/linux-ppc-ipa.c
+++ b/gdbserver/linux-ppc-ipa.c
diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdbserver/linux-ppc-low.c
index 5d8d67b..5d8d67b 100644
--- a/gdb/gdbserver/linux-ppc-low.c
+++ b/gdbserver/linux-ppc-low.c
diff --git a/gdb/gdbserver/linux-ppc-tdesc-init.h b/gdbserver/linux-ppc-tdesc-init.h
index 3afd78b..3afd78b 100644
--- a/gdb/gdbserver/linux-ppc-tdesc-init.h
+++ b/gdbserver/linux-ppc-tdesc-init.h
diff --git a/gdb/gdbserver/linux-s390-ipa.c b/gdbserver/linux-s390-ipa.c
index 5b90302..5b90302 100644
--- a/gdb/gdbserver/linux-s390-ipa.c
+++ b/gdbserver/linux-s390-ipa.c
diff --git a/gdb/gdbserver/linux-s390-low.c b/gdbserver/linux-s390-low.c
index f3d6f09..f3d6f09 100644
--- a/gdb/gdbserver/linux-s390-low.c
+++ b/gdbserver/linux-s390-low.c
diff --git a/gdb/gdbserver/linux-s390-tdesc.h b/gdbserver/linux-s390-tdesc.h
index e02d853..e02d853 100644
--- a/gdb/gdbserver/linux-s390-tdesc.h
+++ b/gdbserver/linux-s390-tdesc.h
diff --git a/gdb/gdbserver/linux-sh-low.c b/gdbserver/linux-sh-low.c
index abe71ff..abe71ff 100644
--- a/gdb/gdbserver/linux-sh-low.c
+++ b/gdbserver/linux-sh-low.c
diff --git a/gdb/gdbserver/linux-sparc-low.c b/gdbserver/linux-sparc-low.c
index cfa76c0..cfa76c0 100644
--- a/gdb/gdbserver/linux-sparc-low.c
+++ b/gdbserver/linux-sparc-low.c
diff --git a/gdb/gdbserver/linux-tic6x-low.c b/gdbserver/linux-tic6x-low.c
index 51a31c7..51a31c7 100644
--- a/gdb/gdbserver/linux-tic6x-low.c
+++ b/gdbserver/linux-tic6x-low.c
diff --git a/gdb/gdbserver/linux-tile-low.c b/gdbserver/linux-tile-low.c
index cd85e94..cd85e94 100644
--- a/gdb/gdbserver/linux-tile-low.c
+++ b/gdbserver/linux-tile-low.c
diff --git a/gdb/gdbserver/linux-x86-low.c b/gdbserver/linux-x86-low.c
index 09ec22f..09ec22f 100644
--- a/gdb/gdbserver/linux-x86-low.c
+++ b/gdbserver/linux-x86-low.c
diff --git a/gdb/gdbserver/linux-x86-tdesc.c b/gdbserver/linux-x86-tdesc.c
index 96097ee..96097ee 100644
--- a/gdb/gdbserver/linux-x86-tdesc.c
+++ b/gdbserver/linux-x86-tdesc.c
diff --git a/gdb/gdbserver/linux-x86-tdesc.h b/gdbserver/linux-x86-tdesc.h
index 21c8dfd..21c8dfd 100644
--- a/gdb/gdbserver/linux-x86-tdesc.h
+++ b/gdbserver/linux-x86-tdesc.h
diff --git a/gdb/gdbserver/linux-xtensa-low.c b/gdbserver/linux-xtensa-low.c
index 83af11e..83af11e 100644
--- a/gdb/gdbserver/linux-xtensa-low.c
+++ b/gdbserver/linux-xtensa-low.c
diff --git a/gdb/gdbserver/lynx-i386-low.c b/gdbserver/lynx-i386-low.c
index d00e1a1..d00e1a1 100644
--- a/gdb/gdbserver/lynx-i386-low.c
+++ b/gdbserver/lynx-i386-low.c
diff --git a/gdb/gdbserver/lynx-low.c b/gdbserver/lynx-low.c
index a5b0193..a5b0193 100644
--- a/gdb/gdbserver/lynx-low.c
+++ b/gdbserver/lynx-low.c
diff --git a/gdb/gdbserver/lynx-low.h b/gdbserver/lynx-low.h
index b122298..b122298 100644
--- a/gdb/gdbserver/lynx-low.h
+++ b/gdbserver/lynx-low.h
diff --git a/gdb/gdbserver/lynx-ppc-low.c b/gdbserver/lynx-ppc-low.c
index f93fc1d..f93fc1d 100644
--- a/gdb/gdbserver/lynx-ppc-low.c
+++ b/gdbserver/lynx-ppc-low.c
diff --git a/gdb/gdbserver/mem-break.c b/gdbserver/mem-break.c
index 1b6f236..1b6f236 100644
--- a/gdb/gdbserver/mem-break.c
+++ b/gdbserver/mem-break.c
diff --git a/gdb/gdbserver/mem-break.h b/gdbserver/mem-break.h
index bbe1ff1..bbe1ff1 100644
--- a/gdb/gdbserver/mem-break.h
+++ b/gdbserver/mem-break.h
diff --git a/gdb/gdbserver/notif.c b/gdbserver/notif.c
index e18cecd..e18cecd 100644
--- a/gdb/gdbserver/notif.c
+++ b/gdbserver/notif.c
diff --git a/gdb/gdbserver/notif.h b/gdbserver/notif.h
index c5d48c0..c5d48c0 100644
--- a/gdb/gdbserver/notif.h
+++ b/gdbserver/notif.h
diff --git a/gdb/gdbserver/nto-low.c b/gdbserver/nto-low.c
index b4dea47..b4dea47 100644
--- a/gdb/gdbserver/nto-low.c
+++ b/gdbserver/nto-low.c
diff --git a/gdb/gdbserver/nto-low.h b/gdbserver/nto-low.h
index 393b8a9..393b8a9 100644
--- a/gdb/gdbserver/nto-low.h
+++ b/gdbserver/nto-low.h
diff --git a/gdb/gdbserver/nto-x86-low.c b/gdbserver/nto-x86-low.c
index efee957..efee957 100644
--- a/gdb/gdbserver/nto-x86-low.c
+++ b/gdbserver/nto-x86-low.c
diff --git a/gdb/gdbserver/proc-service.c b/gdbserver/proc-service.c
index 9c8885e..9c8885e 100644
--- a/gdb/gdbserver/proc-service.c
+++ b/gdbserver/proc-service.c
diff --git a/gdb/gdbserver/proc-service.list b/gdbserver/proc-service.list
index 6133045..6133045 100644
--- a/gdb/gdbserver/proc-service.list
+++ b/gdbserver/proc-service.list
diff --git a/gdb/gdbserver/regcache.c b/gdbserver/regcache.c
index f634633..f634633 100644
--- a/gdb/gdbserver/regcache.c
+++ b/gdbserver/regcache.c
diff --git a/gdb/gdbserver/regcache.h b/gdbserver/regcache.h
index 8725707..8725707 100644
--- a/gdb/gdbserver/regcache.h
+++ b/gdbserver/regcache.h
diff --git a/gdb/gdbserver/remote-utils.c b/gdbserver/remote-utils.c
index b8a8c65..b8a8c65 100644
--- a/gdb/gdbserver/remote-utils.c
+++ b/gdbserver/remote-utils.c
diff --git a/gdb/gdbserver/remote-utils.h b/gdbserver/remote-utils.h
index 1b31456..1b31456 100644
--- a/gdb/gdbserver/remote-utils.h
+++ b/gdbserver/remote-utils.h
diff --git a/gdb/gdbserver/server.c b/gdbserver/server.c
index 3fc026f..3fc026f 100644
--- a/gdb/gdbserver/server.c
+++ b/gdbserver/server.c
diff --git a/gdb/gdbserver/server.h b/gdbserver/server.h
index 3c28686..3c28686 100644
--- a/gdb/gdbserver/server.h
+++ b/gdbserver/server.h
diff --git a/gdb/gdbserver/symbol.c b/gdbserver/symbol.c
index 467524f..467524f 100644
--- a/gdb/gdbserver/symbol.c
+++ b/gdbserver/symbol.c
diff --git a/gdb/gdbserver/target.c b/gdbserver/target.c
index a4593cf..a4593cf 100644
--- a/gdb/gdbserver/target.c
+++ b/gdbserver/target.c
diff --git a/gdb/gdbserver/target.h b/gdbserver/target.h
index 1b0810b..1b0810b 100644
--- a/gdb/gdbserver/target.h
+++ b/gdbserver/target.h
diff --git a/gdb/gdbserver/tdesc.c b/gdbserver/tdesc.c
index de25e7c..de25e7c 100644
--- a/gdb/gdbserver/tdesc.c
+++ b/gdbserver/tdesc.c
diff --git a/gdb/gdbserver/tdesc.h b/gdbserver/tdesc.h
index 5e0df85..5e0df85 100644
--- a/gdb/gdbserver/tdesc.h
+++ b/gdbserver/tdesc.h
diff --git a/gdb/gdbserver/thread-db.c b/gdbserver/thread-db.c
index 2bb6d28..2bb6d28 100644
--- a/gdb/gdbserver/thread-db.c
+++ b/gdbserver/thread-db.c
diff --git a/gdb/gdbserver/tracepoint.c b/gdbserver/tracepoint.c
index bbca48b..bbca48b 100644
--- a/gdb/gdbserver/tracepoint.c
+++ b/gdbserver/tracepoint.c
diff --git a/gdb/gdbserver/tracepoint.h b/gdbserver/tracepoint.h
index 030b2a9..030b2a9 100644
--- a/gdb/gdbserver/tracepoint.h
+++ b/gdbserver/tracepoint.h
diff --git a/gdb/gdbserver/utils.c b/gdbserver/utils.c
index d88f4ac..d88f4ac 100644
--- a/gdb/gdbserver/utils.c
+++ b/gdbserver/utils.c
diff --git a/gdb/gdbserver/utils.h b/gdbserver/utils.h
index fa3ca9b..fa3ca9b 100644
--- a/gdb/gdbserver/utils.h
+++ b/gdbserver/utils.h
diff --git a/gdb/gdbserver/win32-arm-low.c b/gdbserver/win32-arm-low.c
index 619847d..619847d 100644
--- a/gdb/gdbserver/win32-arm-low.c
+++ b/gdbserver/win32-arm-low.c
diff --git a/gdb/gdbserver/win32-i386-low.c b/gdbserver/win32-i386-low.c
index f5f09e9..f5f09e9 100644
--- a/gdb/gdbserver/win32-i386-low.c
+++ b/gdbserver/win32-i386-low.c
diff --git a/gdb/gdbserver/win32-low.c b/gdbserver/win32-low.c
index 2c4a9b1..2c4a9b1 100644
--- a/gdb/gdbserver/win32-low.c
+++ b/gdbserver/win32-low.c
diff --git a/gdb/gdbserver/win32-low.h b/gdbserver/win32-low.h
index 7a3eeda..7a3eeda 100644
--- a/gdb/gdbserver/win32-low.h
+++ b/gdbserver/win32-low.h
diff --git a/gdb/gdbserver/wincecompat.c b/gdbserver/wincecompat.c
index 46eece1..46eece1 100644
--- a/gdb/gdbserver/wincecompat.c
+++ b/gdbserver/wincecompat.c
diff --git a/gdb/gdbserver/wincecompat.h b/gdbserver/wincecompat.h
index 34705c3..34705c3 100644
--- a/gdb/gdbserver/wincecompat.h
+++ b/gdbserver/wincecompat.h
diff --git a/gdb/gdbserver/x86-low.c b/gdbserver/x86-low.c
index 611e60b..611e60b 100644
--- a/gdb/gdbserver/x86-low.c
+++ b/gdbserver/x86-low.c
diff --git a/gdb/gdbserver/x86-low.h b/gdbserver/x86-low.h
index a797fc7..a797fc7 100644
--- a/gdb/gdbserver/x86-low.h
+++ b/gdbserver/x86-low.h
diff --git a/gdb/gdbserver/x86-tdesc.h b/gdbserver/x86-tdesc.h
index 8398cfd..8398cfd 100644
--- a/gdb/gdbserver/x86-tdesc.h
+++ b/gdbserver/x86-tdesc.h
diff --git a/gdb/gdbserver/xtensa-xtregs.c b/gdbserver/xtensa-xtregs.c
index bd14679..bd14679 100644
--- a/gdb/gdbserver/xtensa-xtregs.c
+++ b/gdbserver/xtensa-xtregs.c
diff --git a/src-release.sh b/src-release.sh
index 1de971e..1f69dee 100755
--- a/src-release.sh
+++ b/src-release.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# Copyright (C) 1990-2019 Free Software Foundation
+# Copyright (C) 1990-2020 Free Software Foundation
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -315,7 +315,7 @@ gas_release()
tar_compress $package $tool "$GAS_SUPPORT_DIRS" "$compressors"
}
-GDB_SUPPORT_DIRS="bfd include libiberty libctf opcodes readline sim intl libdecnumber cpu zlib contrib gnulib gdbsupport"
+GDB_SUPPORT_DIRS="bfd include libiberty libctf opcodes readline sim intl libdecnumber cpu zlib contrib gnulib gdbsupport gdbserver"
gdb_release()
{
compressors=$1