Re: [HEADS UP] Merging i386newframe into mailine

Mark Kettenis
2003-05-24T11:15:49Z

From: Dan Nicolaescu <dann@ics.uci.edu>
Date: Fri, 23 May 2003 10:45:00 -0700

Hi!

First of all thanks for all the great work you have been doing on x86
debugging!

Would you mind posting something on the mailing list statement about
what does this imply WRT debugging frameless code.
Would this allow GCC to enable -momit-leaf-frame-pointer by default?
How about -fomit-frame-pointer ?
Any of this would be great, and probably nobody would mind delaying a
release if this was going to happen...

Assuming that GCC generates the correct debug info, yes this would
allow GDB to debug -fomit-frame-pointer code. So this would only work
with -gdwarf-2, or when DWARF2 is the default debug info (which I
think is true for most ELF targets since GCC 3.2).

AFAICT GCC 3.2.2 generates the corredt DWARF CFI info, so backtraces
should work. However, I'm not sure whether GCC generates the correct
debug info for function arguments and local variables. Running the
testsuite with -fomit-frame-pointer produces many failures. However,
this appears to be caused by GDB not finding the correct first line of
a function.

We're not quite there yet :-(.

Mark