2001-03-06 J.T. Conklin <jtc@redback.com>
authorJ.T. Conklin <jtc@acorntoolworks.com>
Wed, 7 Mar 2001 02:57:08 +0000 (02:57 +0000)
committerJ.T. Conklin <jtc@acorntoolworks.com>
Wed, 7 Mar 2001 02:57:08 +0000 (02:57 +0000)
        * symtab.h (decode_line_1): Removed declaration.

        * symfile.c (#include <assert.h>): Removed.

        * arch-utils.c (#include <ctype.h>): Removed.
        * c-typeprint.c: Likewise.
        * dbxread.c: Likewise.
        * gdbtypes.c: Likewise.
        * target.c: Likewise.
        * os9kread.c: Likewise.

        * c-valprint.c (#include "demangle.h"): Removed.
        * ch-typeprint.c: Likewise.
        * eval.c: Likewise.
        * f-typeprint.c: Likewise.
        * f-valprint.c: Likewise.
        * m2-typeprint.c: Likewise.
        * typeprint.c: Likewise.
        * p-typeprint.c: Likewise.
        * valarith.c: Likewise.
        * valprint.c: Likewise.

        * m2-typeprint.c (#include "gdb_string.h"): Removed.
        * nlmread.c: Likewise.

        * mdebugread.c (#include "gdb-stabs.h"): Removed.
        * minsyms.c: Likewise.
        * mipsread.c: Likewise.
        * nlmread.c: Likewise.

        * m2-typeprint.c (#include "obstack.h"): Removed.
        * m2-valprint.c: Likewise.

        * event-loop.c (#include <setjmp.h>): Removed.

28 files changed:
gdb/ChangeLog
gdb/Makefile.in
gdb/arch-utils.c
gdb/c-typeprint.c
gdb/c-valprint.c
gdb/ch-typeprint.c
gdb/dbxread.c
gdb/defs.h
gdb/eval.c
gdb/event-loop.c
gdb/f-typeprint.c
gdb/f-valprint.c
gdb/gdbtypes.c
gdb/m2-typeprint.c
gdb/m2-valprint.c
gdb/mdebugread.c
gdb/minsyms.c
gdb/mipsread.c
gdb/nlmread.c
gdb/os9kread.c
gdb/p-typeprint.c
gdb/symfile.c
gdb/symtab.h
gdb/target.c
gdb/typeprint.c
gdb/utils.c
gdb/valarith.c
gdb/valprint.c

index 89992563f4122197c66789abbfa3790124e08b13..6f5b6cf55e71b4282cf1705638a8508cc2854ea2 100644 (file)
@@ -1,3 +1,40 @@
+2001-03-06  J.T. Conklin  <jtc@redback.com>
+
+       * symtab.h (decode_line_1): Removed declaration.
+
+       * symfile.c (#include <assert.h>): Removed.
+
+       * arch-utils.c (#include <ctype.h>): Removed.
+       * c-typeprint.c: Likewise.
+       * dbxread.c: Likewise.
+       * gdbtypes.c: Likewise.
+       * target.c: Likewise.
+       * os9kread.c: Likewise.
+
+       * c-valprint.c (#include "demangle.h"): Removed.
+       * ch-typeprint.c: Likewise.
+       * eval.c: Likewise.
+       * f-typeprint.c: Likewise.
+       * f-valprint.c: Likewise.
+       * m2-typeprint.c: Likewise.
+       * typeprint.c: Likewise.
+       * p-typeprint.c: Likewise.
+       * valarith.c: Likewise.
+       * valprint.c: Likewise.
+
+       * m2-typeprint.c (#include "gdb_string.h"): Removed.
+       * nlmread.c: Likewise.
+
+       * mdebugread.c (#include "gdb-stabs.h"): Removed.
+       * minsyms.c: Likewise.
+       * mipsread.c: Likewise.
+       * nlmread.c: Likewise.
+
+       * m2-typeprint.c (#include "obstack.h"): Removed.
+       * m2-valprint.c: Likewise.
+
+       * event-loop.c (#include <setjmp.h>): Removed.
+
 2001-03-06  Stan Shebs  <shebs@apple.com>
 
        * MAINTAINERS: Remove self from specific maintenance domains
index 536af332f930bfc1bca590f11582b7e8412c5e26..f70a5f972f08295db475d1566dc96ab59bdf2b4e 100644 (file)
@@ -361,7 +361,9 @@ VERSION = 5.0
 DIST=gdb
 
 LINT=/usr/5bin/lint
-LINTFLAGS= $(BFD_CFLAGS)
+LINTFLAGS= $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
+       $(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS) \
+       $(INTL_CFLAGS)
 
 RUNTEST = `if [ -f $${rootsrc}/../dejagnu/runtest ] ; then \
                echo $${rootsrc}/../dejagnu/runtest ; else echo runtest; \
@@ -1110,6 +1112,9 @@ lint: $(LINTFILES)
        $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \
           `echo $(DEPFILES) | sed 's/\.o /\.c /g'`
 
+flint:  $(filter-out %.y,$(LINTFILES)) $(DEPFILES:.c=.o)
+       flint co.lnt $(LINTFLAGS) $^
+
 gdb.cxref: $(SFILES)
        cxref -I. $(SFILES) >gdb.cxref
 
index 152004ee71540fc26b79ed337ead59ee098a2a24..bfa548b5f951420d7257178ea6a9862ba6a2fa1d 100644 (file)
@@ -27,7 +27,6 @@
 /* Just include everything in sight so that the every old definition
    of macro is visible. */
 #include "gdb_string.h"
-#include <ctype.h>
 #include "symtab.h"
 #include "frame.h"
 #include "inferior.h"
index d9bf8a339e8e9197222de6aeaf07c103eb442153..bdc5a689ee1dc8ffed41c421399d839102dad529 100644 (file)
@@ -38,7 +38,6 @@
 
 #include "gdb_string.h"
 #include <errno.h>
-#include <ctype.h>
 
 /* Flag indicating target was compiled by HP compiler */
 extern int hp_som_som_object_present;
index 914b32d47a2d499b510e0b25c4205159be6a8963..a4bcfb43ca60fe33d4c4e5d2842ce9354579cb52 100644 (file)
@@ -25,7 +25,6 @@
 #include "gdbtypes.h"
 #include "expression.h"
 #include "value.h"
-#include "demangle.h"
 #include "valprint.h"
 #include "language.h"
 #include "c-lang.h"
index a5a001ca5c52495d38a2c0e249b7dc7760cd6a52..c217d2baa9e9f7319b17622dc61e09d56e9c4062 100644 (file)
@@ -31,7 +31,6 @@
 #include "command.h"
 #include "gdbcmd.h"
 #include "language.h"
-#include "demangle.h"
 #include "ch-lang.h"
 #include "typeprint.h"
 
index 6ad1e6dfbfb1c2fdb1d4033870f186e6ad433910..56a1ccddf2db614375ebec55bb5a7277f887da40 100644 (file)
@@ -44,7 +44,6 @@
 
 #include "obstack.h"
 #include "gdb_stat.h"
-#include <ctype.h>
 #include "symtab.h"
 #include "breakpoint.h"
 #include "command.h"
index 03642e30ef54e7597935de7737a632c06dc2bdb3..6974fe285079fb1a1975bccbab12260c2abb3876 100644 (file)
@@ -821,9 +821,9 @@ extern int longest_to_int (LONGEST);
 /* Assorted functions we can declare, now that const and volatile are 
    defined.  */
 
-extern char *savestring (const char *, int);
+extern char *savestring (const char *, size_t);
 
-extern char *msavestring (void *, const char *, int);
+extern char *msavestring (void *, const char *, size_t);
 
 extern char *mstrsave (void *, const char *);
 
index 285d1d18704fe9e769267aa81702e15ee99520a4..71cd9282fecbebd94f1c291f68aa71dffde5aad8 100644 (file)
@@ -28,7 +28,6 @@
 #include "expression.h"
 #include "target.h"
 #include "frame.h"
-#include "demangle.h"
 #include "language.h"          /* For CAST_IS_CONVERSION */
 #include "f-lang.h"            /* for array bound stuff */
 
index 0a2078c6d1aebad0304aec23195afb591038acde..0983fd34c46f86d968c94b68b50cd2102c568b71 100644 (file)
@@ -35,7 +35,6 @@
 #include <sys/types.h>
 #include "gdb_string.h"
 #include <errno.h>
-#include <setjmp.h>
 #include <sys/time.h>
 
 /* Type of the mask arguments to select. */
index 70da8f9a516ca86f9dde8d81bdff0b1b0844ced2..944b97d711b5eb402a0eb2dcdb14011ed0791100 100644 (file)
@@ -33,7 +33,6 @@
 #include "command.h"
 #include "gdbcmd.h"
 #include "language.h"
-#include "demangle.h"
 #include "f-lang.h"
 #include "typeprint.h"
 #include "frame.h"             /* ??? */
index a70a47c0b7ab75370701ca54f18c165cf505f030..48c511377e8ee3a95164f34f2cb79d770ffc87d4 100644 (file)
@@ -27,7 +27,6 @@
 #include "gdbtypes.h"
 #include "expression.h"
 #include "value.h"
-#include "demangle.h"
 #include "valprint.h"
 #include "language.h"
 #include "f-lang.h"
index d97ba1bec79eae6bfe9961e2eb7e02837d547150..73966f06d91ddbf3337cb046ae7e1f6325fcd1bb 100644 (file)
@@ -1165,7 +1165,6 @@ check_typedef (register struct type *type)
 }
 
 /* New code added to support parsing of Cfront stabs strings */
-#include <ctype.h>
 #define INIT_EXTRA { pextras->len=0; pextras->str[0]='\0'; }
 #define ADD_EXTRA(c) { pextras->str[pextras->len++]=c; }
 
index 1a36f88b2a966f6deb83703ab1b14895c3a2377a..d2988cf6c2d2b4c3a3bdf105b916ace48b3a347f 100644 (file)
@@ -20,7 +20,6 @@
    Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
-#include "obstack.h"
 #include "bfd.h"               /* Binary File Description */
 #include "symtab.h"
 #include "gdbtypes.h"
 #include "command.h"
 #include "gdbcmd.h"
 #include "language.h"
-#include "demangle.h"
 #include "m2-lang.h"
-
-#include "gdb_string.h"
 #include <errno.h>
 
 void
index ad2447e964ec30753837fbb51b54d7cd7344f7a6..4613d4b3b1202b8ce13098ad2bb6c1e6c377d6a8 100644 (file)
@@ -20,7 +20,6 @@
    Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
-#include "obstack.h"
 #include "symtab.h"
 #include "gdbtypes.h"
 #include "valprint.h"
index cb4a298377c5136419fce37c8fade122e55e6baa..401a09ee086a76d47d147d79cbff8209b2727dfd 100644 (file)
@@ -79,8 +79,6 @@ typedef struct mips_extra_func_info
 #include "gdb_stat.h"
 #include "gdb_string.h"
 
-#include "gdb-stabs.h"
-
 #include "bfd.h"
 
 #include "coff/ecoff.h"                /* COFF-like aspects of ecoff files */
index 3292096915f6c25ca973469099876c9297f4780e..7608297a8e89791bafea25a9d80c7b9c4e1c3302 100644 (file)
@@ -47,7 +47,6 @@
 #include "symfile.h"
 #include "objfiles.h"
 #include "demangle.h"
-#include "gdb-stabs.h"
 
 /* Accumulate the minimal symbols for each objfile in bunches of BUNCH_SIZE.
    At the end, copy them all into one newly allocated location on an objfile's
index e478532406e8a64d7196939768f8178c360aa3cf..dac06fc001dc690b1586acf0ef0c283a03c8a7f0 100644 (file)
@@ -33,7 +33,6 @@
 #include "objfiles.h"
 #include "buildsym.h"
 #include "stabsread.h"
-#include "gdb-stabs.h"
 
 #include "coff/sym.h"
 #include "coff/internal.h"
index ffc1c697cb0d9eab96d2b0110d194ba8a20a090d..0baf177ffb0c4fff2f4fc818b41872f29e6922db 100644 (file)
    Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
-#include "gdb_string.h"
 #include "bfd.h"
 #include "symtab.h"
 #include "symfile.h"
 #include "objfiles.h"
-#include "gdb-stabs.h"
 #include "buildsym.h"
 #include "stabsread.h"
 
index 0ca4d456cf007baebc1b514e47f7d63227536ba7..8dcf2519e2f7618061beca201ed9b6f2af5e705f 100644 (file)
@@ -46,7 +46,6 @@
 
 #include "obstack.h"
 #include "gdb_stat.h"
-#include <ctype.h>
 #include "symtab.h"
 #include "breakpoint.h"
 #include "command.h"
index df3553127a2183b6e869555431ef8a59122de19f..2f7ac59778cae3fa562babcdec3e9b9b83d94c1e 100644 (file)
@@ -32,7 +32,6 @@
 #include "command.h"
 #include "gdbcmd.h"
 #include "language.h"
-#include "demangle.h"
 #include "p-lang.h"
 #include "typeprint.h"
 
index 49ae314a389bb1d8c6e705ac7113745498442cb3..111a51b26ab6f23a201188f4804c8b810b54c8c2 100644 (file)
@@ -39,7 +39,6 @@
 #include "obstack.h"
 #include "completer.h"
 
-#include <assert.h>
 #include <sys/types.h>
 #include <fcntl.h>
 #include "gdb_string.h"
index ae352b959a4c18b870ff093da9d979ce10030d59..a4f224d68725d1976118fe28907e2bb3960a6458 100644 (file)
@@ -1347,11 +1347,6 @@ extern struct symtabs_and_lines decode_line_spec (char *, int);
 
 extern struct symtabs_and_lines decode_line_spec_1 (char *, int);
 
-/* From linespec.c */
-
-extern struct symtabs_and_lines decode_line_1 (char **,
-                                          int, struct symtab *, int, char ***);
-
 /* Symmisc.c */
 
 void maintenance_print_symbols (char *, int);
index 400199a2c90455af2cbc42733c6fee8664b5716b..f21518ff04de4ad8a437227e046e640981195870 100644 (file)
@@ -22,7 +22,6 @@
 
 #include "defs.h"
 #include <errno.h>
-#include <ctype.h>
 #include "gdb_string.h"
 #include "target.h"
 #include "gdbcmd.h"
index 0ca5185348167ce9b7348bd0f6cf71de0f7aa7c9..444c78b7bfdaf0c18df2f93626823ff15b2b0297 100644 (file)
@@ -31,7 +31,6 @@
 #include "gdbcmd.h"
 #include "target.h"
 #include "language.h"
-#include "demangle.h"
 
 #include "gdb_string.h"
 #include <errno.h>
index 79536de3085188427c4c18003e4b0df46f4318cd..df6046a93e66d3b0f4ec939551de63a8f40c8a28 100644 (file)
@@ -1155,7 +1155,7 @@ myread (int desc, char *addr, int len)
    Uses malloc to get the space.  Returns the address of the copy.  */
 
 char *
-savestring (const char *ptr, int size)
+savestring (const char *ptr, size_t size)
 {
   register char *p = (char *) xmalloc (size + 1);
   memcpy (p, ptr, size);
@@ -1164,7 +1164,7 @@ savestring (const char *ptr, int size)
 }
 
 char *
-msavestring (void *md, const char *ptr, int size)
+msavestring (void *md, const char *ptr, size_t size)
 {
   register char *p = (char *) xmmalloc (md, size + 1);
   memcpy (p, ptr, size);
index 7cfa33a5687e2698c4e4278b61fe5ec4a2094f17..aaa393f4b100650da62655a2c67e406408eb3a92 100644 (file)
@@ -27,7 +27,6 @@
 #include "expression.h"
 #include "target.h"
 #include "language.h"
-#include "demangle.h"
 #include "gdb_string.h"
 #include <math.h>
 
index b073308da5fa871bc61ea9a19003672ac0e71603..2a80b9c7c0ab33e735f31c4391088f458329d33f 100644 (file)
@@ -30,7 +30,6 @@
 #include "target.h"
 #include "obstack.h"
 #include "language.h"
-#include "demangle.h"
 #include "annotate.h"
 #include "valprint.h"