From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GibdU-0007Oj-Tn for qemu-devel@nongnu.org; Fri, 10 Nov 2006 14:01:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GibdT-0007Nf-Cm for qemu-devel@nongnu.org; Fri, 10 Nov 2006 14:01:56 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GibdS-0007Na-O1 for qemu-devel@nongnu.org; Fri, 10 Nov 2006 14:01:54 -0500 Received: from [212.227.126.183] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GibdS-0005bv-2X for qemu-devel@nongnu.org; Fri, 10 Nov 2006 14:01:54 -0500 Date: Fri, 10 Nov 2006 20:01:54 +0100 From: Marcel Kilgus Message-ID: <1071844536.20061110200154@kilgus.net> In-Reply-To: <20061110171032.GA29431@nevyn.them.org> References: <1583108256.20061108033019@kilgus.net> <1315607799.20061110153151@kilgus.net> <200611101556.02645.paul@codesourcery.com> <20061110171032.GA29431@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: Debugging with paging enabled Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Daniel Jacobowitz wrote: > I'd recommend the even simpler hack of having qemu report a PC that > included the segment base :-) Probably sounds easier than it is, as seen the serial protocol doesn't include the PC when a breakpoint fires. qemu would have to intentionally report a wrong EIP the next time GDB requests the complete register set and the consequences of that I don't even want to imagine (what if it writes that set of registers back?). Or do you mean that qemu should always and in all situations report an adjusted EIP to GDB and re-adjust all EIPs it gets? Interesting idea, but I guess that too would lead to dozens of other problems. All the best, Marcel