From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 403 invoked by alias); 7 Jan 2013 19:01:20 -0000 Received: (qmail 377 invoked by uid 48); 7 Jan 2013 19:01:19 -0000 From: "tromey at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/14998] GDB cannot handle pointer to member functions being encoded with DW_TAG_ptr_to_member_type Date: Mon, 07 Jan 2013 19:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2013-q1/txt/msg00028.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14998 --- Comment #6 from Tom Tromey 2013-01-07 19:01:17 UTC --- This .s seems a little weird to me, but maybe I am confused. When I look at the DWARF I see: <1><47>: Abbrev Number: 6 (DW_TAG_ptr_to_member_type) <48> DW_AT_type : <0x34> <4c> DW_AT_containing_type: <0x3f> which points to <1><34>: Abbrev Number: 3 (DW_TAG_subroutine_type) <35> DW_AT_type : <0x26> <2><39>: Abbrev Number: 4 (DW_TAG_formal_parameter) <3a> DW_AT_type : <0x2d> 0x2d is just <1><2d>: Abbrev Number: 2 (DW_TAG_base_type) <2e> DW_AT_name : (indirect string, offset: 0x46): float <32> DW_AT_encoding : 4 (float) <33> DW_AT_byte_size : 4 I was expecting the subroutine type to have an artificial parameter for the "this" pointer. I think if that was added then calling would work. Printing the artificial argument appears to be a conscious decision. >>From c-typeprint.c: Artificial arguments, such as "this" in non-static methods, are displayed if LINKAGE_NAME is zero I think this is a bit weird though. I wouldn't mind changing it or perhaps adding a ptype flag to control it. -- 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.