grub-devel
[Top][All Lists]
Advanced

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

Re: Debugging GRUB2 with GDB and QEMU


From: Yoshinori K. Okuji
Subject: Re: Debugging GRUB2 with GDB and QEMU
Date: Fri, 19 May 2006 13:25:14 +0200
User-agent: KMail/1.8.2

On Thursday 18 May 2006 14:27, Lubomir Kundrak wrote:
> On Sat, May 13, 2006 at 06:38:26AM +0200, Yoshinori K. Okuji wrote:
> > Message-Id: <address@hidden>
> >
> > Great!
> >
> > I guess it is necessary to compile the binary with -O0 or -O1 to get a
> > reasonable backtrace... I'd appreciate if you can write a HOWTO. :)
>
> On i386 GCC generates full stack frames even with -O optizations.
> It only omits frame pointer on architectures on which it doesn't
> interfere with debugging.

The problem is not the frame pointers. With -Os, gcc inlines functions used 
only once. For example, grub_dl_add is eliminated in gcc 4.x.

Okuji




reply via email to

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