From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7qsP-0003hW-SZ for qemu-devel@nongnu.org; Tue, 10 Nov 2009 08:35:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7qsL-0003e7-59 for qemu-devel@nongnu.org; Tue, 10 Nov 2009 08:35:17 -0500 Received: from [199.232.76.173] (port=37343 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7qsK-0003du-Ux for qemu-devel@nongnu.org; Tue, 10 Nov 2009 08:35:12 -0500 Received: from mx20.gnu.org ([199.232.41.8]:33486) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N7qsK-0003lK-Kg for qemu-devel@nongnu.org; Tue, 10 Nov 2009 08:35:12 -0500 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7qsJ-00076Y-F3 for qemu-devel@nongnu.org; Tue, 10 Nov 2009 08:35:11 -0500 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH] gdbstub: x86: Switch 64/32 bit registers dynamically Date: Tue, 10 Nov 2009 13:35:08 +0000 References: <4AB26055.2060506@siemens.com> In-Reply-To: <4AB26055.2060506@siemens.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200911101335.08580.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jan Kiszka , Marcelo Tosatti , Abhishek Saksena , Avi Kivity > No question, this is a gdb issue. But, as it was confirmed in several > discusssions with gdb people, it is a non-trivial thing to fix. So until > qemu finds a gdb version attach with a rework x86 support, we have to > work around it by switching the register layout as the guest switches > its execution mode between 16/32 and 64 bit. Again, absolutely not. Changing the register set reported to a connected gdb is *never* correct. An option (possibly monitor command) to change the register set reported to gdb *before* a connection is establisted, that may be acceptable. Paul