Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KQODd-0005vM-Dx for mharc-grub-devel@gnu.org; Tue, 05 Aug 2008 11:13:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQODb-0005td-S0 for grub-devel@gnu.org; Tue, 05 Aug 2008 11:12:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQODb-0005sf-5W for grub-devel@gnu.org; Tue, 05 Aug 2008 11:12:59 -0400 Received: from [199.232.76.173] (port=41645 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQODa-0005sV-UH for grub-devel@gnu.org; Tue, 05 Aug 2008 11:12:59 -0400 Received: from gateway05.websitewelcome.com ([67.18.144.2]:47132) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KQODY-0006F2-8p for grub-devel@gnu.org; Tue, 05 Aug 2008 11:12:56 -0400 Received: (qmail 17917 invoked from network); 5 Aug 2008 15:23:36 -0000 Received: from gator297.hostgator.com (74.53.228.114) by gateway05.websitewelcome.com with SMTP; 5 Aug 2008 15:23:36 -0000 Received: from c-67-185-142-228.hsd1.wa.comcast.net ([67.185.142.228]:35814 helo=localhost) by gator297.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1KQODR-0003o4-5g; Tue, 05 Aug 2008 10:12:49 -0500 Date: Tue, 5 Aug 2008 08:11:34 -0700 From: Colin D Bennett To: The development of GRUB 2 Message-ID: <20080805081134.2cbe1366@gibibit.com> In-Reply-To: <1217948757.20298.20.camel@fz.local> References: <20080805074229.3e5862c5@gibibit.com> <1217948757.20298.20.camel@fz.local> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator297.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gibibit.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Cc: fzielcke@z-51.de Subject: Re: [PATCH][RFC] gdb support in GRUB build system X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2008 15:13:00 -0000 On Tue, 05 Aug 2008 17:05:57 +0200 Felix Zielcke wrote: > Am Dienstag, den 05.08.2008, 07:42 -0700 schrieb Colin D Bennett: > > I following the GRUB 2 gdb debugging instructions this week and I > > was successful in using QEMU and gdb to debug GRUB. I wondered if > > we could make this a bit easier -- primarily by making GRUB's build > > system generate the '.elf' files with full symbol info without > > requiring a patch. Attached is a patch against GRUB 2 trunk (this > > is the one from the GRUB 2 debugging guide, just fixed to apply on > > the latest GRUB sources). > > > Well I already brought this wiki page up on here, but nobody really > cared about updating this. > I even did the same as you updateing that patch to current SVN ;) > > See here: > http://lists.gnu.org/archive/html/grub-devel/2008-07/msg00585.html > http://lists.gnu.org/archive/html/grub-devel/2008-08/msg00037.html > > > Let me know what you all think. Thanks! > > Thanks that at least you try to that GDB + Qemu stuff easier. > > Even with the patches from Lubomir from May I wasn't able to get the > symbols of the loaded modules. > I have used that load_modules function which is in the new gdb-macro > patch but it didn't work. > And the gdb-stub didn't apply and I was unsure if it was safe to just > adjust the values in the header file which was changed. > > I think I'm not that good in this stuff to get it working, so it's > very nice that you want to do it now :) Interesting. Well, I think I used the 'load_all_modules' function instead of just 'load_modules'. And IIRC, I first used the GRUB legacy floppy image that was provided to chainload GRUB 2 over QEMU's built-in tftp, but I think that directly booting GRUB 2 in QEMU for debugging did not work... I'll have to try it again to verify that. Cheers, Colin