Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Jul 1 20:27:58 2011 +0000
gdb/
* linespec.c (find_method): Accept the function type automatically only
if it was specified with parameter types.
gdb/testsuite/
* gdb.cp/paren-type.cc: New files.
* gdb.cp/paren-type.exp: New files.
+2011-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linespec.c (find_method): Accept the function type automatically only
+ if it was specified with parameter types.
+
2011-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
Stop on first linespec terminator instead of eating what we can.
i1 = find_methods (t, copy, SYMBOL_LANGUAGE (sym_class), sym_arr,
file_symtab);
- 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. */
+ if (i1 == 1 && strchr (copy, '(') == NULL)
{
/* There is exactly one field with that name. */
sym = sym_arr[0];
+2011-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.cp/paren-type.cc: New files.
+ * gdb.cp/paren-type.exp: New files.
+
2011-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
Stop on first linespec terminator instead of eating what we can.