From: Tom Tromey <tromey@redhat.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Fix PR 9675 - _static_ variables in C++ constructors
Date: Thu, 23 Apr 2009 22:40:00 -0000 [thread overview]
Message-ID: <m34owfq9iv.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20081221185428.GA27604@host0.dyn.jankratochvil.net> (Jan Kratochvil's message of "Sun\, 21 Dec 2008 19\:54\:28 +0100")
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> Fix visibility of _static_ variables in C++ constructors,
Jan> as I saw it now even in GDB BZ:
Jan> http://sourceware.org/bugzilla/show_bug.cgi?id=9675
Jan> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33044
Jan> https://bugzilla.redhat.com/show_bug.cgi?id=445912
Thanks for writing this.
It took me a while to understand this (I had to go read up on the
DWARF involved), but I think I get what is going on here.
I have a couple comments.
Jan> while (child_die && child_die->tag)
Jan> {
Jan> - process_die (child_die, cu);
Jan> + attr = dwarf2_attr (child_die, DW_AT_abstract_origin, cu);
Jan> + if (!attr)
Jan> + complaint (&symfile_complaints,
Jan> + _("Child DIE 0x%x of DIE 0x%x has missing "
Jan> + "DW_AT_abstract_origin"), child_die->offset,
Jan> + die->offset);
I suspect this complaint is incorrect. DWARF 3.3.8.3 exception #3
says that a DIE in the concrete tree does not necessarily need to
refer to a DIE in the origin tree. If I understand the patch
correctly, this complaint will be issued in exactly this case. Is
that accurate?
Jan> + if (offsetp[-1] == *offsetp)
Jan> + complaint (&symfile_complaints,
Jan> + _("Child DIEs of DIE 0x%x duplicitly abstract-origin "
Jan> + "referenced DIE 0x%x"), die->offset, *offsetp);
This text reads strangely. How about:
Multiple children of DIE 0x%s refer to DIE 0x%x as their abstract origin
Other than these things this patch looks ok to me.
Tom
next prev parent reply other threads:[~2009-04-23 22:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-21 18:56 Jan Kratochvil
2009-04-23 22:40 ` Tom Tromey [this message]
2009-04-27 8:39 ` Jan Kratochvil
2009-04-27 18:38 ` Tom Tromey
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=m34owfq9iv.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