Did anybody consider adding some remote debugging facility to stubdom?
Or maybe it's already present? If not, putting in a GDB remote stub
shouldn't be too hard, though I don't know much about the low level
architecture. Such code is present in gPXE, for example.
Usage docs: http://www.etherboot.org/wiki/dev/gdbstub
Main code: http://git.etherboot.org/?p=gpxe.git;a=blob;f=src/core/gdbstub.c
The transport could be some Xen specific channel between the stubdom
and dom0 (that would be out of band and hopefully also easy to
implement) translated to/from TCP by a proxy on dom0.
(The official GDB example seems uglier:
Xen-devel mailing list