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

RE: [Xen-devel] possible changes was Re: [PATCH] make domu_debug run-time option + fix int3 handling for MP



> I was envisaging it as a flag that could be set/cleared at runtime for a
> domain, for example, when the gdbserver attached and detached.

That is fine. There is just the issue of the initial timing window. Also, if 
the 
gdbserver crashes it isn't really an issue if the flag isn't cleared because 
one 
can still run 'xm destroy'. In Linux (2.6.11.8 at least) one can create 
unkillable processes by killing GDB when it is attached to another process.

 
> I don't think it's a domain builder issue.

What do I do if I'm starting an OS specifically for debugging? Right now I can 
do an int3 so that it will be paused. GDB isn't doing the forking and gdbserver 
can't attach until the VM is running, so there is no equivalent to putting a 
breakpoint on main(). I guess pausing the guest immediately after creation 
could 
work.

                        
                        -Kip

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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