Alexandra (Sasha) Fedorova
2008-May-19 18:35 UTC
Debugging Xen: serial console or another debug machine?
I would like to know whether you can debug Xen directly via a serial console (like Solaris) or if you need another debug machine (as with FreeBSD and Linux)? I have connected Xen to a serial console, through which I can see the menu of Xen commands (by typing ''h''). Now I want to debug Xen, and the menu says that I must type ''%'': (XEN) key ''%'' (ascii ''25'') => Trap to xendbg When I type ''%'' now, nothing happens -- I am guessing that''s because my Xen is not compiled with debugging enabled. After I compile it with debugging enabled, will I be able to debug it via my existing serial console connection, after typing ''%'', or will I need to connect to Xen machine to another "debug" machine via another serial cable, and connect to gdb on that debug machine? Thanks! This message posted from opensolaris.org
James Cornell
2008-May-19 20:07 UTC
Re: Debugging Xen: serial console or another debug machine?
Alexandra (Sasha) Fedorova wrote:> I would like to know whether you can debug Xen directly via a serial console (like Solaris) or if you need another debug machine (as with FreeBSD and Linux)? > > I have connected Xen to a serial console, through which I can see the menu of Xen commands (by typing ''h''). Now I want to debug Xen, and the menu says that I must type ''%'': > > (XEN) key ''%'' (ascii ''25'') => Trap to xendbg > > When I type ''%'' now, nothing happens -- I am guessing that''s because my Xen is not compiled with debugging enabled. After I compile it with debugging enabled, will I be able to debug it via my existing serial console connection, after typing ''%'', or will I need to connect to Xen machine to another "debug" machine via another serial cable, and connect to gdb on that debug machine? > > Thanks! > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >Does the official Xen documentation say that this will enable debugging? Do they say it''s even supported? Sun''s implementation should be feature compatible. James