diff options
author | Pedro Alves <palves@redhat.com> | 2010-03-04 01:06:28 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-03-04 01:06:28 +0000 |
commit | 390a8acaa3838e084169c5dd159075cfbc178fbc (patch) | |
tree | fe21c86d5ec53c31ef595c8572d7495346980388 | |
parent | 9355b391f352eb72e397d06c5a0e27308363988f (diff) | |
download | gdb-390a8acaa3838e084169c5dd159075cfbc178fbc.zip gdb-390a8acaa3838e084169c5dd159075cfbc178fbc.tar.gz gdb-390a8acaa3838e084169c5dd159075cfbc178fbc.tar.bz2 |
* utils.c (fputs_maybe_filtered): Always disable pagination if the
top level interpreter is MI.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/utils.c | 7 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 46010bd..8a2361c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-03-03 Pedro Alves <pedro@codesourcery.com> + + * utils.c (fputs_maybe_filtered): Always disable pagination if the + top level interpreter is MI. + 2010-03-03 Stan Shebs <stan@codesourcery.com> * remote.c (remote_download_tracepoint): Iterate over locations. @@ -5,7 +10,7 @@ (encode_actions): Add location argument. (trace_dump_command): Check all locations to see if stepping frame. - + 2010-03-03 H.J. Lu <hongjiu.lu@intel.com> Eli Zaretskii <eliz@gnu.org> diff --git a/gdb/utils.c b/gdb/utils.c index 52596ca..b8e9160 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -71,6 +71,7 @@ #include <time.h> #include "gdb_usleep.h" +#include "interps.h" #if !HAVE_DECL_MALLOC extern PTR malloc (); /* ARI: PTR */ @@ -2209,8 +2210,10 @@ fputs_maybe_filtered (const char *linebuffer, struct ui_file *stream, return; /* Don't do any filtering if it is disabled. */ - if ((stream != gdb_stdout) || !pagination_enabled - || (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX)) + if (stream != gdb_stdout + || !pagination_enabled + || (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX) + || ui_out_is_mi_like_p (interp_ui_out (top_level_interpreter ()))) { fputs_unfiltered (linebuffer, stream); return; |