This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14998] GDB cannot handle pointer to member functions beingencoded with DW_TAG_ptr_to_member_type


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]