GCC 11 Compiler Might Finally Enable DWARF 5 Debugging By Default

Written by Michael Larabel in GNU on 24 August 2020 at 10:41 AM EDT. 2 Comments
GNU
For a number of years the GNU Compiler Collection has shipped experimental support for the DWARF 5 debugging data format while finally for next year's GCC 11 release it might be deemed stable and used by default.

The DWARF 5 debug data format was published back in 2017 to succeed the now decade old DWARF Version 4. With DWARF 5 there is support for better data compression, various performance improvements, better debug handling around optimized code, and other enhancements over DWARF4. DWARF 5 itself was in development for a half-decade and is detailed at DWARFstd.org.

GCC has supported the -gdwarf-5 switch for producing DWARF5 compatible debug information but the default has remained DWARF4 with the newer version 5 being "only experimental."

But with patches proposed by developer Mark Wielaard and up for discussion during a "birds of a feather" session at the Linux Plumbers Conference, GCC would finally deem their DWARF 5 support stable and use it by default. Mark's PDF slide deck for the LPC 2020 BoF can be seen for those interested in more about the DWARF 5 support ecosystem.

We'll see what happens in the days/weeks ahead but at least there are good changes that with GCC 11 in 2021 that DWARF 5 will finally be used by default.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week