diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-02-04 17:37:59 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-02-04 17:37:59 +0000 |
commit | 1180b2c86e7162bbe500802b3c16ea7ab26c6ab6 (patch) | |
tree | 49d4544338868316f056641020290dee29015e3d | |
parent | c3f08eb78059b1b86df7bbede842933bc81f4d17 (diff) | |
download | gdb-1180b2c86e7162bbe500802b3c16ea7ab26c6ab6.zip gdb-1180b2c86e7162bbe500802b3c16ea7ab26c6ab6.tar.gz gdb-1180b2c86e7162bbe500802b3c16ea7ab26c6ab6.tar.bz2 |
Call tui_initialize_readline only if gdb_stdout is a tty.
2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
PR tui/9622
* tui/tui-interp.c (tui_init): Call tui_initialize_readline
only if gdb_stdout is a tty.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/tui/tui-interp.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7caab77..3543b1f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2010-02-04 H.J. Lu <hongjiu.lu@intel.com> + PR tui/9622 + * tui/tui-interp.c (tui_init): Call tui_initialize_readline + only if gdb_stdout is a tty. + +2010-02-04 H.J. Lu <hongjiu.lu@intel.com> + * target-descriptions.c: Include "osabi.h". (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid OSABI. diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c index 3b59769..3bb8246 100644 --- a/gdb/tui/tui-interp.c +++ b/gdb/tui/tui-interp.c @@ -57,7 +57,8 @@ tui_init (int top_level) tui_initialize_io (); tui_initialize_win (); - tui_initialize_readline (); + if (ui_file_isatty (gdb_stdout)) + tui_initialize_readline (); return NULL; } |