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] Can I use pdb now?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Can I use pdb now?
From: Ryo Kanbayashi <kanbayashi@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 04 Dec 2007 02:30:45 +0900
Cc: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Delivery-date: Mon, 03 Dec 2007 09:31:14 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200712030306.57192.mark.williamson@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <473752B5.50600@xxxxxxxxxxxxxxxxxxxxx> <200712030306.57192.mark.williamson@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.6 (X11/20071022)
thanks mark :-)

Mark Williamson wrote:
>> #please, forgive my lack of words :-)
>>
>> I want to debug xen kernel(!= dom0 or domU) with gdb through pdb.
>> but I've found removing pdb from
>> codebase(http://xenbits.xensource.com/xen-3.1-testing.hg?rev/80388aea02a1).
>> There is still means to use pdb or alternate tool?
>>     
>
> As far as I know pdb is abandoned.
>
> There is a Xen gdb stub in the hypervisor under xen/common/gdbstub.c (there 
> are also arch-specific parts).  You'll need another machine and a null modem 
> cable in order to debug Xen.
>
> You need to build Xen with "make crash_debug=y" in order to build in support 
> for this.  If you have an existing Xen tree you should probably do "make 
> clean" first, to get rid of any stale modules.
>
> Cheers,
> Mark
>   

I tried to use gdb stub as you say.
But in serial console like below

> (XEN) 'h' pressed -> showing installed handlers
> (XEN)  key '%' (ascii '25') => Trap to xendbg
> (XEN)  key 'C' (ascii '43') => trigger a crashdump
> (XEN)  key 'H' (ascii '48') => dump heap info
> (XEN)  key 'N' (ascii '4e') => NMI statistics
> (XEN)  key 'R' (ascii '52') => reboot machine
> (XEN)  key 'a' (ascii '61') => dump timer queues
> (XEN)  key 'd' (ascii '64') => dump registers
> (XEN)  key 'h' (ascii '68') => show this message
> (XEN)  key 'i' (ascii '69') => dump interrupt bindings
> (XEN)  key 'm' (ascii '6d') => memory info
> (XEN)  key 'n' (ascii '6e') => trigger an NMI
> (XEN)  key 'q' (ascii '71') => dump domain (and guest debug) info
> (XEN)  key 'r' (ascii '72') => dump run queues
> (XEN)  key 't' (ascii '74') => display multi-cpu clock info
> (XEN)  key 'u' (ascii '75') => dump numa info
> (XEN)  key 'z' (ascii '7a') => print ioapic info
I hit % key but there were no response.
Why?

****************************************
HPCS lab
4th grade student of Colledge of Information Science, University of Tsukuba

Ryo Kanbayashi



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

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