diff options
author | Keith Seitz <keiths@redhat.com> | 2009-04-02 17:34:24 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2009-04-02 17:34:24 +0000 |
commit | 94f728e3e2cba80e7e69e7516787f96251196744 (patch) | |
tree | 241ae49065a9f19abda53108cd05c735d29a8419 /gdb/stabsread.c | |
parent | da85b7464016e598ab52d749011248be3349a97c (diff) | |
download | gdb-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.c | 4 |
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); |