aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-05-04 23:15:02 +0000
committerJohn Gilmore <gnu@cygnus>1991-05-04 23:15:02 +0000
commit5594d534a24ff0e48806803376209d4b27ec8351 (patch)
tree27b7836ec8a38f69e68e3c864df90f364208160a /gdb/symtab.c
parentb1847ba9e7da744bb3695f9611dad4119cc7991e (diff)
downloadgdb-5594d534a24ff0e48806803376209d4b27ec8351.zip
gdb-5594d534a24ff0e48806803376209d4b27ec8351.tar.gz
gdb-5594d534a24ff0e48806803376209d4b27ec8351.tar.bz2
Saber C (lint) cleanups, and a few bug fixes. See ChangeLog.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 7427300..6ebea5e 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -27,6 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "value.h"
#include "symfile.h"
#include "gdbcmd.h"
+#include "regex.h"
#include <obstack.h>
#include <assert.h>
@@ -229,8 +230,9 @@ check_stub_type(type)
complain (&stub_noname_complaint, 0);
return;
}
- if (sym = lookup_symbol (name, 0, STRUCT_NAMESPACE, 0,
- (struct symtab **)NULL) )
+ sym = lookup_symbol (name, 0, STRUCT_NAMESPACE, 0,
+ (struct symtab **)NULL);
+ if (sym)
bcopy (SYMBOL_TYPE(sym), type, sizeof (struct type));
}
}