public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/30529] New: [gdb/cli] Quitting paging quits gdb
@ 2023-06-08 13:02 vries at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: vries at gcc dot gnu.org @ 2023-06-08 13:02 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30529

            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 
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 <http://gnu.org/licenses/gpl.html>
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 <RET> for more, q to quit, c to continue without paging--
...
and when we type q, we have:
...
Quit
$ 
...

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 gdb. 
If we quit that, then we quit gdb.

Still, I didn't expect it, I was expecting a gdb prompt, not a shell prompt.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-08 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-08 13:02 [Bug cli/30529] New: [gdb/cli] Quitting paging quits gdb vries at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).