From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GiWD1-00016d-LB for qemu-devel@nongnu.org; Fri, 10 Nov 2006 08:14:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GiWD0-00016O-4u for qemu-devel@nongnu.org; Fri, 10 Nov 2006 08:14:15 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GiWD0-00016L-1q for qemu-devel@nongnu.org; Fri, 10 Nov 2006 08:14:14 -0500 Received: from [66.249.82.235] (helo=wx-out-0506.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GiWD0-0001SA-0H for qemu-devel@nongnu.org; Fri, 10 Nov 2006 08:14:14 -0500 Received: by wx-out-0506.google.com with SMTP id i30so628063wxd for ; Fri, 10 Nov 2006 05:14:13 -0800 (PST) Message-ID: Date: Fri, 10 Nov 2006 13:14:12 +0000 From: "andrzej zaborowski" Sender: balrogg@gmail.com Subject: Re: [Qemu-devel] Re: Debugging with paging enabled In-Reply-To: <816057700.20061109005729@kilgus.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1583108256.20061108033019@kilgus.net> <6310169804.20061108221303@kilgus.net> <455256F2.6090006@bellard.org> <822249722.20061109003305@kilgus.net> <20061108234226.GA13464@nevyn.them.org> <816057700.20061109005729@kilgus.net> Reply-To: balrogg@gmail.com, 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 On 08/11/06, Marcel Kilgus wrote: > > Correct. It doesn't know anything at all about i386 segmentation. > > Well, that explains it then, I guess. In that case I don't really see > a clean solution for it. If I understand the problem, the clean solution is having the debugging symbols at the right addresses: in code that runs with paging enabled symbols should be at their virtual addresses and the other symbols at physical addresses. Since the period from start to enabling paging is usually short, I think most kernels generate only virtual addresses for the symbols. I don't remember the ld option to move text-base to the right address but see Linux. GDB works perfectly for it. It doesn't need to know about segmentation if your symbols are correct. -- balrog 2oo6