From: Mark Kettenis Date: Fri, 9 Apr 2004 13:54:34 +0000 (+0000) Subject: * tui/tui-hooks.c: Include "readline/readline.h" after X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a1bcc8c13723e35a611eef9ad475791a3d4387b;p=binutils-gdb.git * tui/tui-hooks.c: Include "readline/readline.h" after "gdb_curses.h" instead of before. * tui/tui-io.c: Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 323696f23ff..228ba9c3970 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2004-04-09 Mark Kettenis + * tui/tui-hooks.c: Include "readline/readline.h" after + "gdb_curses.h" instead of before. + * tui/tui-io.c: Likewise. + * tui/tui.c: Fix typo in comment. * sparc64-tdep.c (sparc_address_from_register): Remove function. diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c index a864be28276..a3a80dd51be 100644 --- a/gdb/tui/tui-hooks.c +++ b/gdb/tui/tui-hooks.c @@ -35,7 +35,6 @@ #include "gdb-events.h" #include "ui-out.h" #include "top.h" -#include "readline/readline.h" #include #include @@ -52,6 +51,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 tui_target_has_run = 0; static void (* tui_target_new_objfile_chain) (struct objfile*); diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c index addb3b003c4..a91a416900e 100644 --- a/gdb/tui/tui-io.c +++ b/gdb/tui/tui-io.c @@ -29,7 +29,6 @@ #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 +44,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) {