aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-03-04 14:58:40 +0000
committerPedro Alves <palves@redhat.com>2010-03-04 14:58:40 +0000
commit58dadb1bdf0ace689fd17cab2676338fe32b44c0 (patch)
tree71166b931c1c7686a817620798d78dd31e2d7c04 /gdb
parent50e98be46933386c9ca6c17889230afb217c7e28 (diff)
downloadgdb-58dadb1bdf0ace689fd17cab2676338fe32b44c0.zip
gdb-58dadb1bdf0ace689fd17cab2676338fe32b44c0.tar.gz
gdb-58dadb1bdf0ace689fd17cab2676338fe32b44c0.tar.bz2
* utils.c (fputs_maybe_filtered): Check if there's already a top
level interpreter before dereferencing it. If there isn't one, don't paginate either.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/utils.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b7e028b..1cd63d8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-04 Pedro Alves <pedro@codesourcery.com>
+
+ * utils.c (fputs_maybe_filtered): Check if there's already a top
+ level interpreter before dereferencing it. If there isn't one,
+ don't paginate either.
+
2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
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);