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

Re: [Xen-users] I want to debug xen tools with gdb.



On Tue, 2013-07-09 at 09:32 +0100, Wei Liu wrote:
> On Tue, Jul 09, 2013 at 01:29:20PM +0900, ììì wrote:
> > Hello, I modify my xen tools code for my own function.(xc_restore code)
> > 
> > But, my code have bugs and it doesn't work. I want to use gdb to fix my
> > functions. But, xc_restore is called by Xen. So, I can't attatch to gdb.
> > 
> > Is there any way to use gdb?
> > 
> 
> Have you checked gdbsx?

gdbsx is for debugging guests. xc_restore is a userlevel toolstack bit
of code. It's not clear to me why gdb can't be used on it -- nor what
"xc_restore is called by Xen" means -- it is called from the toolstack.

 ììì, have you tried simply running gdb on your toolstack? Perhaps if
you tell us explicitly what commands you are running we will be better
able to advise.

Ian.

> 
> BTW, this is a pretty vague question. You might have better luck asking
> a more specific question on Xen-devel.
> 
> 
> Wei.
> 
> > Thank you for reading.
> 
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxx
> > http://lists.xen.org/xen-users
> 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxx
> http://lists.xen.org/xen-users



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

 


Rackspace

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