From: Eli Zaretskii <eliz@gnu.org>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb@sourceware.org
Subject: Re: GDB and -gdwarf-5
Date: Thu, 07 Sep 2017 20:16:00 -0000 [thread overview]
Message-ID: <83efriz2lg.fsf@gnu.org> (raw)
In-Reply-To: <20170907192447.GA25323@host1.jankratochvil.net> (message from Jan Kratochvil on Thu, 7 Sep 2017 21:24:47 +0200)
> 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.
next prev parent reply other threads:[~2017-09-07 20:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-07 19:16 Eli Zaretskii
2017-09-07 19:24 ` Jan Kratochvil
2017-09-07 20:16 ` Eli Zaretskii [this message]
2017-09-07 19:28 ` Joel Brobecker
2017-09-07 20:18 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83efriz2lg.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb@sourceware.org \
--cc=jan.kratochvil@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox