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] GDB and 32-bit guests on 64-bit Xen

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] GDB and 32-bit guests on 64-bit Xen
From: "Phil Winterfield (winterfi)" <winterfi@xxxxxxxxx>
Date: Thu, 17 Jul 2008 16:58:43 -0700
Authentication-results: sj-dkim-2; header.From=winterfi@xxxxxxxxx; dkim=pass ( sig from cisco.com/sjdkim2002 verified; );
Delivery-date: Thu, 17 Jul 2008 16:58:45 -0700
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; l=5128; t=1216339089; x=1217203089; c=relaxed/simple; s=sjdkim2002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=winterfi@xxxxxxxxx; z=From:=20=22Phil=20Winterfield=20(winterfi)=22=20<winterfi@ cisco.com> |Subject:=20GDB=20and=2032-bit=20guests=20on=2064-bit=20Xen |Sender:=20; bh=Y3GDwMOfpai79IibCgY7/3EBd2QA5vJPfJe5nc4tJS4=; b=I+hSGrrLVnFioh6Y4KeJ4m17d43dJT868JQ4PagmbJAQIkWl6mbdxevK+r J2CgjLAGPzOxiIgzau3EgFmvzmHuqKzWRo2Io5C1kc8poJhskLalAHsqRgD1 LjdllRPSsn;
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
Thread-index: AcjoaQsKZT0x+SehT8Og7MGU7EGT1w==
Thread-topic: GDB and 32-bit guests on 64-bit Xen

Has anyone been successful in connecting gdb to a 32-bit guest while it is running on a 64 bit hypervisor?  I have a 32-bit guest that must run on a 64-bit hypervisor in order to use the Vt-d and Vmdq features of the Intel NIC’s.  The difficulty that I am seeing is that when gdb connects remotely to the image through the gdb server, it is getting a register mismatch, apparently because it is looking for 64 bit registers in the 32 bit image, this despite the fact that I tell gdb that the image is an ‘i386’ architecture:

 

(gdb) set architecture i386

The target architecture is assumed to be i386

(gdb) target remote 127.0.0.1:9999

Remote debugging using 127.0.0.1:9999

Couldn't establish connection to remote target

Remote register badly formatted: T0506:19e0000002020000;07:0000010000000000;10:0000010000000000;thread:0;

here: 2020000;07:0000010000000000;10:0000010000000000;thread:0;

 

Is this a bug in gdbserver?  Sure looks like it.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] GDB and 32-bit guests on 64-bit Xen, Phil Winterfield (winterfi) <=