Re: GDB and -gdwarf-5
Eli Zaretskii <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
> Date: Thu, 7 Sep 2017 12:28:00 -0700 > From: Joel Brobecker <[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. > > > > 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.