From: Jeremy Fitzhardinge <jeremy@goop.org>
To: topperxin <topperxin@126.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: about gdbserver-xen
Date: Mon, 06 Dec 2010 10:24:04 -0800 [thread overview]
Message-ID: <4CFD2A44.5050907@goop.org> (raw)
In-Reply-To: <d8a15e.694c.12cba5f49ab.Coremail.topperxin@126.com>
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
next prev parent reply other threads:[~2010-12-06 18:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-06 6:29 about gdbserver-xen topperxin
2010-12-06 18:24 ` Jeremy Fitzhardinge [this message]
2010-12-07 3:02 ` topperxin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CFD2A44.5050907@goop.org \
--to=jeremy@goop.org \
--cc=topperxin@126.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.