From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4EFDD3844002; Tue, 13 Dec 2022 05:03:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4EFDD3844002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670907815; bh=Hq8U25YqWa4cAsLF2vSHZJ81MvmjsIzm7HEcQ0o9m7Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wZvRf/VdtzXJPlDqeew55kPYDIKR8DatmxS0B5ByxVzBxA2t5UcCE27bVgbaLzmq6 mMXDA8nxa2tpzOZ/xlQepk6I/2AhuMR+WfHhY2zmBorPvHfFr0hc8xhFdA2AaR9WMM 3h4TZ2HpbuDjyBYC4wIQkIpH2P2MBwQNLvYWzLPg= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/29871] "p tail.y ++ (diff.y / 2)" command causes crash Date: Tue, 13 Dec 2022 05:03:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 12.1 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=3D29871 --- Comment #3 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=3D785545988c22= 2f603a7a190170b04d4b971d7959 commit 785545988c222f603a7a190170b04d4b971d7959 Author: Tom Tromey Date: Sun Dec 11 12:48:07 2022 -0700 Fix crash in is_nocall_function is_nocall_function anticipates only being called for a function or a method. However, PR gdb/29871 points out a situation where an unusual expression -- but one that parses to a valid, if extremely weird, function call -- breaks this assumption. This patch changes is_nocall_function to remove this assert and instead simply return 'false' in this case. Approved-By: Simon Marchi Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29871 --=20 You are receiving this mail because: You are on the CC list for the bug.=