From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AFAEA3857C50; Sun, 9 Aug 2020 21:11:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFAEA3857C50 From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug varobj/25470] Assertion hit in maybe_negate_by_bytes Date: Sun, 09 Aug 2020 21:11:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: varobj X-Bugzilla-Version: 8.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: UNCONFIRMED 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Aug 2020 21:11:16 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25470 --- Comment #9 from Tom Tromey --- What is the DWARF emitted for one of these non-zero but non-byte-sized types? It ought to have a byte size (the storage size), a bit size, and optionally a bit offset. Removing the assert from maybe_negate_by_bytes and replacing it with /* 0-length integer types are possible in Zig, at least. */ if (len =3D=3D 0) return false; ... at least makes symbol reading not crash. I'd have to write a test case to see if it really works though. --=20 You are receiving this mail because: You are on the CC list for the bug.=