From c2536607c63032261c1269387fefec6985cd6a70 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Fri, 20 Sep 1991 18:13:28 +0000 Subject: [PATCH] * utils.c (!HAVE_VPRINTF): Define vfprintf as a function, so language.c can use it. (Though language.c should really not be handling warnings/errors the way it does, FIXME.) * symtab.c (lookup_primitive_type): const lint. --- gdb/ChangeLog | 12 ++++++++++++ gdb/symtab.c | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 21bae76f0eb..cf4b59f6a38 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +Fri Sep 20 02:28:15 1991 John Gilmore (gnu at cygnus.com) + + * utils.c (!HAVE_VPRINTF): Define vfprintf as a function, so + language.c can use it. (Though language.c should really not be + handling warnings/errors the way it does, FIXME.) + * symtab.c (lookup_primitive_type): const lint. + + Bugfix from Peter Schauer: + * source.c (lines_to_list): Make signed, to avoid comparison + going unsigned and complaining that -3 is too high for 21 lines. + * stack.c (lines_to_list): Ditto. + Thu Sep 19 23:33:41 1991 John Gilmore (gnu at cygnus.com) * Makefile.in (HFILES): Add minimon.h. diff --git a/gdb/symtab.c b/gdb/symtab.c index 440d14ad02c..cb4d2d26ebc 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -192,7 +192,8 @@ type_name_no_tag (type) If this is a stubbed struct (i.e. declared as struct foo *), see if we can find a full definition in some other file. If so, copy this definition, so we can use it in future. If not, set a flag so we - don't waste too much time in future. + don't waste too much time in future. (FIXME, this doesn't seem + to be happening...) This used to be coded as a macro, but I don't think it is called often enough to merit such treatment. @@ -257,7 +258,7 @@ struct type * lookup_primitive_typename (name) char *name; { - struct type ***p; + struct type ** const *p; for (p = current_language->la_builtin_type_vector; *p; p++) if(!strcmp((**p)->name, name)) -- 2.30.2