[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.