From 3ae444f84469bc94f3cde435e2ea3945ad33816b Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Fri, 22 Nov 1991 20:44:50 +0000 Subject: [PATCH] SCO lint. --- gdb/ChangeLog | 5 ++++- gdb/buildsym.c | 2 +- gdb/coredep.c | 6 +++--- gdb/xcoffread.c | 3 +-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 095b26f4ab9..d3878ad51ae 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,6 +1,9 @@ Fri Nov 22 08:27:40 1991 John Gilmore (gnu at cygnus.com) - * infptrace.c, language.h: Lint. + * buildsym.c, coredep.c, mem-break.c, xcoffread.c: Put + first, before defs.h. + * config/mh-i386sco: Override compiler to gcc, print warning. + * infptrace.c, language.h, utils.c: Lint. * m2-exp.y: #undef MAX and MIN in case system includes set them. * xm-tahoe.h: Set HOST_BYTE_ORDER. Include system versions of {BIG,LITTLE}_ENDIAN and the INT_MAX family first, to avoid diff --git a/gdb/buildsym.c b/gdb/buildsym.c index 151048499ba..83e2608e8eb 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -24,6 +24,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ They originated in dbxread.c of gdb-4.2, and were split out to make xcoffread.c more maintainable by sharing code. */ +#include #include "defs.h" #include "obstack.h" #include "symtab.h" @@ -31,7 +32,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "gdbcore.h" /* for bfd stuff for symfile.h */ #include "symfile.h" /* Needed for "struct complaint" */ #include "stab.gnu.h" /* We always use GNU stabs, not native */ -#include #include #include diff --git a/gdb/coredep.c b/gdb/coredep.c index bb26b081e17..22d3c6aaf4a 100644 --- a/gdb/coredep.c +++ b/gdb/coredep.c @@ -20,13 +20,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* core.c is supposed to be the more machine-independent aspects of this; this file is more machine-specific. */ +#include +#include +#include #include "defs.h" #include "gdbcore.h" -#include /* These are needed on various systems to expand REGISTER_U_ADDR. */ -#include -#include #ifndef USG #include #include diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 44ce2fa4de3..7956d9d464a 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -19,11 +19,10 @@ 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include #include "defs.h" #include "bfd.h" -#include - /* AIX COFF names have a preceeding dot `.' */ #define NAMES_HAVE_DOT 1 -- 2.30.2