Don't let gdb_stdlog use pager
authorTom Tromey <tromey@adacore.com>
Thu, 17 Nov 2022 17:24:38 +0000 (10:24 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 28 Nov 2022 20:22:40 +0000 (13:22 -0700)
commit1dd889362bb7027ebea754a161bf629270cc9042
treecff34c092bd6716d84fce4d3fe032bd3c55eb645
parent2b141965f2ddef8cf3e79d357768a98c8703a5df
Don't let gdb_stdlog use pager

When using the "set logging" commands, cli_interp_base::set_logging
will send gdb_stdlog output (among others) to the tee it makes for
gdb_stdout.  However, this has the side effect of also causing logging
to use the pager.  This is PR gdb/29787.

This patch fixes the problem by keeping stderr and stdlog separate
from stdout, preserving the rule that only gdb_stdout should page.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29787
gdb/cli/cli-interp.c
gdb/cli/cli-interp.h