From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLXaf-0006Nk-Nt for qemu-devel@nongnu.org; Tue, 30 Jun 2009 03:17:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLXaa-0006K8-2D for qemu-devel@nongnu.org; Tue, 30 Jun 2009 03:17:16 -0400 Received: from [199.232.76.173] (port=49209 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLXaZ-0006K5-Th for qemu-devel@nongnu.org; Tue, 30 Jun 2009 03:17:11 -0400 Received: from mx20.gnu.org ([199.232.41.8]:5291) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MLXaZ-0004OV-9W for qemu-devel@nongnu.org; Tue, 30 Jun 2009 03:17:11 -0400 Received: from mx2.redhat.com ([66.187.237.31]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLXaY-0004dE-HA for qemu-devel@nongnu.org; Tue, 30 Jun 2009 03:17:10 -0400 Message-ID: <4A49BB74.4080504@redhat.com> Date: Tue, 30 Jun 2009 09:15:00 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH 4/4] gdbstub: x86: Switch 64/32 bit registers dynamically References: <20090627075350.13376.17936.stgit@mchn012c.ww002.siemens.net> <200906291507.05278.paul@codesourcery.com> <4A48CE13.6050800@siemens.com> <200906291543.34071.paul@codesourcery.com> In-Reply-To: <200906291543.34071.paul@codesourcery.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Jan Kiszka , Anthony Liguori , qemu-devel@nongnu.org On 06/29/09 16:43, Paul Brook wrote: >>> You've just deliberately broken the qemu gdbstub. After your patch it is >>> impossible to debug mixed 32/64-bit code. >> Please give it a try as it's the other way around: You can't properly >> debug mixed target code without my patch. > > Sure you can, you just need a gdb that doesn't suck. As soon as you encounter > actual mixed code (rather than just running the wrong qemu) your patch causes > things to die horribly. i.e. the latest gdb release (6.8) works better *with* the workaround, and the latest gdb bits from cvs work better *without* the workaround. Is that correct? How about making it runtime-switchable then, so qemu can deal with both cases? cheers, Gerd