From: Brendan Cully <brendan@cs.ubc.ca>
To: Lily Huang <ushuanglily@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: help on debugging kernel module in Xen
Date: Fri, 12 Jan 2007 12:53:58 -0800 [thread overview]
Message-ID: <20070112205358.GC4982@ventoux.cs.ubc.ca> (raw)
In-Reply-To: <4d616cca0701121225p1018056ar24541c3a27c57518@mail.gmail.com>
On Friday, 12 January 2007 at 15:25, Lily Huang wrote:
> Thanks, Brendan.
>
> I followed the README instruction and did follows:
>
> 1. start a domU
> 2. in Dom0, run "gdbserver-xen 127.0.0.1:9999 --attach 5", where 5 is the
> domain id of the domU
> 3. I got the response:
> /*******************************/
> Attached; pid = 5
> Listening on port 9999
> /*******************************/
> And then, I lost connection with the domU, I tried both network and console,
> neither works for me.
when the debugger attaches, it pauses the guest.
> 4. I run "gdb /boot/vmlinux-syms-2.6.16.33-xenU" in dom0, hoping to
> reactivate domU with debug command.
>
> the response is as follows:
>
> /*******************************/
> GNU gdb Red Hat Linux (6.3.0.0-1.84rh)
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db
> library "/lib/libthread_db.so.1".
> /*******************************/
>
> when I typed "cont" command in the gdb, I got "The program is not being
> run."
>
> Am I doing something wrong? Any further help will be highly appreciated.
you need to attach to the domain from within gdb:
target remote localhost:9999
next prev parent reply other threads:[~2007-01-12 20:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-12 18:41 help on debugging kernel module in Xen Lily Huang
2007-01-12 19:20 ` Brendan Cully
2007-01-12 20:25 ` Lily Huang
2007-01-12 20:35 ` Lily Huang
2007-01-12 20:53 ` Brendan Cully [this message]
2007-01-12 21:07 ` Lily Huang
2007-01-12 21:10 ` Lily Huang
2007-01-12 21:26 ` Brendan Cully
2007-01-12 21:32 ` Lily Huang
2007-01-12 21:41 ` Brendan Cully
2007-01-12 23:04 ` Lily Huang
2007-01-12 23:20 ` Lily Huang
2007-01-12 23:21 ` Brendan Cully
2007-01-12 21:14 ` Brendan Cully
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=20070112205358.GC4982@ventoux.cs.ubc.ca \
--to=brendan@cs.ubc.ca \
--cc=ushuanglily@gmail.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.