On Tue, 05 Aug 2008 17:05:57 +0200 Felix Zielcke <[EMAIL PROTECTED]> 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 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel