From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id E7c2BjftBWNsgCwAWB0awg (envelope-from ) for ; Wed, 24 Aug 2022 05:19:51 -0400 Received: by simark.ca (Postfix, from userid 112) id 05A521E4A7; Wed, 24 Aug 2022 05:19:51 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=n+lEcr94; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 5F6FE1E13B for ; Wed, 24 Aug 2022 05:19:50 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D2A003856DDE for ; Wed, 24 Aug 2022 09:19:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2A003856DDE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1661332788; bh=mHQNH+Qc3GGmCyCU8rFl5kjFSsFz2itjU0tJ8fjHYwA=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=n+lEcr94dPgdRcgzVaVbIZS1jRzDLT13cwjZ9eJ+HzGv8ZSTKcHKoY2L218YmMIYq uckqcLp650CjVVPZKNA7BVNVvzH1R6++U+RytyZyIsXs7KSEQb/64/O0/IW4Lkv2yk nDmjNvliFQsBR1hNcy92tb9jcG2fak7oxOB9EC/s= Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by sourceware.org (Postfix) with ESMTPS id EB2C03858CDB for ; Wed, 24 Aug 2022 09:19:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EB2C03858CDB X-IronPort-AV: E=McAfee;i="6500,9779,10448"; a="319975518" X-IronPort-AV: E=Sophos;i="5.93,260,1654585200"; d="scan'208";a="319975518" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2022 02:19:26 -0700 X-IronPort-AV: E=Sophos;i="5.93,260,1654585200"; d="scan'208";a="586357504" Received: from labpcdell3650-003.iul.intel.com (HELO localhost) ([172.28.49.87]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2022 02:19:25 -0700 To: gdb-patches@sourceware.org Subject: [PATCH v4 0/2] Handle unnamed template tags in GDB Date: Wed, 24 Aug 2022 11:18:56 +0200 Message-Id: <20220824091858.1255517-1-nils-christian.kempke@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Nils-Christian Kempke via Gdb-patches Reply-To: Nils-Christian Kempke Cc: tom@tromey.com Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hi, please find attached v4 of this series. v1: https://sourceware.org/pipermail/gdb-patches/2022-July/190574.html v2: https://sourceware.org/pipermail/gdb-patches/2022-August/191210.html v3: https://sourceware.org/pipermail/gdb-patches/2022-August/191511.html Changes since v3 incorporate Tom's comments here: https://sourceware.org/pipermail/gdb-patches/2022-August/191516.html Patch 1: * No changes Patch 2: * Changed assert and removed nullptr check from while loop condition in unnamed_template_tag_name. * Use objfile::intern over obstack_strndup. Thanks! Nils Nils-Christian Kempke (2): gdb, testsuite: adapt function_range expected name gdb, dwarf: create symbols for template tags without names gdb/dwarf2/read.c | 45 ++++- .../missing-type-name-for-templates.cc | 58 ++++++ .../missing-type-name-for-templates.exp | 170 ++++++++++++++++++ gdb/testsuite/lib/dwarf.exp | 12 +- 4 files changed, 280 insertions(+), 5 deletions(-) create mode 100644 gdb/testsuite/gdb.dwarf2/missing-type-name-for-templates.cc create mode 100644 gdb/testsuite/gdb.dwarf2/missing-type-name-for-templates.exp -- 2.25.1 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928