This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Ignore whitespace on ctor/dtor stabs
- From: Keith Seitz <keiths at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 02 Apr 2009 10:35:53 -0700
- Subject: [PATCH] Ignore whitespace on ctor/dtor stabs
Hi,
As per http://sourceware.org/ml/gdb-patches/2009-04/msg00038.html, I
have committed the attached patch.
Keith
ChangeLog
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.
Index: stabsread.c
===================================================================
RCS file: /cvs/src/src/gdb/stabsread.c,v
retrieving revision 1.113
diff -u -p -r1.113 stabsread.c
--- stabsread.c 21 Feb 2009 16:14:49 -0000 1.113
+++ stabsread.c 1 Apr 2009 23:03:22 -0000
@@ -2408,8 +2408,8 @@ read_member_functions (struct field_info
/* 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);