This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB and -gdwarf-5


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]