Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] physname regression: Non-matching type false breakpoint
Date: Tue, 07 Jun 2011 16:58:00 -0000	[thread overview]
Message-ID: <201106071758.28138.pedro@codesourcery.com> (raw)
In-Reply-To: <20110606211943.GA9362@host1.jankratochvil.net>

On Monday 06 June 2011 22:19:43, Jan Kratochvil wrote:
> On Mon, 06 Jun 2011 11:21:30 +0200, Pedro Alves wrote:
> > I have trouble parsing this sentence.
> 
> I agree the original sentence by me was bogus.
> 
> 
> > +  /* If we found a single field with that name, and we were not given
> > +     a specific overload instance in COPY, accept the field, if it's
> > +     really a method.  */
> > +  if (i1 == 1 && strchr (copy, '(') == NULL)
> 
> The point was IMO not when to accept the field but rather when to reject it
> - that an additional comparison is needed.  Adjusted the text.

That justifies the patch/change, but looking at the resulting code, it
looked to me a bit better to justify when can the i1 == 1 special case
be applied (the code directly under the comment).
Anyway, glass half full vs glass half empty.  :-)  Your version is fine
with me.

> -  if (i1 == 1)
> +  /* If we were given a specific overload instance in COPY defer the field
> +     acceptance till the strcmp_iw verification below even if we found just
> +     a single field with that name.  */

I suggest a comma after "COPY", and another after "below".

-- 
Pedro Alves


  reply	other threads:[~2011-06-07 16:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-05 15:34 Jan Kratochvil
2011-06-05 15:57 ` Mark Kettenis
2011-06-05 16:19   ` comments formatting [Re: [patch] physname regression: Non-matching type false breakpoint] Jan Kratochvil
2011-06-05 16:23     ` Andreas Schwab
2011-06-05 16:35       ` Jan Kratochvil
2011-06-05 16:50         ` Alfred M. Szmidt
2011-06-05 16:57           ` Jan Kratochvil
2011-06-05 17:15             ` Alfred M. Szmidt
2011-06-05 17:24               ` Jan Kratochvil
2011-06-05 22:25                 ` Alfred M. Szmidt
2011-06-05 17:49         ` Mark Kettenis
2011-06-06  9:22 ` [patch] physname regression: Non-matching type false breakpoint Pedro Alves
2011-06-06 21:20   ` Jan Kratochvil
2011-06-07 16:58     ` Pedro Alves [this message]
2011-07-01 20:29       ` [commit] " 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=201106071758.28138.pedro@codesourcery.com \
    --to=pedro@codesourcery.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