From: Colin D Bennett <colin@gibibit.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Cc: fzielcke@z-51.de
Subject: Re: [PATCH][RFC] gdb support in GRUB build system
Date: Tue, 5 Aug 2008 08:11:34 -0700 [thread overview]
Message-ID: <20080805081134.2cbe1366@gibibit.com> (raw)
In-Reply-To: <1217948757.20298.20.camel@fz.local>
On Tue, 05 Aug 2008 17:05:57 +0200
Felix Zielcke <fzielcke@z-51.de> 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
next prev parent reply other threads:[~2008-08-05 15:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-05 14:42 [PATCH][RFC] gdb support in GRUB build system Colin D Bennett
2008-08-05 15:05 ` Felix Zielcke
2008-08-05 15:11 ` Colin D Bennett [this message]
2008-08-05 15:23 ` Felix Zielcke
2008-08-05 20:14 ` Robert Millan
2008-08-05 20:50 ` Colin D Bennett
2008-08-05 21:54 ` Robert Millan
2008-08-07 0:26 ` Isaac Dupree
2008-08-07 7:37 ` Felix Zielcke
2008-08-07 15:50 ` Colin D Bennett
2008-08-07 16:07 ` Robert Millan
2008-08-07 17:43 ` Colin D Bennett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080805081134.2cbe1366@gibibit.com \
--to=colin@gibibit.com \
--cc=fzielcke@z-51.de \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.