WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] How to debug Xen?

On Sat, 24 Oct 2009 13:32:57 +0800
Jun Zhu <netzhu.pku@xxxxxxxxx> wrote:

> Hi, friends
>       How to debug Xen? Sometimes, I am confused with sudden hardware
> restart or halt. I can not see any output to analyze the problems.
> Can you introduce some debug methods adopted in the Xen development?

I don't know what state gdb is in xen, but I wrote up a built in
debugger in xen, called kdb. It is an assembly level debugger. 
If you are dealing with crash, system will just break into kdb. if 
hang, you can break into it via ctrl+\. If it's badly hung with
interrupts disabled, you can NMI the system, and it would break into
kdb.

See kdb/README in 
http://xenbits.xensource.com/ext/debuggers.hg

for command details, edit kdb_cmds.c and find f_{cmd}. I'll update
README soon with usage for each command.

thanks
mukesh

PS: If the community is interested, I can send patch.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>