* 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 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
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; \
$(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
/* 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"
#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;
#include "gdbtypes.h"
#include "expression.h"
#include "value.h"
-#include "demangle.h"
#include "valprint.h"
#include "language.h"
#include "c-lang.h"
#include "command.h"
#include "gdbcmd.h"
#include "language.h"
-#include "demangle.h"
#include "ch-lang.h"
#include "typeprint.h"
#include "obstack.h"
#include "gdb_stat.h"
-#include <ctype.h>
#include "symtab.h"
#include "breakpoint.h"
#include "command.h"
/* 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 *);
#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 */
#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. */
#include "command.h"
#include "gdbcmd.h"
#include "language.h"
-#include "demangle.h"
#include "f-lang.h"
#include "typeprint.h"
#include "frame.h" /* ??? */
#include "gdbtypes.h"
#include "expression.h"
#include "value.h"
-#include "demangle.h"
#include "valprint.h"
#include "language.h"
#include "f-lang.h"
}
/* 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; }
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
Boston, MA 02111-1307, USA. */
#include "defs.h"
-#include "obstack.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "valprint.h"
#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 */
#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
#include "objfiles.h"
#include "buildsym.h"
#include "stabsread.h"
-#include "gdb-stabs.h"
#include "coff/sym.h"
#include "coff/internal.h"
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"
#include "obstack.h"
#include "gdb_stat.h"
-#include <ctype.h>
#include "symtab.h"
#include "breakpoint.h"
#include "command.h"
#include "command.h"
#include "gdbcmd.h"
#include "language.h"
-#include "demangle.h"
#include "p-lang.h"
#include "typeprint.h"
#include "obstack.h"
#include "completer.h"
-#include <assert.h>
#include <sys/types.h>
#include <fcntl.h>
#include "gdb_string.h"
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);
#include "defs.h"
#include <errno.h>
-#include <ctype.h>
#include "gdb_string.h"
#include "target.h"
#include "gdbcmd.h"
#include "gdbcmd.h"
#include "target.h"
#include "language.h"
-#include "demangle.h"
#include "gdb_string.h"
#include <errno.h>
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);
}
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);
#include "expression.h"
#include "target.h"
#include "language.h"
-#include "demangle.h"
#include "gdb_string.h"
#include <math.h>
#include "target.h"
#include "obstack.h"
#include "language.h"
-#include "demangle.h"
#include "annotate.h"
#include "valprint.h"