From: Tom Tromey <tromey@redhat.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Support constant DW_AT_data_member_location by GCC PR debug/40659
Date: Fri, 14 Aug 2009 22:34:00 -0000 [thread overview]
Message-ID: <m363cqi037.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20090811195300.GA12898@host0.dyn.jankratochvil.net> (Jan Kratochvil's message of "Tue\, 11 Aug 2009 21\:53\:00 +0200")
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> 2009-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
Jan> Support constant DW_AT_data_member_location by GCC PR debug/40659.
Jan> * dwarf2read.c (dwarf2_get_attr_constant_value): Prototype now uses
Jan> CORE_ADDR.
Jan> (dwarf2_add_field, dwarf2_add_member_fn, read_common_block): Use
Jan> dwarf2_get_attr_constant_value.
Jan> (read_subrange_type, read_subrange_type): Add new parameter to the
Jan> dwarf2_get_attr_constant_value call.
Jan> (dwarf2_get_ref_die_offset): Fix the return value comment. Change the
Jan> function data type INT to CORE_ADDR. Support also attr_form_is_block.
I think this looks pretty good but I do have one comment.
Jan> - if (attr_form_is_section_offset (attr))
Jan> - {
Jan> - dwarf2_complex_location_expr_complaint ();
Jan> - byte_offset = 0;
IIUC the patch still will issue a complaint for this construct, but now
it just issues a more generic one from dwarf2_get_attr_constant_value.
What about putting the more specific checks into that function instead?
Would it cause some problem?
If not, please do it. If so, don't bother, I think this is ok.
Tom
next prev parent reply other threads:[~2009-08-14 20:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-11 20:03 Jan Kratochvil
2009-08-14 22:34 ` Tom Tromey [this message]
2009-08-26 16:46 ` Jan Kratochvil
2009-08-27 20:30 ` Tom Tromey
2009-08-28 11:08 ` 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=m363cqi037.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