Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB and -gdwarf-5
@ 2017-09-07 19:16 Eli Zaretskii
  2017-09-07 19:24 ` Jan Kratochvil
  2017-09-07 19:28 ` Joel Brobecker
  0 siblings, 2 replies; 5+ messages in thread
From: Eli Zaretskii @ 2017-09-07 19:16 UTC (permalink / raw)
  To: gdb

I have GCC 6.3.0 installed, and it seems to support DWARF2 version 5
via the -gdwarf-5 switch.  But I wanted to make sure I really get that
version of debug info, so I tried "info source" in GDB.  But that
command doesn't tell the version of DWARF2.  Is there a GDB command
which does?

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?

Thanks.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-07 20:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-07 19:16 GDB and -gdwarf-5 Eli Zaretskii
2017-09-07 19:24 ` Jan Kratochvil
2017-09-07 20:16   ` Eli Zaretskii
2017-09-07 19:28 ` Joel Brobecker
2017-09-07 20:18   ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox