From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7596C3858D3C; Tue, 11 Apr 2023 18:52:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7596C3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681239159; bh=U6j7bjXIrhGgZceOMmWJmedM2ZatOnhkvgMwVlZRojY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=t3bV9gaAeVMjlgfdKGIS7MeEzYH8m+VkwYK/D6FCCqqL3tXEgsrZiCFCp8SMkeVsv Xq+C4XcU1TUQc5E8XJ+0++lKm3nInhFTcdlk00wQB8bttIaJEC2XmEiT3nx/LdEGlB eXQbNJRerJ8Z9K+cigGTOBaHZAIk6qsceg0AeeTk= From: "jistone at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug rust/30330] GDB 13.1 no longer prints length of Rust slice wrappers Date: Tue, 11 Apr 2023 18:52:39 +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: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jistone at redhat dot com 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=3D30330 --- Comment #2 from Josh Stone --- Hmm, Rust 1.59 to 1.60 changed those member attributes. 1.59: <3><1002>: Abbrev Number: 12 (DW_TAG_member) <1003> DW_AT_name : (indirect string, offset: 0xf63af): value <1007> DW_AT_type : <0x13ba> <100b> DW_AT_alignment : 1 <100c> DW_AT_data_member_location: 0 1.60: <3><13a6>: Abbrev Number: 41 (DW_TAG_member) <13a7> DW_AT_name : (indirect string, offset: 0x105d4b): value <13ab> DW_AT_type : <0xb7> <13af> DW_AT_byte_size : 1 <13b0> DW_AT_bit_size : 0 <13b1> DW_AT_bit_offset : 8 <13b2> DW_AT_data_member_location: 0 > This structure does not really have a byte size of 0, It doesn't have a *static* size at all -- it needs the reference's length. --=20 You are receiving this mail because: You are on the CC list for the bug.=