From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 572F0385DC24; Sun, 5 Apr 2020 15:22:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 572F0385DC24 From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug c++/20540] Type printer template parameter substitution too greedy Date: Sun, 05 Apr 2020 15:22:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssbssa at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Apr 2020 15:22:48 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D20540 Hannes Domani changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot o= rg --- Comment #1 from Hannes Domani --- Both A::val_ and A::val2_ have basically the same debug information, so the= re is now way that gdb could know that only A::val_ was originally a T: .uleb128 0x7 # (DIE (0xf7) DW_TAG_member) .ascii "val_\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (gdb-20540.cpp) .byte 0x7 # DW_AT_decl_line .byte 0x5 # DW_AT_decl_column .long 0x12c # DW_AT_type .byte 0 # DW_AT_data_member_location .uleb128 0x7 # (DIE (0x105) DW_TAG_member) .ascii "val2_\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (gdb-20540.cpp) .byte 0x8 # DW_AT_decl_line .byte 0x7 # DW_AT_decl_column .long 0x12c # DW_AT_type .byte 0x4 # DW_AT_data_member_location Both have DW_AT_type 0x12c, which is int in this case: .uleb128 0xb # (DIE (0x12c) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name And it's the same for A::get and A::add. --=20 You are receiving this mail because: You are on the CC list for the bug.=