From: Ferenc Wagner Subject: GDB stub for stubdom Date: Thu, 30 Apr 2009 13:37:38 +0200 Message-ID: <87ab5y4bjx.fsf@tac.ki.iif.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, 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: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/i386-stub.c?cvsroot=src) -- Regards, Feri.