diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2015-12-18 17:55:26 -0800 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2015-12-18 17:55:26 -0800 |
commit | bc008695f5f9c72d2eac80d5dc125659ca106fad (patch) | |
tree | d9bf739c5f2026430d87282503d873c5e0f195d4 /gdb/event-top.c | |
parent | 1690b6163c6546305cb5f8811d4c7348d8f435e0 (diff) | |
download | gdb-bc008695f5f9c72d2eac80d5dc125659ca106fad.zip gdb-bc008695f5f9c72d2eac80d5dc125659ca106fad.tar.gz gdb-bc008695f5f9c72d2eac80d5dc125659ca106fad.tar.bz2 |
Reset pagination counts even when stdin is not a tty.
2015-12-18 Sandra Loosemore <sandra@codesourcery.com>
gdb/
* event-top.c (command_handler): Don't require stdin to be a tty
for call to reinitialize_more_filter.
* top.c (command_loop): Likewise.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r-- | gdb/event-top.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c index 3f98c05..e5a5ac6 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -469,11 +469,10 @@ async_disable_stdin (void) static void command_handler (char *command) { - int stdin_is_tty = ISATTY (stdin); struct cleanup *stat_chain; clear_quit_flag (); - if (instream == stdin && stdin_is_tty) + if (instream == stdin) reinitialize_more_filter (); /* If readline returned a NULL command, it means that the connection |