From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Jacobowitz Subject: Re: [Qemu-devel] Re: gdbstub: packet reply is too long Date: Tue, 30 Dec 2008 17:43:02 -0500 Message-ID: <20081230224302.GA30049@caradoc.them.org> References: <1229776952.22890.2.camel@ws-aschultz> <200812202208.34044.paul@codesourcery.com> <494D72E1.6020104@web.de> <200812202246.39036.paul@codesourcery.com> <494D8344.8010203@web.de> <20081226233012.GA9221@caradoc.them.org> <4958E5A7.4000303@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andreas Schultz , Paul Brook , kvm@vger.kernel.org To: qemu-devel@nongnu.org Return-path: Received: from NaN.false.org ([208.75.86.248]:44820 "EHLO nan.false.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751530AbYL3WnK (ORCPT ); Tue, 30 Dec 2008 17:43:10 -0500 Content-Disposition: inline In-Reply-To: <4958E5A7.4000303@web.de> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Dec 29, 2008 at 03:58:47PM +0100, Jan Kiszka wrote: > Well, in the current gdb design, current_gdbarch is consulted when > disassembling the code while target_gdbarch defines the register set > that is exchanged with the remote stub. This is a transitional state. Really, there isn't supposed to be a 'current' gdbarch; we're already moving away from it. Thinking about it some more you may be right about the overall solution though, sorry. The target_gdbarch idea is likely to stick around for a while. But some work will have to be done if current and target architectures have different register sets :-( > I'm pretty sure that the final solution will involve extended x86 > register sets in order to inform the frontend about the full target CPU > state so that it can set the right current_gdbarch automatically. Isn't everything we need for this in eflags already? -- Daniel Jacobowitz CodeSourcery