From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id 2AE783858428 for ; Thu, 2 Dec 2021 22:54:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2AE783858428 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from reform (deer0x0b.wildebeest.org [172.31.17.141]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 7D3F5301B4B1; Thu, 2 Dec 2021 23:54:24 +0100 (CET) Received: by reform (Postfix, from userid 1000) id 386BA2E81497; Thu, 2 Dec 2021 23:54:24 +0100 (CET) Date: Thu, 2 Dec 2021 23:54:24 +0100 From: Mark Wielaard To: Nicholas Nethercote Cc: gcc-patches@gcc.gnu.org, Eduard-Mihai Burtescu Subject: Re: [PATCH] libiberty rust-demangle, ignore .suffix Message-ID: References: <20211202171713.15454-1-mark@klomp.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2021 22:54:28 -0000 Hi, On Fri, Dec 03, 2021 at 06:58:36AM +1100, Nicholas Nethercote wrote: > On Fri, 3 Dec 2021 at 04:17, Mark Wielaard wrote: > > > > * rust-demangle.c (rust_demangle_callback): Ignore everything > > after '.' char in sym for v0. > > > > I just applied this change to Valgrind's copy of rust-demangle.c and I can > confirm that it works -- the symbols that were failing to be demangled are > now demangled. Thanks for testing. > > + /* Rust v0 symbols can have '.' suffixes, ignore those. */ > > + if (rdm.version == 0 && *p == '.') > > + break; > > > > Note that the indent on the `break` is 1 char, it should be 2. Oops. That is actually because I used a tab for indentation, but this file doesn't use tabs. Fixed in my local copy https://code.wildebeest.org/git/user/mjw/gcc/commit/?h=rust-demangle-suffix Will push with that fix if approved. Thanks, Mark