From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 306B5384A804; Thu, 27 Oct 2022 21:56:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 306B5384A804 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666907813; bh=Ham6fTF9Ax4o7Yt8ApDMqBkE/ggJL4Ne+AEfwtog8TM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=frvpbG0++W9IUDwGNhrPd+d9b6ms9NbdF0M2qyxNnDBKdANCVlI3KjAh0GU5GQcp7 PaRws+vJG7IbS9Fw5kuzjYJ7QYzP1FEsEOuliyO3erNn85jwe/48HLv/Lzijl67Jfq LL3bj3mgAprSi0mjiNFCmW4B9iaAR4GaR3DU/4hE= From: "dblaikie at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/28946] Missing template paramater pack support Date: Thu, 27 Oct 2022 21:56:51 +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: 11.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dblaikie at gmail dot com 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D28946 David Blaikie changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dblaikie at gmail dot com --- Comment #2 from David Blaikie --- +1 to this from a Clang developer. Clang does name the template parameter pack. ``` 0x0000039a: DW_TAG_structure_type DW_AT_name ("single_and_pack") DW_AT_byte_size (1) DW_AT_decl_file ("/usr/local/google/home/blaikie/dev/scratch/test.cpp") DW_AT_decl_line (9) DW_AT_decl_column (8) DW_AT_sibling (0x000003b7) 0x000003a4: DW_TAG_template_type_parameter DW_AT_name ("T1") DW_AT_type (0x00000094 "int") 0x000003ac: DW_TAG_GNU_template_parameter_pack DW_AT_name ("Ts") 0x000003b0: DW_TAG_template_type_parameter DW_AT_type (0x00000094 "int") 0x000003b5: NULL 0x000003b6: NULL ``` And there's an extra bonus reason from Clang's side: I'm working on a mode for clang (called -gsimple-template-names) that will produce DW_AT_names for templates without template parameters in some cases= (so in the above example "single_and_pack") and so working around this bug (mis= sing structural/API access to template parameters) by using the string name won'= t be possible with debug info like this) (total aside, though this is probably for a conversation on a gdb mailing l= ist - it does look like gdb does quite a bit of work that looks /a lot/ like it= 's intending to support debug info like I described above... anyone happen to = have context on that?) --=20 You are receiving this mail because: You are on the CC list for the bug.=