From: Tom Tromey <tromey@redhat.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch 2/2] Fix decode_locdesc for gcc-4.7.x optimized DWARF
Date: Wed, 27 Jul 2011 16:58:00 -0000 [thread overview]
Message-ID: <m3bowfae2m.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20110727153041.GB9736@host1.jankratochvil.net> (Jan Kratochvil's message of "Wed, 27 Jul 2011 17:30:41 +0200")
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> There is decode_locdesc_read_mem workaround which is ugly, but it
Jan> was already there in a different form. The same may be needed for
Jan> DW_OP_GNU_push_tls_address but I haven't such a regression in the
Jan> testsuite, DW_OP_GNU_push_tls_address is more for
Jan> archer-jankratochvil-vla anyway.
I think this patch is definitely an improvement. decode_locdesc was
clearly a hack.
Jan> The right fix would be dynamic types with DWARF blocks for various type
Jan> fields.
Yeah. Ouch.
Jan> This change no longer supports bfd_get_sign_extend_vma / signed_addr_p for
Jan> DW_OP_addr. But neither does dwarf2expr.c so I guess it is not a concern.
I don't recall what happened here, but it doesn't matter -- if
dwarf2expr.c is wrong, now at least we can fix it in a single place.
Jan> + switch (ctx->location)
Jan> + {
Jan> + case DWARF_VALUE_REGISTER:
Jan> + case DWARF_VALUE_MEMORY:
Jan> + case DWARF_VALUE_STACK:
I don't understand why DWARF_VALUE_REGISTER is ok here, or why
DWARF_VALUE_LITERAL is not.
Tom
next prev parent reply other threads:[~2011-07-27 16:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-27 16:22 Jan Kratochvil
2011-07-27 16:58 ` Tom Tromey [this message]
2011-07-27 17:02 ` Jan Kratochvil
2011-07-27 17:09 ` Tom Tromey
2011-07-27 17:33 ` Jan Kratochvil
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=m3bowfae2m.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@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