* utils.c (fputs_maybe_filtered): Check if there's already a top
authorPedro Alves <palves@redhat.com>
Thu, 4 Mar 2010 14:58:40 +0000 (14:58 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 4 Mar 2010 14:58:40 +0000 (14:58 +0000)
level interpreter before dereferencing it.  If there isn't one,
don't paginate either.

gdb/ChangeLog
gdb/utils.c

index b7e028be9c991a6c2247b584b9d030b898ce281c..1cd63d8cd7b1399855680fcbd88f51cd4be47995 100644 (file)
@@ -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
index b8e916085febe98a8dc44456f0290b14361f0f56..0b74e2b1ae6df9f48ce7c3bc067492c7d3ef2d7d 100644 (file)
@@ -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);
This page took 0.026964 seconds and 4 git commands to generate.