Re: GDB and -gdwarf-5

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
> Date: Thu, 7 Sep 2017 21:24:47 +0200
> From: Jan Kratochvil <[email protected]>
> Cc: [email protected]
> 
> > I also tried "objdump --dwarf=info" (Binutils 2.29), but that says the
> > DWARF2 version is 4.  So now I'm confused.
> 
> Here gcc-6.3.1-1.fc25.x86_64 really accepts -gdwarf-5 but still it does produce
> only DWARF 4.  I do not know why.

OK, so I guess it's a bug or a missing feature in GCC 6.3.  Thanks.

> gcc-7.1.1-3.fc26.x86_64 does produce DWARF 5.
> 
> You should really see from objdump/readelf:
>   Compilation Unit @ offset 0x0:
>    Length:        0x13c (32-bit)
>    Version:       5

Yes, I see version 4 instead.  I guess I have to wait for GCC 7, then.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.