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

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



Thank you for your answer.
Â
I want to send myÂactive machines extra information at Migration time. So, I modify xc_domain_save and restore code.
Â
But, xc_restore process occur segfault when migration is starting.(about oneÂor two second.)ÂSo, I can't use gdb withÂxc_restore's PID.
Â
I think I can check it's PID with adding very long sleep code infront of xc_domain_restore's loop code. But I don't think this way is smart way.
Â
Sorry for my vague answer.


2013/7/9 Ian Campbell <ian.campbell@xxxxxxxxxx>
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®.