From: Andrew Cagney <ac131313@ges.redhat.com>
To: David Carlton <carlton@math.stanford.edu>
Cc: Daniel Jacobowitz <drow@mvista.com>, gdb-patches@sources.redhat.com
Subject: Re: [David Carlton <carlton@math.Stanford.EDU>] Re: [RFA] dwarf2read.c: set TYPE_DOMAIN_TYPE correctly for methods
Date: Wed, 28 Aug 2002 17:02:00 -0000 [thread overview]
Message-ID: <3D6D638D.8030403@ges.redhat.com> (raw)
In-Reply-To: <ro13csyha8r.fsf@jackfruit.Stanford.EDU>
> On Wed, 28 Aug 2002 18:42:47 -0400, Daniel Jacobowitz <drow@mvista.com> said:
>
>
>>> + /* NOTE: carlton/2002-08-22: Previously, the second argument to
>>> + smash_to_method_type was die->type rather than type, and the
>>> + type argument to dwarf2_add_member_fn didn't exst. This is
>>> + incorrect: the second argument to smash_to_method_type should
>>> + be the type of the class that this is a method of, whereas
>>> + die->type is the type of the method itself. So we need to
>>> + pass that type in from read_structure_scope explicitly. See
>>> + PR gdb/653. */
>
>
>> I'd rather a comment like:
>> /* TYPE is the domain of this method, and DIE->TYPE is the type
>> of the method itself (TYPE_CODE_METHOD). */
>
>
>> There's no point in cluttering up the code with history of this sort
>> unless you have low confidence in the change's effect on some odd
>> corner-case. That's just my personal judgement, though.
>
>
> I agree. I'd originally put in the excessively verbose comment
> because Andrew complained about my putting too much information in the
> ChangeLog instead of a comment, but I think that your version of the
> comment is better.
>
>
>> If you agree, mind committing it with that or a similar change?
>
>
> Great, will do (unless Andrew complains about the new version of the
> comment).
Doesn't worry me.
Andrew
next prev parent reply other threads:[~2002-08-28 23:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-28 15:42 David Carlton
2002-08-28 15:47 ` Daniel Jacobowitz
2002-08-28 16:43 ` David Carlton
2002-08-28 17:02 ` Andrew Cagney [this message]
2002-09-03 10:37 ` David Carlton
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=3D6D638D.8030403@ges.redhat.com \
--to=ac131313@ges.redhat.com \
--cc=carlton@math.stanford.edu \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.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