From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GiZ1J-0003qf-LZ for qemu-devel@nongnu.org; Fri, 10 Nov 2006 11:14:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GiZ1I-0003ps-0n for qemu-devel@nongnu.org; Fri, 10 Nov 2006 11:14:21 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GiZ1H-0003pp-VD for qemu-devel@nongnu.org; Fri, 10 Nov 2006 11:14:19 -0500 Received: from [212.227.126.183] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GiZ1G-0006V7-Sz for qemu-devel@nongnu.org; Fri, 10 Nov 2006 11:14:19 -0500 Date: Fri, 10 Nov 2006 17:14:19 +0100 From: Marcel Kilgus Message-ID: <1978675291.20061110171419@kilgus.net> In-Reply-To: <200611101556.02645.paul@codesourcery.com> References: <1583108256.20061108033019@kilgus.net> <1315607799.20061110153151@kilgus.net> <200611101556.02645.paul@codesourcery.com> 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 Paul Brook wrote: > As Dan said, gdb knows nothing about x86 segmentation. As soon as you have > nonzero segment bases you're pretty much on your own. I was just wondering, because I didn't invent that "move the code to 3GB base" but it is (was?) the model used by Linux, at least in very early versions (I'm not accustomed with the current code base). So I didn't expect to be the first person stumbling over this shortcoming. > If you care about fixing this I suggest you get GDB folks to agree (and > document) how segmented memory models should work, then implement that model > in qemu. Hacking qemu to work for your particular case with unmodified gdb > probably "breaks" something else, so doesn't seem to improve the overall > usefulness. Nah, I've already spent way more time on this than I can really afford, though it was quite fun for a change. And my hack works perfectly for my needs, so I'm fine. At least my findings are now documented in the list archives and anybody with a similar problem can now read it up. All the best, Marcel