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/
Home Products Support Community News


[Xen-devel] [PATCH] Fix gdbserver-xen support on older kernels.

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Fix gdbserver-xen support on older kernels.
From: "Justin T. Gibbs" <gibbs@xxxxxxxxxxx>
Date: Wed, 24 Mar 2010 15:22:39 -0600
Delivery-date: Wed, 24 Mar 2010 14:24:18 -0700
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>
Organization: SCSIGuy.com
Reply-to: gibbs@xxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20100317 Thunderbird/3.0.4
The xc_ptrace API relies on errno for passing success/failure indication
back to callers.  However, mapping operations that fall back on legacy
APIs may leave errno set to a non-zero result even thought the operation
is successful.  This patch resets errno after successful map operations
so that xc_ptrace doesn't inadvertently return a failure.

Signed-off-by: Justin Gibbs <gibbs@xxxxxxxxxxx>

Attachment: xc_ptrace.patch
Description: Text document

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix gdbserver-xen support on older kernels., Justin T. Gibbs <=