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: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb at sourceware dot org
- Date: Thu, 07 Sep 2017 23:18:02 +0300
- Subject: Re: GDB and -gdwarf-5
- Authentication-results: sourceware.org; auth=none
- References: <83inguz5cz.fsf@gnu.org> <20170907192800.tkbi3hm34bvbp6go@adacore.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Thu, 7 Sep 2017 12:28:00 -0700
> From: Joel Brobecker <brobecker@adacore.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.
> >
> > Can someone please tell me how to verify the version of DWARF2 I get
> > with that GCC switch?
>
> I would compile a unit, and then dump the DWARF info using objdump
> or readelf.
That's what I did, and objdump said it was version 4. As Jan
explained, it seems to be a deficiency in GCC 6.3.
Thanks.