From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ObUrI5Syz2os8AkAWB0awg (envelope-from ) for ; Wed, 14 Oct 2026 12:49:24 -0400 Received: by simark.ca (Postfix, from userid 112) id 88F711E050; Wed, 14 Oct 2026 12:49:24 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C95EA1E04E for ; Wed, 14 Oct 2026 12:49:23 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 676EB4BA23EC for ; Wed, 14 Oct 2026 16:49:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 676EB4BA23EC Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id A3E3B4BA2E06; Wed, 14 Oct 2026 16:48:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A3E3B4BA2E06 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A3E3B4BA2E06 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791996512; cv=none; b=in1cW5G/05cSrh1tAIeKvR7p/KC7lhDSmn8weSRBkBJzkIzR7vMC3iJPK9Smnx3FWLuUjtX7r/mOYyAyY9h1Ox0mcS+Ur5laSJtWB3GXhaWIgDLsFH/xdn2rLrvKF1yBJ7PNaJ+qz1MMZQblmliN667/Mvcc7nZByyY+GDlqgxE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791996512; c=relaxed/simple; bh=UBnqAdPOkw4tLaDkrhAfzWYUdutCoaUoIEAp1/CxlU8=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=pCMDhv7vu4BwYeVGbazgX3pnBZKdwpLY1vzxklJa8FAU+4VE3hA8mz6s2Rf8lcoOs8GyRzudVZtUIIG3k/N0JCCJjuQSDLQlZ3l5wU/I8hFedmyY4ybFx/RUJyL7T0v7y3kTunKaDsHFCZ29TO7g6pfPGK0+EXO5VOFvBIFCmkI= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A3E3B4BA2E06 Received: by simark.ca (Postfix) id 8CD981E04E; Wed, 14 Oct 2026 12:48:31 -0400 (EDT) From: Simon Marchi To: gcc-patches@sourceware.org, gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH v2 0/2] Fix crash when .gdb_index contains Rust legacy mangled names Date: Wed, 14 Oct 2026 12:46:57 -0400 Message-ID: <20261014164830.358677-1-simon.marchi@efficios.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261005052602.1288766-3-simon.marchi@polymtl.ca> References: <20261005052602.1288766-3-simon.marchi@polymtl.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org This is v2 of: https://inbox.sourceware.org/gdb-patches/878q4bumgh.fsf@redhat.com/T/#mf4974aff377310db2cf24c34224fb8e5a174a905 The changes are: - do the fix in split_name: in DOT_STYLE mode, refuse to split a name that would lead to an empty component - add a preparatory patch that adds selftests for split_name Simon Marchi (2): gdb: add selftests for split_name gdb/dwarf: fix crash when .gdb_index contains Rust legacy mangled names gdb/split-name.c | 199 ++++++++++++++++++ .../gdb-index-rust-legacy-linkage-name.c | 29 +++ .../gdb-index-rust-legacy-linkage-name.exp | 98 +++++++++ 3 files changed, 326 insertions(+) create mode 100644 gdb/testsuite/gdb.dwarf2/gdb-index-rust-legacy-linkage-name.c create mode 100644 gdb/testsuite/gdb.dwarf2/gdb-index-rust-legacy-linkage-name.exp base-commit: 91a47f3ae9d6d494b0c794a3ccd81b242bd15b7d -- 2.56.0