[Bug cli/30529] New: [gdb/cli] Quitting paging quits gdb

vries at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Thu Jun 8 13:02:37 GMT 2023


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.


More information about the Gdb-prs mailing list