This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB and -gdwarf-5
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb at sourceware dot org
- Date: Thu, 07 Sep 2017 23:16:27 +0300
- Subject: Re: GDB and -gdwarf-5
- Authentication-results: sourceware.org; auth=none
- References: <83inguz5cz.fsf@gnu.org> <20170907192447.GA25323@host1.jankratochvil.net>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Thu, 7 Sep 2017 21:24:47 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: gdb@sourceware.org
>
> > 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.