[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH][RFC] gdb support in GRUB build system

From: Colin D Bennett
Subject: Re: [PATCH][RFC] gdb support in GRUB build system
Date: Tue, 5 Aug 2008 08:11:34 -0700

On Tue, 05 Aug 2008 17:05:57 +0200
Felix Zielcke <address@hidden> 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:
> > 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]