* 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.
This commit is contained in:
Stu Grossman
1992-07-08 08:00:30 +00:00
parent 179798e1e0
commit 784fd92b3d
4 changed files with 77 additions and 51 deletions

View File

@@ -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) */