diff options
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 6 |
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)); } } |