From 6cbbcdfe20d083b436357402ca90587aa5bad7fc Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Thu, 2 Apr 2009 17:34:25 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 6 ++++++ gdb/stabsread.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8307c50a8e4..cf4700f6bef 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-04-02 Keith Seitz + + * 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 Change the default value for "set print frame-arguments" to scalars. 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); -- 2.30.2