From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 759283861827; Sat, 28 Oct 2023 20:46:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 759283861827 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1698525972; bh=u6tCWv8CwNaj1X/rq8VTJVfHZo7rROjYIgi8FPoNmvk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OTCSDkCYskAsHYdW+N8R9faa+cZ5mfqLQDljUinU2N+DdPyKop6gFVFWiHGCCK4Dn 0aScox6YiBNeFc6zpx1wm+c5z0i0/QQ7RT6Cxn0doYf1gOI1knBMKKlmkreOxzeWC9 Z7y7V9d6CsVwZWMFfRHA8FxybfgO6LCC5UQ8Z/yU= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug rust/29735] Can't have multiple breakpoints - crash otherwise Date: Sat, 28 Oct 2023 20:46:11 +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: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned 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=3D29735 --- Comment #10 from Tom Tromey --- (In reply to The Puzzlemaker from comment #9) > Comment on attachment 15198 [details] > Patch for this issue, or an issue similar to it >=20 > >From 07bb370168aab780c4780435ad3d9257ad8a474b Mon Sep 17 00:00:00 2001 > >From: ThePuzzlemaker > >Date: Sat, 28 Oct 2023 13:28:33 -0500 > >Subject: [PATCH] Fix assertion fail from `rust_lang::print_enum` > > > >This commit fixes an assertion fail in `rust_lang::print_enum` related > >to the handling of field numbers for variant types. > >--- > > gdb/rust-lang.c | 12 +++++++++++- > > 1 file changed, 11 insertions(+), 1 deletion(-) > > > >diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c > >index 74808ad0716..9acd2e1d2fa 100644 > >--- a/gdb/rust-lang.c > >+++ b/gdb/rust-lang.c > >@@ -470,8 +470,18 @@ rust_language::print_enum (struct value *val, struc= t ui_file *stream, > > } > >=20 > > int variant_fieldno =3D rust_enum_variant (type); > >- val =3D value_field (val, variant_fieldno); This code looks different on trunk. IIRC I fixed a bug like this a while ago. git says 2020 though, which seems wrong if you're using 13. --=20 You are receiving this mail because: You are on the CC list for the bug.=