From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LE9zz-00089y-R8 for qemu-devel@nongnu.org; Sat, 20 Dec 2008 17:08:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LE9zx-000892-L5 for qemu-devel@nongnu.org; Sat, 20 Dec 2008 17:08:38 -0500 Received: from [199.232.76.173] (port=34208 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LE9zx-00088u-IA for qemu-devel@nongnu.org; Sat, 20 Dec 2008 17:08:37 -0500 Received: from mx20.gnu.org ([199.232.41.8]:51855) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LE9zx-0000yZ-8i for qemu-devel@nongnu.org; Sat, 20 Dec 2008 17:08:37 -0500 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LE9zw-0004Lt-Ez for qemu-devel@nongnu.org; Sat, 20 Dec 2008 17:08:36 -0500 From: Paul Brook Subject: Re: [Qemu-devel] Re: gdbstub: packet reply is too long Date: Sat, 20 Dec 2008 22:08:33 +0000 References: <1229776952.22890.2.camel@ws-aschultz> <200812202134.01169.paul@codesourcery.com> <494D69BF.6010008@web.de> In-Reply-To: <494D69BF.6010008@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812202208.34044.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Andreas Schultz , qemu-devel@nongnu.org, kvm@vger.kernel.org > Well, I'm using gdb over qemu and kvm in precisely that hybrid > scenarios, but also in normal ones. Heavily. And I'm only able to do > this because of the workaround. But I'm willing to learn about scenarios > where it causes /regressions/. I find that hard to believe. Doesn't it break horribly as soon as the CPU switches modes? It's not just regressions that are important. It's the fact that once qemu has your automatic switching hack it's impossible to make it work properly. > >> There are internal issues in gdb (hard coupling of current and target > >> arch) that will not allow this to be fixed in the near future > > > > Really? I'm pretty sure other architectures already manage it. > > What other archs are comparably weird like x86? ARM has multiple instruction sets/cpu modes (and can mix the two within the same process). PPC and MIPS also have something similar, though I'm not sure how well they're supported by gdb. I suspect you may be approaching this the wrong way. Instead of trying to switch architectures, you probably need to teach the 64-bit debugger how to debug 32-bit code. Paul