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: Kip Macy <kmacy@xxxxxxxxxx>
Subject: Re: [Xen-devel] possible changes was Re: [PATCH] make domu_debug run-time option + fix int3 handling for MP
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 16 May 2005 21:43:06 +0100
Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 16 May 2005 20:45:27 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.44.0505161335100.16537-100000@xxxxxxxxxxxxxxxxxxxxxx>
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>
References: <Pine.LNX.4.44.0505161335100.16537-100000@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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.

Doesn't the gdb server have to attach to the new vm to be able to set the breakpoint, leading to a race anyway? Or have you some way to pre-insert an int3?

 -- Keir


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