From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
* linespec.c (find_methods): Handle GCC 3.x template constructors.
+2002-05-11 Daniel Jacobowitz <drow@mvista.com>
+
+ From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
+ * linespec.c (find_methods): Handle GCC 3.x template constructors.
+
2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
* nbsd-tdep.c: Fix comment.
(struct symtab **) NULL)))
{
int method_counter;
+ int name_len = strlen (name);
CHECK_TYPEDEF (t);
*/
}
}
- else if (strcmp_iw (class_name, name) == 0)
+ else if (strncmp (class_name, name, name_len) == 0
+ && (class_name[name_len] == '\0'
+ || class_name[name_len] == '<'))
{
/* For GCC 3.x and stabs, constructors and destructors have names
like __base_ctor and __complete_dtor. Check the physname for now