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 the Xen kernel?

To: Xiaofang Chen <xiachen@xxxxxxxxxxx>
Subject: Re: [Xen-devel] How to debug the Xen kernel?
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Date: Sat, 19 Jun 2004 07:17:54 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx, Ian.Pratt@xxxxxxxxxxxx
Delivery-date: Sat, 19 Jun 2004 07:19:09 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Fri, 18 Jun 2004 22:53:00 MDT." <Pine.GSO.4.50L0.0406182247090.26369-100000@xxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
 
> Can someone tell me how to debug the kernel in Xen?

If you've a second machine, you could use the Xen GDB serial
stub. See docs/pdb.txt

> I tried to use kdb, but it seems that after I did the patch, the "make
> menuconfig" in xenolinux-2.4.26 directory doesn't include the option of
> kdb.

I'm guessing that you didn't modify the patch so that it patched
arch/xen rather than arch/i386? (or use fakei386xen)

Since a kernel debugger is very intimately architecture dependent
it's unlikely to apply without a fair bit of manual merging.

Ian


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel