This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/14998] GDB cannot handle pointer to member functions beingencoded with DW_TAG_ptr_to_member_type
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 08 Jan 2013 04:48:26 +0000
- Subject: [Bug c++/14998] GDB cannot handle pointer to member functions beingencoded with DW_TAG_ptr_to_member_type
- Auto-submitted: auto-generated
- References: <bug-14998-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14998
--- Comment #11 from Tom Tromey <tromey at redhat dot com> 2013-01-08 04:48:26 UTC ---
(In reply to comment #10)
> Created attachment 6800 [details]
> x86 assembly from Clang
>
> Seems even with the extra artificial parameter GDB still doesn't handle it as
> member function pointer. (prints out as a number rather than a function, type
> doesn't print with the expected (), etc)
Oops, yeah, I see the problem.
read_tag_ptr_to_member_type doesn't handle TYPE_CODE_FUNC properly.
It seems to think we'll see TYPE_CODE_METHOD here, which I think we won't.
I have a patch.
--
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.