aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-07-08 08:00:30 +0000
committerStu Grossman <grossman@cygnus>1992-07-08 08:00:30 +0000
commit784fd92b3d3474bdace393b07d480fe6d8087111 (patch)
treeb2566888529efe31bc34fecae1799f4d771cfd7f /gdb/objfiles.h
parent179798e1e0459d0fd00c93e080aa2745de53d7f4 (diff)
downloadgdb-784fd92b3d3474bdace393b07d480fe6d8087111.zip
gdb-784fd92b3d3474bdace393b07d480fe6d8087111.tar.gz
gdb-784fd92b3d3474bdace393b07d480fe6d8087111.tar.bz2
* 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.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h3
1 files changed, 2 insertions, 1 deletions
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) */