This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] physname regression: Non-matching type false breakpoint


On Sunday 05 June 2011 16:34:19, Jan Kratochvil wrote:
> +  /* The strchr check is there if any types were specified verify the single
> +     found found parameter types really match those specified by user in COPY.
> +     */

I have trouble parsing this sentence.  The "The strchr check is there"
part doesn't glue nicely with the other part to my ears.  I suggest
dropping it.  Is a comma or colon missing between specified/verify,
perhaps?  Is double-"found" a typo?  Hmm, looking at the code,
how about this alternative comment?

+  /* 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)

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]