From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2hS7-0004Tz-Jl for qemu-devel@nongnu.org; Fri, 04 Nov 2016 12:34:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2hS6-00031m-R9 for qemu-devel@nongnu.org; Fri, 04 Nov 2016 12:34:51 -0400 Received: from mail-vk0-x231.google.com ([2607:f8b0:400c:c05::231]:35480) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2hS6-0002zw-Do for qemu-devel@nongnu.org; Fri, 04 Nov 2016 12:34:50 -0400 Received: by mail-vk0-x231.google.com with SMTP id w194so71508102vkw.2 for ; Fri, 04 Nov 2016 09:34:50 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <001a113dca8274572005406e03c3@google.com> From: Peter Maydell Date: Fri, 4 Nov 2016 16:34:28 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH] x86: Fix x86_64 'g' packet response to gdb from 32-bit mode. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Doug Evans , QEMU Developers , Paolo Bonzini On 4 November 2016 at 16:29, Richard Henderson wrote: > On 11/03/2016 05:35 PM, Doug Evans wrote: >> >> The remote protocol can't handle flipping back and forth >> between 32-bit and 64-bit regs. To compensate, pretend "as if" >> on 64-bit cpu when in 32-bit mode. >> >> Signed-off-by: Doug Evans >> --- >> target-i386/gdbstub.c | 52 >> ++++++++++++++++++++++++++++++++++++++------------- >> 1 file changed, 39 insertions(+), 13 deletions(-) > > > Reviewed-by: Richard Henderson Has anybody ever looked at fixing this on the gdb end? (There are some similar cases for ARM CPUs, and actually being able to debug across 32/64 boundaries, big/little endian boundaries etc would be quite handy in some situations.) thanks -- PMM