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] gdb regression in xen-3.0-testing.hg

To: xen-devel list <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir.Fraser@xxxxxxxxxxxx
Subject: Re: [Xen-devel] gdb regression in xen-3.0-testing.hg
From: Simon Kagstrom <simon.kagstrom@xxxxxx>
Date: Thu, 22 Jun 2006 14:50:35 +0200
Delivery-date: Thu, 22 Jun 2006 05:50:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <87irmth5jg.wl%simon.kagstrom@xxxxxx>
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: <87irmth5jg.wl%simon.kagstrom@xxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Wanderlust/2.15.3 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/21.4 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI)
At Thu, 22 Jun 2006 12:02:27 +0200,
Simon Kagstrom wrote:
> 
> Hello!
> 
> I recently updated to the latest xen-3.0-testing repository, and since
> then I've had problems with GDB debugging. Only single stepping
> ('step') works, not stepping over function calls ('next') and setting
> breakpoints doesn't work either.
> 
> I've looked in the changelog for changes in tools/libxc and
> tools/debugger/, but I haven't found any changes which would impact
> this (as far as I can see). I've tried to debug libxc a bit, and I can
> see the write of an 'int3' instruction, but it doesn't look like it
> actually happens.

I found the bug. I've used my patch to xc_ptrace.c to reenable
debugging of paravirtualized guests in Changeset 93379554837c
(http://xenbits.xensource.com/xen-unstable.hg?cs=93379554837c), but
forgot the patch to xen/arch/x86/domain.c (to export cr0 to the
guest).

This caused cr0 to be zero when the guest context was read by
xc_ptrace, and paging_enabled() therefore doesn't work.


Any chance of changesets 93379554837c, f226a5765c85, dcb66319ed1e
being applied to xen-3.0-testing? Without these, paravirtualized
debugging is still not possible in xen-3.0-testing.

// Simon

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