DWARF 4

2011-12-09 Thread Jerry James
Are there known obstacles in the way of replacing -g with -gdwarf-4
-fvar-tracking-assignments in our %{optflags}?  I'm eager to be rid
of gdb telling me that the one value I really have to know to diagnose
a crash has been optimized away.  Are there bits of the toolchain that
can't handle DWARF 4?  Will debuginfo grow significantly in size?

Just curious, because I've taken to use -gdwarf-4
-fvar-tracking-assignments in the projects I work on for my employer.
I haven't had a problem yet, and just wondered if there's a brick wall
up ahead somewhere...

Thanks,
-- 
Jerry James
http://www.jamezone.org/
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: DWARF 4

2011-12-09 Thread Jakub Jelinek
On Fri, Dec 09, 2011 at 01:16:42PM -0700, Jerry James wrote:
 Are there known obstacles in the way of replacing -g with -gdwarf-4
 -fvar-tracking-assignments in our %{optflags}?  I'm eager to be rid
 of gdb telling me that the one value I really have to know to diagnose
 a crash has been optimized away.  Are there bits of the toolchain that
 can't handle DWARF 4?  Will debuginfo grow significantly in size?

For -OX -g (for X != 0) -fvar-tracking-assignments is the default
and in F16+ GCC also -gdwarf-4 is the default (with -fno-debug-types-section
, as .debug_types is still not supported by many tools and has lots of
unsolved problems even on its own, but otherwise you get all the DWARF4
goodies and in F16 also a bunch of new extensions).
F16 gdb doesn't support DW_OP_entry_value and typed DWARF stack extensions
I think, you need to wait for F17 for that.

Jakub
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: DWARF 4

2011-12-09 Thread Jan Kratochvil
On Fri, 09 Dec 2011 21:22:20 +0100, Jakub Jelinek wrote:
 F16 gdb doesn't support DW_OP_entry_value and typed DWARF stack extensions
 I think, you need to wait for F17 for that.

These features are not yet in Rawhide, they are in FSF GDB HEAD, it should be
in Rawhide in a week or so.

I do not plan to rebase F16 as it is a stable release, unless there is
a consensus on fedora-devel reduction of optimized out results is worth the
rebase compatibilities/regressions risk.


Regards,
Jan
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel