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] about gdbserver-xen

To: topperxin <topperxin@xxxxxxx>
Subject: Re: [Xen-devel] about gdbserver-xen
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Mon, 06 Dec 2010 10:24:04 -0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 06 Dec 2010 10:24:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <d8a15e.694c.12cba5f49ab.Coremail.topperxin@xxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <d8a15e.694c.12cba5f49ab.Coremail.topperxin@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.6
On 12/05/2010 10:29 PM, topperxin wrote:
> hi all
> Anybody who have ever use gdbserver-xen debug the domU kernel?
>
> from the guide of the gdbserver-xen, the domU must start at first,
> then at the dom0 we can do just like this:
> gdbserver-xen 127.0.0.1:9999 $dom_id
>
> and then also at dom0:
>
> gdb vmlinux
>
> gdb> target romote 127.0.0.1:9999
>
> that's ok.
>
> my question is when I do as above , my domU will crash. another is
> since the domU must start at first, if I want to debug the start stage
> of the domU kernel , what should I do? who can give me some advice ,
> thank you very much.


Firstly, "gdbsx" is the preferred command for debugging a domain these
days ("gdbsx -a <domid> <32|64> <port>").

Secondly, you can start your domain paused ("xl create -p"), attach
gdbsx and gdb, set any breakpoints, etc, then start the domain off.

J

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

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