summaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2009-04-02 17:34:24 +0000
committerKeith Seitz <keiths@redhat.com>2009-04-02 17:34:24 +0000
commit94f728e3e2cba80e7e69e7516787f96251196744 (patch)
tree241ae49065a9f19abda53108cd05c735d29a8419 /gdb/stabsread.c
parentda85b7464016e598ab52d749011248be3349a97c (diff)
downloadgdb-94f728e3e2cba80e7e69e7516787f96251196744.tar.gz
* 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.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 17dfce4137b..5ce53e3cb26 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -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);