From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 03C71385841E; Tue, 12 Mar 2024 18:15:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03C71385841E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1710267345; bh=LrbFIs/EmOHN2b4Bn126KHbnNSq6e4opY8BGUuxbpa0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MuCmdfU0xotPe7N58Ag3LB6X6nZ1aEKNedtg3Q3Cx7L+vltdIDt/oWqlaTyh1ZQku UUzi1lA8vu0vTKv7TB4t6Q6kT7S48h0adXv8U8gC9VyPUlmDgUOn3XP/CXT7hXYdAW tlR74FRh9iwzTJjC51HN3CAyUGdjfUql5m5FeCPw= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31465] gdb batch mode crashes when execute "gdb.post_event(lambda: gdb.execute("c"))" in a stop event handler Date: Tue, 12 Mar 2024 18:15:44 +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: 15.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW 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: everconfirmed bug_status cf_reconfirmed_on 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=3D31465 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2024-03-12 --- Comment #3 from Tom Tromey --- In your case you probably want a breakpoint with a 'stop' method that returns False, instead. This area can probably be improved, though. I think what's happening is that the initial command completes, so gdb exits. Maybe resurrecting -i=3Dpython is a way to go. Unsure. --=20 You are receiving this mail because: You are on the CC list for the bug.=