aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index b8e9160..0b74e2b 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -2213,6 +2213,7 @@ fputs_maybe_filtered (const char *linebuffer, struct ui_file *stream,
if (stream != gdb_stdout
|| !pagination_enabled
|| (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX)
+ || top_level_interpreter () == NULL
|| ui_out_is_mi_like_p (interp_ui_out (top_level_interpreter ())))
{
fputs_unfiltered (linebuffer, stream);