[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] ãProblemã about using gdbsx to debug guest linux VM



Thanks all the same.

I found the resolution that run gdb at the host not the VM and target remote to 127.0.0.1.
But I have no idea why the VM kernel's debuginfo should be copied to the host, otherwise, the function symbols were displayed Âas `??` when using bt command in gdb.


On Wed, May 1, 2013 at 3:06 AM, Mukesh Rathor <mukesh.rathor@xxxxxxxxxx> wrote:
On Tue, 30 Apr 2013 14:00:53 +0800
éç <aware.why@xxxxxxxxx> wrote:

> I run a centos6.2 guest VM in xen4.1.2, Âthe id of centos-domU is 22.
>
> The info of dom0 is:
> 2.6.32-131.21.1.el6.xendom0.x86_64 #1 SMP Tue Dec 13 18:09:29 EST 2011
> x86_64 x86_64 x86_64 GNU/Linux
>
> Centos-domU:
> 2.6.32-220.7.1.el6.x86_64 #1 SMP Wed Mar 7 00:52:02 GMT 2012 x86_64
> x86_64 x86_64 GNU/Linux
>
>
> At dom0, I went like this:
> [malei@xentest-4-1 Tue Apr 30 ~]$ sudo gdbsx -a 22 64 9999
> Listening on port 9999
> Remote debugging from host 172.16.1.122
>
> (After that, I found the vm became paused, but next, I should run gdb
> on centos-domU,
> so I set the vm to be unpaused by xl unpause 22)

Don't unpause the guest. Follow instructions in README in
tools/debugger/gdbsx.

thanks
Mukesh

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.