From: Simon Kagstrom Subject: Debugging user-space applications with gdbserver-xen? Date: Wed, 07 Jun 2006 17:16:56 +0200 Message-ID: <87k67t9es7.wl%simon.kagstrom@bth.se> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel list List-Id: xen-devel@lists.xenproject.org Greetings! I'm trying to debug the process startup in my guest-OS and was somewhat confused about how gdbserver-xen acts during the transition from ring 1-3. If I set a breakpoint in the ring 3 code, my guest os will just get a debug trap, whereas breakpoints in ring 1 takes me to GDB. Is this the indended behavior? (I can see that it makes sense in a way). Another thing: how difficult would it be to implement the debugging support with the debug registers instead of int3? (pointers?) The debug registers should also enable some other possibilities such as efficient watch points. // Simon