aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2009-04-02 17:34:25 +0000
committerKeith Seitz <keiths@redhat.com>2009-04-02 17:34:25 +0000
commit6cbbcdfe20d083b436357402ca90587aa5bad7fc (patch)
tree2d48a5a0c6fb1a7eac2bc380cc70ce8ffd16465d /gdb/stabsread.c
parent75c19d47043177cdde45aaffc7ad9098caf80775 (diff)
downloadgdb-6cbbcdfe20d083b436357402ca90587aa5bad7fc.zip
gdb-6cbbcdfe20d083b436357402ca90587aa5bad7fc.tar.gz
gdb-6cbbcdfe20d083b436357402ca90587aa5bad7fc.tar.bz2
* 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 17dfce4..5ce53e3 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);