This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [HEADS UP] Merging i386newframe into mailine
- From: Mark Kettenis <kettenis at chello dot nl>
- To: dann at ics dot uci dot edu
- Cc: gdb at sources dot redhat dot com
- Date: Sat, 24 May 2003 13:15:34 +0200 (CEST)
- Subject: Re: [HEADS UP] Merging i386newframe into mailine
- References: <200305231652.h4NGqs4Y023667@elgar.kettenis.dyndns.org> <200305231745.h4NHj2JL029521@gremlin.ics.uci.edu>
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