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

[Xen-devel] RFT: gdbserver-xen update to 6.8 and SMP fixes

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] RFT: gdbserver-xen update to 6.8 and SMP fixes
From: "Kip Macy" <kip.macy@xxxxxxxxx>
Date: Mon, 6 Oct 2008 05:45:03 +0000
Delivery-date: Sun, 05 Oct 2008 22:45:30 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=SV9kuMKls8tUqfBvFDzjckgWBy1ZKxmTzZ1ZznTfpGY=; b=smcatFH0OxBPY5mWeu2apOHExp4+XJwSuts5vTGqZNstzEyFiKMEJrgSXdU9RZTcLk CoaSAPvCuArVIFs5oIoIdkpdRRznrl5/ld40pQucnqc9KTNIqeyC/L9762PpHdjydeFr k2E3wPMdgi/5eI6UH0lWBpWqPViuzLjgaKEts=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=MNKGd7SLBWiDmCPwp4Gdx1DFvpywo367xp3eC9ybdF8LfVraijCj4WxABS6IvUfoui 3GhZaGGdTGa4Nzy3nPShI5Ri7hFeJTU5EdlEFmV9EmFv/eIw6UVYS6tVNFjLNsCS26zA jppjvC3eHxk+nTu33bXN6rmXDKVInrEe8qfHQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Could anyone who is using the gdbserver-xen from tools/debugger/gdb
please try out the following patch:

http://www.fsmware.com/xen/gdbserver-xen-6.8-upgrade.diff

It should apply cleanly to xen-3.3-testing.hg.

You will need to re-build and re-install libxenctl before building
gdbserver-xen.

This patch makes the following changes:
- Make xc_ptrace and xc_waitdomain look and act sufficiently like
ptrace and waitpid that code calling ptrace and waitpid does not need
to be modified
- Fix handling for case when attaching to a guest where not all APs are online
- Detect which vcpu hit a breakpoint or was doing single-stepping so
that gdb will switch to the vcpu that caused the trap

Debugging SMP guests should actually work reliably now. Note that when
using the remote protocol the GDB client won't know about any new
threads until 'info threads' is requested.

The changes to support xen using gdbserver are much less intrusive
than previously. In principle, future updates should be quite easy.
The code has only been changed to account for the fact that pid and
lwpid are not the same for VMs whereas they are for user processes.
The pid is analogous to the domid and lwpid is analogous to the
vcpuid.

Thanks,
Kip

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

<Prev in Thread] Current Thread [Next in Thread>