From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 763413858C62; Thu, 8 Jun 2023 13:02:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 763413858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686229357; bh=oV+W9/x+dN2LX4DFlcVEy60lHfhAJEY94a1HkHaOjuw=; h=From:To:Subject:Date:From; b=czI+7KLObZEllEMEOHb3XuSsmIzQCblgNZeXNPIe9deNnA8m8HHpw5RS9AC/7QpUs SqVqmVY9c0+2hXC81XAAvUNdzHESbf5O1uVzaXbNMnyBrjDevrgyRsskgI/AGHPQ8B +cPOJX4WsNBONo8z6jZDMUGXuWXcXWK8aVfc+Uto= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug cli/30529] New: [gdb/cli] Quitting paging quits gdb Date: Thu, 08 Jun 2023 13:02:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D30529 Bug ID: 30529 Summary: [gdb/cli] Quitting paging quits gdb Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: cli Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- Consider starting gdb in a small window, say: ... $ echo $COLUMNS=20 38 $ echo $LINES 13 $ gdb ... We get a paging prompt: ... Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. --Type for more, q to quit, c to continue without paging-- ... and when we type q, we have: ... Quit $=20 ... Thinking about it, this sort of makes sense, if we type 'q', the current command is aborted, and the current command at that point is, well, just gd= b.=20 If we quit that, then we quit gdb. Still, I didn't expect it, I was expecting a gdb prompt, not a shell prompt. --=20 You are receiving this mail because: You are on the CC list for the bug.=