From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B42293AA901A; Thu, 17 Nov 2022 16:34:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B42293AA901A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668702862; bh=SaQdGIQ5lNND8WwfxXS+jGWHRPzb0rA5h3cvC+hUJ4Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Insak7jT0Q6wIbaHQyEe2DgNq032SYMlK2ecZ/aAJCaZ4gen6K+ZSArWcTUSwJwM8 qdoL7HdDmGwknMWdxbilIooU9hnwvQ1A4GjWoECtA2mntLzIRMaMEPlWljj6xQfvSO pCqI/bIYVC4KUovZQ7xzVFNpiDaCofSg3v8+Idkw= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/29787] Using "set debug infrun on" and "set logging enabled" breaks GDB prompt and makes GDB crash Date: Thu, 17 Nov 2022 16:34:22 +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: HEAD 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: 13.1 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=3D29787 --- Comment #5 from Tom Tromey --- One other weirdness for me here is that supposedly infrun disables pagination. Looking into this, I found a buglet in fetch_inferior_event: void fetch_inferior_event () { INFRUN_SCOPED_DEBUG_ENTER_EXIT; ... /* Temporarily disable pagination. Otherwise, the user would be given an option to press 'q' to quit, which would cause an early exit and could leave GDB in a half-baked state. */ scoped_restore save_pagination =3D make_scoped_restore (&pagination_enabled, false); That is, it disables pagination -- but after the logging is done. --=20 You are receiving this mail because: You are on the CC list for the bug.=