From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3755B3858423; Mon, 20 Mar 2023 13:53:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3755B3858423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679320427; bh=HuGXhk5s83lhphLzAz9EMTzXcfnITfYDu2HnOBWwY0I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xVXvgREjz/BrxYQOn9ry1tAqUf30zKXSvN7wnuV4yBF54e0M0MXOd+zuYtCN8rmSL L/sjsYgT2j6IlpyR3gs+he8xfOWwJbVlqrUdSM2LxTWcl2yEC081r5JVpV9L+M+KE2 CNHXWp+dXwr2SqyWM8TAjC15/2JfFHR0APK0aDP0= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug rust/20367] add further Rust demangling Date: Mon, 20 Mar 2023 13:53:46 +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: unknown 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=3D20367 --- Comment #10 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=3D6e7eef72164c= 00d6a5a7b0bce9fa01f5481f33cb commit 6e7eef72164c00d6a5a7b0bce9fa01f5481f33cb Author: Tom Tromey Date: Sun Mar 19 09:13:10 2023 -0600 Use rust_demangle to fix a crash PR rust/30211 points out a crash caused by a particular completion. This turns out to happen because a Rust minsym winds up in a C++-specific path in strncmp_iw_with_mode, which ultimately causes the completer to pass invalid arguments to string::append. This patch fixes the bug by reordering the language constants so that Rust comes before C++, and then using rust_demangle. This ensures that minsyms are correctly marked as "Rust", avoiding this code and thus the crash. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D20367 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30211 Reviewed-By: Andrew Burgess --=20 You are receiving this mail because: You are on the CC list for the bug.=