WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] possible changes was Re: [PATCH] make domu_debug run-tim

To: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] possible changes was Re: [PATCH] make domu_debug run-time option + fix int3 handling for MP
From: Kip Macy <kmacy@xxxxxxxxxx>
Date: Mon, 16 May 2005 13:42:11 -0700 (PDT)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 16 May 2005 20:41:44 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D1E4064@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> 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