Here is a patch to enable gdbsx by default.
--- xen-4.0-testing.hg-07.02.10/tools/Makefile 2010-07-02 10:30:40.000000000 -0700
+++ xen-4.0-testing.hg/tools/Makefile 2010-07-02 11:25:04.000000000 -0700
@@ -36,6 +36,7 @@
SUBDIRS-y += libxl
SUBDIRS-y += remus
SUBDIRS-$(CONFIG_X86) += xenpaging
+SUBDIRS-y += debugger/gdbsx
# These don't cross-compile
ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
@@ -134,3 +135,8 @@
$(MAKE) -C ocaml-xenstored clean; \
fi
+subdir-clean-debugger/gdbsx:
+ $(MAKE) -C debugger/gdbsx clean
+
+subdir-install-debugger/gdbsx:
+ $(MAKE) -C debugger/gdbsx install
--- xen-4.0-testing.hg-07.02.10/xen/Rules.mk 2010-07-02 10:30:41.000000000 -0700
+++ xen-4.0-testing.hg/xen/Rules.mk 2010-07-02 11:58:23.000000000 -0700
@@ -8,7 +8,7 @@
perfc_arrays ?= n
lock_profile ?= n
crash_debug ?= n
-gdbsx ?= n
+gdbsx ?= y
frame_pointer ?= n
XEN_ROOT=$(BASEDIR)/..
I suppose it would be cleaner to eliminate the debugger dir as gdbsx is the only one under there that's used and that would enable the tools/Rules.mk templates to cover the