X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Ftui%2Ftui-io.c;h=d39b08976cd3e1905a1c4d89a66d0892b98e1651;hb=5b6fe301a1769b1a5a062d8fbf17c89556c478e8;hp=addb3b003c44ba2fba36722dfb5a41baad53259b;hpb=6a83354a43c2dc48a253ee15eb62ccd1a8cd1b48;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c index addb3b003c..d39b08976c 100644 --- a/gdb/tui/tui-io.c +++ b/gdb/tui/tui-io.c @@ -1,7 +1,7 @@ /* TUI support I/O functions. - Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software - Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2007 + Free Software Foundation, Inc. Contributed by Hewlett-Packard Company. @@ -19,17 +19,15 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ #include "defs.h" -#include "terminal.h" #include "target.h" #include "event-loop.h" #include "event-top.h" #include "command.h" #include "top.h" -#include "readline/readline.h" #include "tui/tui.h" #include "tui/tui-data.h" #include "tui/tui-io.h" @@ -45,6 +43,11 @@ #include "gdb_curses.h" +/* This redefines CTRL if it is not already defined, so it must come + after terminal state releated include files like and + "gdb_curses.h". */ +#include "readline/readline.h" + int key_is_start_sequence (int ch) { @@ -599,8 +602,8 @@ tui_initialize_io (void) tui_stderr = tui_fileopen (stderr); tui_out = tui_out_new (tui_stdout); - /* Create the default UI. It is not created because we installed - a init_ui_hook. */ + /* Create the default UI. It is not created because we installed a + deprecated_init_ui_hook. */ tui_old_uiout = uiout = cli_out_new (gdb_stdout); #ifdef TUI_USE_PIPE_FOR_READLINE