aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-02-08 15:54:32 +0000
committerDaniel Jacobowitz <drow@false.org>2002-02-08 15:54:32 +0000
commit4e8f7a8b2731c2e29031ec1b6796f5688935573d (patch)
treea661726e19d7104edfb95f8fd54111c3eed18b0a /gdb/tui
parent5e37cc467605bb1dc2e791806b55a3ca52702d99 (diff)
downloadgdb-4e8f7a8b2731c2e29031ec1b6796f5688935573d.zip
gdb-4e8f7a8b2731c2e29031ec1b6796f5688935573d.tar.gz
gdb-4e8f7a8b2731c2e29031ec1b6796f5688935573d.tar.bz2
2002-02-08 Daniel Jacobowitz <drow@mvista.com>
* utils.c: Include <curses.h> 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.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-hooks.c10
-rw-r--r--gdb/tui/tui.c10
-rw-r--r--gdb/tui/tuiCommand.c10
-rw-r--r--gdb/tui/tuiData.c10
-rw-r--r--gdb/tui/tuiDataWin.c10
-rw-r--r--gdb/tui/tuiDisassem.c10
-rw-r--r--gdb/tui/tuiGeneralWin.c10
-rw-r--r--gdb/tui/tuiIO.c10
-rw-r--r--gdb/tui/tuiLayout.c10
-rw-r--r--gdb/tui/tuiRegs.c10
-rw-r--r--gdb/tui/tuiSource.c10
-rw-r--r--gdb/tui/tuiSourceWin.c10
-rw-r--r--gdb/tui/tuiStack.c10
-rw-r--r--gdb/tui/tuiWin.c10
14 files changed, 140 insertions, 0 deletions
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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#endif
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#endif
+#endif
+
#include "defs.h"
#include <ctype.h>
#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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#endif
+#endif
+
#include <stdio.h>
#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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#endif
+#endif
+
#include "defs.h"
#include <ctype.h>
#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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#endif
+#endif
+
#include "defs.h"
#include <ctype.h>
#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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#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 <curses.h>, we must include it before we get "bfd.h". */
+#include "config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#endif
+#endif
+
#include <string.h>
#include <ctype.h>
#include "defs.h"