From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0F5B63858D39; Thu, 6 Apr 2023 08:12:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F5B63858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680768742; bh=LsdNnjerrGkF4tQWIIOHIHjB9wUUJfobwNvbNYgwyQM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YK2PtdbI0kr8pUG1iPtIfdyCx4BA/3JylJgJn0qs5CKk0ukCPw7KeTCHzqN5JYV0+ jtEK1czPYezK6mMX7Au0rIgc8oTUJmxWoPxhtRVM0Y/4bxRxyAVzAISZDE0TJ6FFYp Ltzz4tf/rU1lM/LhE30hKYIq0zib72ZhkMbX2nxs= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug cli/30320] [gdb/cli] lines_per_page not reset on "set height 0" Date: Thu, 06 Apr 2023 08:12:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: cli X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.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: 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=3D30320 --- Comment #2 from Tom de Vries --- (In reply to Tom de Vries from comment #0) > - lines_printed 0 -> 1 -> 2 -> 3 -> 4 FTR, I also investigated why we're not getting a pagination prompt here, despite lines_per_page being set to 2, but that's due to this code in fetch_inferior_event: ... /* Temporarily disable pagination. Otherwise, the user would be=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 given an option to press 'q' to quit, which would cause an early=20=20= =20=20=20=20=20=20=20=20=20 exit and could leave GDB in a half-baked state. */ scoped_restore save_pagination =3D make_scoped_restore (&pagination_enabled, false); ... --=20 You are receiving this mail because: You are on the CC list for the bug.=