aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-09-20 18:13:28 +0000
committerJohn Gilmore <gnu@cygnus>1991-09-20 18:13:28 +0000
commitc2536607c63032261c1269387fefec6985cd6a70 (patch)
tree2a195ed067ddbf0c5c882b58c6ccf0175babaae0 /gdb/symtab.c
parentabc52b8069d7d39c10e97582c7c08037631f383e (diff)
downloadgdb-c2536607c63032261c1269387fefec6985cd6a70.zip
gdb-c2536607c63032261c1269387fefec6985cd6a70.tar.gz
gdb-c2536607c63032261c1269387fefec6985cd6a70.tar.bz2
* 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.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 440d14a..cb4d2d2 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))