* stabsread.c (read_member_functions): GCC may emit an extra space

at the end of the names "__base_ctor" and "__base_dtor"; so ignore
	whitespace when looking for these functions.
This commit is contained in:
Keith Seitz 2009-04-02 17:34:25 +00:00
parent 75c19d4704
commit 6cbbcdfe20
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2009-04-02 Keith Seitz <keiths@redhat.com>
* stabsread.c (read_member_functions): GCC may emit an extra space
at the end of the names "__base_ctor" and "__base_dtor"; so ignore
whitespace when looking for these functions.
2009-04-01 Joel Brobecker <brobecker@adacore.com>
Change the default value for "set print frame-arguments" to scalars.

View File

@ -2438,8 +2438,8 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type,
/* Skip GCC 3.X member functions which are duplicates of the callable
constructor/destructor. */
if (strcmp (main_fn_name, "__base_ctor") == 0
|| strcmp (main_fn_name, "__base_dtor") == 0
if (strcmp_iw (main_fn_name, "__base_ctor ") == 0
|| strcmp_iw (main_fn_name, "__base_dtor ") == 0
|| strcmp (main_fn_name, "__deleting_dtor") == 0)
{
xfree (main_fn_name);