aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2015-12-18 17:55:26 -0800
committerSandra Loosemore <sandra@codesourcery.com>2015-12-18 17:55:26 -0800
commitbc008695f5f9c72d2eac80d5dc125659ca106fad (patch)
treed9bf739c5f2026430d87282503d873c5e0f195d4 /gdb/top.c
parent1690b6163c6546305cb5f8811d4c7348d8f435e0 (diff)
downloadfsf-binutils-gdb-bc008695f5f9c72d2eac80d5dc125659ca106fad.zip
fsf-binutils-gdb-bc008695f5f9c72d2eac80d5dc125659ca106fad.tar.gz
fsf-binutils-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/top.c')
-rw-r--r--gdb/top.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/top.c b/gdb/top.c
index d1e2271..a45f3cc 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -542,7 +542,6 @@ command_loop (void)
{
struct cleanup *old_chain;
char *command;
- int stdin_is_tty = ISATTY (stdin);
while (instream && !feof (instream))
{
@@ -550,7 +549,7 @@ command_loop (void)
(*window_hook) (instream, get_prompt ());
clear_quit_flag ();
- if (instream == stdin && stdin_is_tty)
+ if (instream == stdin)
reinitialize_more_filter ();
old_chain = make_cleanup (null_cleanup, 0);