This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/14365] gdb crashes when checking ctor of lambdas (inis_ctor_or_dtor)
- From: "keiths at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 03 Aug 2012 17:22:08 +0000
- Subject: [Bug c++/14365] gdb crashes when checking ctor of lambdas (inis_ctor_or_dtor)
- Auto-submitted: auto-generated
- References: <bug-14365-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14365
Keith Seitz <keiths at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |keiths at redhat dot com
--- Comment #4 from Keith Seitz <keiths at redhat dot com> 2012-08-03 17:22:08 UTC ---
I think Tom is correct. IMO the questionable thing done here is asking
c_type_print_base to print details of the type when we have a pointer
member/method whose containing class/struct is anonymous (TYPE_NAME (type) ==
NULL). That just doesn't seem right.
I believe the proper fix is simply for c_type_print_varspec_prefix to honor the
SHOW parameter when it is calling other c_type_print_* functions.
In this function, the only cases which do not pass SHOW to the other type
printing functions are MEMBERPTR and METHODPTR, exactly where we are seeing
problems.
I'm working on a test case for this now, and will submit a patch when it is
finished. [It requires hand-written DWARF.]
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.