tools: "kdd" Windows debugger stub.
PATCH 1/1 tools: "kdd" Windows debugger stub.
"kdd" Windows debugger stub.
kdd runs in dom0, attaches to a domain and speaks the Windows kd serial protocol over a TCP connection (which should go to kd or windbg, e.g. by having another VM with its virtual COM1 set up as a TCP listener).
It doesn't do breakpoints &c yet, and windbg can get quite confused since the kernel debugger's not actually running, but it's good enough to extract backtraces from wedged VMs.
Signed-off-by Tim Deegan <[email protected]>
tools/Makefile +11 -0
@@ -36,6 +36,7 @@ SUBDIRS-y += remus SUBDIRS-y += remus SUBDIRS-$(CONFIG_X86) += xenpaging SUBDIRS-$(CONFIG_X86) += debugger/gdbsx +SUBDIRS-$(CONFIG_X86) += debugger/kdd # These don't cross-compile ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
@@ -128,5 +129,15 @@ subdir-all-debugger/gdbsx: .phony subdir-all-debugger/gdbsx: .phony $(MAKE) -C debugger/gdbsx all + +subdir-clean-debugger/kdd subdir-distclean-debugger/kdd: .phony + $(MAKE) -C debugger/kdd clean + +subdir-install-debugger/kdd: .phony + $(MAKE) -C debugger/kdd install + +subdir-all-debugger/kdd: .phony + $(MAKE) -C debugger/kdd all + subdir-distclean-firmware: .phony $(MAKE) -C firmware distclean
tools/debugger/kdd/Makefile new file +22 -0
@@ -0,0 +1,22 @@ +XEN_ROOT = ../../.. +include $(XEN_ROOT)/tools/Rules.mk + +CFLAGS += $(CFLAGS_libxenctrl) +LDLIBS += $(LDLIBS_libxenctrl) + +CFILES := kdd.c kdd-xen.c +OBJS := $(CFILES:.c=.o) + +all: kdd + +kdd: $(OBJS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) + +.PHONY: clean +clean: + rm -f $(OBJS) kdd + +.PHONY: install +install: all + [ -d $(DESTDIR)$(SBINDIR) ] || $(INSTALL_DIR) $(DESTDIR)$(SBINDIR) + $(INSTALL_PROG) kdd $(DESTDIR)$(SBINDIR)/kdd
tools/debugger/kdd/kdd-xen.c new file +625 -0
625 lines not on this page · raw message
tools/debugger/kdd/kdd.c new file +1045 -0
1,045 lines not on this page · raw message
tools/debugger/kdd/kdd.h new file +520 -0
520 lines not on this page · raw message
PATCH 1/1 update .hgignore for kdd
Signed-off-by Tim Deegan <[email protected]>
.hgignore +1 -0
@@ -129,6 +129,7 @@ ^tools/debugger/gdb/gdb-6\.2\.1/.*$ ^tools/debugger/gdb/gdb-6\.2\.1\.tar\.bz2$ ^tools/debugger/gdbsx/gdbsx$ +^tools/debugger/kdd/kdd$ ^tools/debugger/xenitp/xenitp$ ^tools/firmware/.*/biossums$ ^tools/firmware/.*\.bin$