]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Handle "set height 1"
authorTom Tromey <tom@tromey.com>
Sun, 9 Jan 2022 02:37:38 +0000 (19:37 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 15 Apr 2022 17:38:13 +0000 (11:38 -0600)
commit111d19818a4a7c96c87e330c6c143fa03bb86819
tree5b52ad936a731994daaccc43350daa83fe8cfd9e
parent1f0f8b5d9d9053c4d164d01c6915c2e6b8c6ea48
Handle "set height 1"

PR cli/17151 points out that "set height 1" has pathological behavior
in gdb.  What I see is that gdb will endlessly print the pagination
prompt.  This patch takes a simple and expedient approach to a fix:
pretend that the height is really 2.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=17151
gdb/testsuite/gdb.base/page.exp
gdb/utils.c