From 784fd92b3d3474bdace393b07d480fe6d8087111 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Wed, 8 Jul 1992 08:00:30 +0000 Subject: * dbxread.c (dbx_symfile_init): Init stab_section_info to NULL to prevent crashes when examining cross-targets. * dbxread.c (process_one_symbol): Include directory name when calling start_subfile for SOL & BINCL symbols. This allows gdb to find include files, and yacc/lex sources when the cwd doesn't match that in which the object was compiled. * objfiles.h (ALL_MSYMBOLS): Don't seg fault when there are no msymbols. * symtab.c (lookup_symtab_1): Rewrite. It now handles include files. --- gdb/objfiles.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/objfiles.h') diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 68bfd9a..53e6786 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -358,6 +358,7 @@ have_minimal_symbols PARAMS ((void)); #define ALL_MSYMBOLS(objfile, m) \ ALL_OBJFILES (objfile) \ - ALL_OBJFILE_MSYMBOLS (objfile, m) + if ((objfile)->msymbols) \ + ALL_OBJFILE_MSYMBOLS (objfile, m) #endif /* !defined (OBJFILES_H) */ -- cgit v1.1