diff options
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/partial-stab.h | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1ee2c2b..e5357c1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Thu Jul 17 11:38:46 1997 Michael Snyder (msnyder@cleaver.cygnus.com) + + * partial-stab.h (case N_BINCL): detect missing partial symtab. + * dbxread.c: Add a complaint for N_BINCL without a corresponding + partial symtab. Remove earlier change of 5/27/97. + Wed Jul 16 10:38:03 1997 Michael Snyder (msnyder@cleaver.cygnus.com) * sol-thread.c (sol_thread_[store, fetch]_registers): if diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index 24ff492..970676f 100644 --- a/gdb/partial-stab.h +++ b/gdb/partial-stab.h @@ -290,6 +290,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ || psymtab_language != language_cplus)) psymtab_language = tmp_language; + if (pst == NULL) + { + /* FIXME: we should not get here without a PST to work on. + Attempt to recover. */ + complain (&unclaimed_bincl_complaint, namestring, symnum); + continue; + } add_bincl_to_list (pst, namestring, CUR_SYMBOL_VALUE); /* Mark down an include file in the current psymtab */ |