From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 From: Nils-Christian Kempke To: gdb-patches@sourceware.org Cc: blarsen@redhat.com, tom@tromey.com, Nils-Christian Kempke 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-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: , X-List-Received-Date: Wed, 24 Aug 2022 09:19:30 -0000 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