From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BB3F13858434; Wed, 17 May 2023 17:50:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB3F13858434 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1684345849; bh=sp4n6V7Vuu7Y6uYJXzqKlFsmuiXc1eN4sQLPobsPEcw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rDqTMKMK4vhFwChTXZSxUy+INgjQk4Mr6xDuYCb3W5W3xAuAhalQbj05QBZ+yAJOQ TtnI4Qodn2EvY98JO1bZpXNYTp2fDhXhXYf6Opy43Ai4sCCFX4gYnhk+PvPTIKnwHQ /sRWrfz3d6y9ZNb1csvdDqQVF64o+k/EvKhOS4TM= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug rust/22251] &str type should be built in Date: Wed, 17 May 2023 17:50:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: rust X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D22251 --- Comment #4 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dcd61a1453e68= 5a763bd91b3795a58edd3d9b4f40 commit cd61a1453e685a763bd91b3795a58edd3d9b4f40 Author: Tom Tromey Date: Wed May 17 09:07:50 2023 -0600 Special case "&str" in Rust parser "&str" is an important type in Rust -- it's the type of string literals. However, the compiler puts it in the DWARF in a funny way. The slice itself is present and named "&str". However, the Rust parser doesn't look for types with names like this, but instead tries to construct them from components. In this case it tries to make a pointer-to-"str" -- but "str" isn't always available, and in any case that wouldn't yield the best result. This patch adds a special case for &str. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D22251 Reviewed-By: Andrew Burgess --=20 You are receiving this mail because: You are on the CC list for the bug.=