diff options
author | Tom Tromey <tom@tromey.com> | 2018-04-25 08:52:00 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-06-05 11:02:52 -0600 |
commit | eb6af80922a56b67228f7564facc4cb4aa44a0ae (patch) | |
tree | cc1244f5cc7e4f8bf7fa8dde1e4e9d0a2fb449de /gdb/testsuite/gdb.python/python.exp | |
parent | 5c4ce239a3ab9263163a0fe8e7487b39a41c43d1 (diff) | |
download | binutils-eb6af80922a56b67228f7564facc4cb4aa44a0ae.zip binutils-eb6af80922a56b67228f7564facc4cb4aa44a0ae.tar.gz binutils-eb6af80922a56b67228f7564facc4cb4aa44a0ae.tar.bz2 |
Add "continue" response to pager
This adds a "continue" response to the pager. If the user types "c"
in response to the pager prompt, pagination will be disabled for the
duration of one command -- but re-enabled afterward. This is handy if
you type a command that produces a lot of output, and you don't want
to baby-sit it by typing "return" each time the prompt comes up.
Tested by the buildbot.
gdb/ChangeLog
2018-06-05 Tom Tromey <tom@tromey.com>
PR cli/12326:
* NEWS: Add entry about pager.
* utils.c (pagination_disabled_for_command): New global.
(prompt_for_continue): Allow "c" response to prompt.
(reinitialize_more_filter): Clear
pagination_disabled_for_command.
(fputs_maybe_filtered): Check pagination_disabled_for_command.
gdb/doc/ChangeLog
2018-06-05 Tom Tromey <tom@tromey.com>
PR cli/12326:
* gdb.texinfo (Screen Size): Document "c" response to pagination
prompt.
gdb/testsuite/ChangeLog
2018-06-05 Tom Tromey <tom@tromey.com>
PR cli/12326:
* gdb.cp/static-print-quit.exp: Update.
* lib/gdb.exp (pagination_prompt): Update.
* gdb.base/page.exp: Use pagination_prompt. Add new tests.
* gdb.python/python.exp: Update.
Diffstat (limited to 'gdb/testsuite/gdb.python/python.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/python.exp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index 2780b78..1d7ea5b 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -143,13 +143,13 @@ gdb_test_no_output "set height $lines" set test "verify pagination beforehand" gdb_test_multiple "python print (\"\\n\" * $lines)" $test { - -re "---Type <return>" { + -re "--Type <RET>" { exp_continue } - -re " to continue, or q <return>" { + -re " for more, q to quit" { exp_continue } - -re " to quit---$" { + -re ", c to continue without paging--$" { pass $test } } @@ -159,13 +159,13 @@ gdb_test "python if gdb.execute('python print (\"\\\\n\" * $lines)', to_string=T set test "verify pagination afterwards" gdb_test_multiple "python print (\"\\n\" * $lines)" $test { - -re "---Type <return>" { + -re "--Type <RET>" { exp_continue } - -re " to continue, or q <return>" { + -re " for more, q to quit" { exp_continue } - -re " to quit---$" { + -re ", c to continue without paging--$" { pass $test } } |