GCC, GDB v6 and -fomit-frame-pointer

Jakub Jelinek jakub@redhat.com
Thu Oct 9 18:00:00 GMT 2003


On Thu, Oct 09, 2003 at 08:42:08AM -0400, Daniel Jacobowitz wrote:
> > Even without CFI info? With the exception of IA-64/AMD64, GCC doesn't
> > generate unwind info by default, only when -fasynchronous-unwind-tables.
> 
> Sorry, unstated assumption.  This only works if you build with
> debugging information.  GDB parses both .eh_frame and .debug_frame, and
> all the necessary CFI should be in .debug_frame with -gdwarf-2.
> 
> If debugging info bothers you, use objcopy --add-gnu-debuglink :)

Ok, true. Now just stuff like backtrace (3) or libSegFault.so will be
very upset about -fo-f-p (and there .debug_frame doesn't help, only
.eh_frame could).

	Jakub



More information about the Gcc mailing list