* utils.c (!HAVE_VPRINTF): Define vfprintf as a function, so
authorJohn Gilmore <gnu@cygnus>
Fri, 20 Sep 1991 18:13:28 +0000 (18:13 +0000)
committerJohn Gilmore <gnu@cygnus>
Fri, 20 Sep 1991 18:13:28 +0000 (18:13 +0000)
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
gdb/symtab.c

index 21bae76..cf4b59f 100644 (file)
@@ -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.
index 440d14a..cb4d2d2 100644 (file)
@@ -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))