gdb/ChangeLog:
* linespec.c (add_matching_methods): Only match methods that are
in the VAR_DOMAIN and whose class is LOC_BLOCK.
+2010-02-19 Joel Brobecker <brobecker@adacore.com>
+
+ Workaround for PR/10966:
+ * linespec.c (add_matching_methods): Only match methods that are
+ in the VAR_DOMAIN and whose class is LOC_BLOCK.
+
2010-02-19 Joel Brobecker <brobecker@adacore.com>
* configure.ac: Disable -Werror by default.
NULL, VAR_DOMAIN,
language,
(int *) NULL);
- if (sym_arr[i1])
+ /* See PR10966. Remove check on symbol domain and class when
+ we stop using (bad) linkage names on constructors. */
+ if (sym_arr[i1] && (SYMBOL_DOMAIN (sym_arr[i1]) == VAR_DOMAIN
+ && SYMBOL_CLASS (sym_arr[i1]) == LOC_BLOCK))
i1++;
else
{