From 4e8f7a8b2731c2e29031ec1b6796f5688935573d Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 8 Feb 2002 15:54:32 +0000 Subject: [PATCH] 2002-02-08 Daniel Jacobowitz * utils.c: Include before "bfd.h". * tui/tui-hooks.c: Likewise. * tui/tui.c: Likewise. * tui/tuiCommand.c: Likewise. * tui/tuiData.c: Likewise. * tui/tuiDataWin.c: Likewise. * tui/tuiDisassem.c: Likewise. * tui/tuiGeneralWin.c: Likewise. * tui/tuiIO.c: Likewise. * tui/tuiLayout.c: Likewise. * tui/tuiRegs.c: Likewise. * tui/tuiSource.c: Likewise. * tui/tuiSourceWin.c: Likewise. * tui/tuiStack.c: Likewise. * tui/tuiWin.c: Likewise. --- gdb/ChangeLog | 18 ++++++++++++++++++ gdb/tui/tui-hooks.c | 10 ++++++++++ gdb/tui/tui.c | 10 ++++++++++ gdb/tui/tuiCommand.c | 10 ++++++++++ gdb/tui/tuiData.c | 10 ++++++++++ gdb/tui/tuiDataWin.c | 10 ++++++++++ gdb/tui/tuiDisassem.c | 10 ++++++++++ gdb/tui/tuiGeneralWin.c | 10 ++++++++++ gdb/tui/tuiIO.c | 10 ++++++++++ gdb/tui/tuiLayout.c | 10 ++++++++++ gdb/tui/tuiRegs.c | 10 ++++++++++ gdb/tui/tuiSource.c | 10 ++++++++++ gdb/tui/tuiSourceWin.c | 10 ++++++++++ gdb/tui/tuiStack.c | 10 ++++++++++ gdb/tui/tuiWin.c | 10 ++++++++++ gdb/utils.c | 14 +++++++++----- 16 files changed, 167 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6ec89e9..0f82fe7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,21 @@ +2002-02-08 Daniel Jacobowitz + + * utils.c: Include before "bfd.h". + * tui/tui-hooks.c: Likewise. + * tui/tui.c: Likewise. + * tui/tuiCommand.c: Likewise. + * tui/tuiData.c: Likewise. + * tui/tuiDataWin.c: Likewise. + * tui/tuiDisassem.c: Likewise. + * tui/tuiGeneralWin.c: Likewise. + * tui/tuiIO.c: Likewise. + * tui/tuiLayout.c: Likewise. + * tui/tuiRegs.c: Likewise. + * tui/tuiSource.c: Likewise. + * tui/tuiSourceWin.c: Likewise. + * tui/tuiStack.c: Likewise. + * tui/tuiWin.c: Likewise. + 2002-02-07 Elena Zannoni * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c index a7f24d3..38cfc57 100644 --- a/gdb/tui/tui-hooks.c +++ b/gdb/tui/tui-hooks.c @@ -18,6 +18,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include "defs.h" #include "symtab.h" #include "inferior.h" diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 930ae26..18d706f 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -19,6 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include #include #include diff --git a/gdb/tui/tuiCommand.c b/gdb/tui/tuiCommand.c index 0f5a66d..fd868e2 100644 --- a/gdb/tui/tuiCommand.c +++ b/gdb/tui/tuiCommand.c @@ -19,6 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include "defs.h" #include #include "tui.h" diff --git a/gdb/tui/tuiData.c b/gdb/tui/tuiData.c index 5194eff..256f694 100644 --- a/gdb/tui/tuiData.c +++ b/gdb/tui/tuiData.c @@ -19,6 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include "defs.h" #include "tui.h" #include "tuiData.h" diff --git a/gdb/tui/tuiDataWin.c b/gdb/tui/tuiDataWin.c index b67aeac..cb670ed 100644 --- a/gdb/tui/tuiDataWin.c +++ b/gdb/tui/tuiDataWin.c @@ -19,6 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include "defs.h" #include "tui.h" #include "tuiData.h" diff --git a/gdb/tui/tuiDisassem.c b/gdb/tui/tuiDisassem.c index f7c3c6b..2cab1be 100644 --- a/gdb/tui/tuiDisassem.c +++ b/gdb/tui/tuiDisassem.c @@ -19,6 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include "defs.h" #include "symtab.h" #include "breakpoint.h" diff --git a/gdb/tui/tuiGeneralWin.c b/gdb/tui/tuiGeneralWin.c index 8ec54fe..b6d84e4 100644 --- a/gdb/tui/tuiGeneralWin.c +++ b/gdb/tui/tuiGeneralWin.c @@ -19,6 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include "defs.h" #include "tui.h" #include "tuiData.h" diff --git a/gdb/tui/tuiIO.c b/gdb/tui/tuiIO.c index ad8a53a..31e7c23 100644 --- a/gdb/tui/tuiIO.c +++ b/gdb/tui/tuiIO.c @@ -19,6 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include #include "defs.h" #include "terminal.h" diff --git a/gdb/tui/tuiLayout.c b/gdb/tui/tuiLayout.c index 3626e52..0613178 100644 --- a/gdb/tui/tuiLayout.c +++ b/gdb/tui/tuiLayout.c @@ -19,6 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include "defs.h" #include "command.h" #include "symtab.h" diff --git a/gdb/tui/tuiRegs.c b/gdb/tui/tuiRegs.c index f93d2b9..dc684fd 100644 --- a/gdb/tui/tuiRegs.c +++ b/gdb/tui/tuiRegs.c @@ -19,6 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include "defs.h" #include "tui.h" #include "tuiData.h" diff --git a/gdb/tui/tuiSource.c b/gdb/tui/tuiSource.c index 5dc5ade..3ad71bc 100644 --- a/gdb/tui/tuiSource.c +++ b/gdb/tui/tuiSource.c @@ -19,6 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include "defs.h" #include #include "symtab.h" diff --git a/gdb/tui/tuiSourceWin.c b/gdb/tui/tuiSourceWin.c index 388ec3e..3deac19 100644 --- a/gdb/tui/tuiSourceWin.c +++ b/gdb/tui/tuiSourceWin.c @@ -19,6 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include "defs.h" #include #include "symtab.h" diff --git a/gdb/tui/tuiStack.c b/gdb/tui/tuiStack.c index 501252c..9b664ed 100644 --- a/gdb/tui/tuiStack.c +++ b/gdb/tui/tuiStack.c @@ -19,6 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include "defs.h" #include "symtab.h" #include "breakpoint.h" diff --git a/gdb/tui/tuiWin.c b/gdb/tui/tuiWin.c index 3611a08..b5b6d6d 100644 --- a/gdb/tui/tuiWin.c +++ b/gdb/tui/tuiWin.c @@ -24,6 +24,16 @@ Author: Susan B. Macchia */ +/* If we need , we must include it before we get "bfd.h". */ +#include "config.h" +#ifdef HAVE_NCURSES_H +#include +#else +#ifdef HAVE_CURSES_H +#include +#endif +#endif + #include #include #include "defs.h" diff --git a/gdb/utils.c b/gdb/utils.c index 34b660d..db21d34 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -20,12 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "defs.h" -#include "gdb_assert.h" -#include -#include "gdb_string.h" -#include "event-top.h" +#include "config.h" +/* Include before "bfd.h" so that we get stdbool.h in time, if + brings it in. */ #ifdef HAVE_CURSES_H #include #endif @@ -33,6 +31,12 @@ #include #endif +#include "defs.h" +#include "gdb_assert.h" +#include +#include "gdb_string.h" +#include "event-top.h" + #ifdef __GO32__ #include #endif -- 2.7.4