From: Michael Snyder Date: Thu, 17 Jul 1997 18:45:11 +0000 (+0000) Subject: Thu Jul 17 11:38:46 1997 Michael Snyder (msnyder@cleaver.cygnus.com) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3822bab9fa8dcd12f55cda701d744cf0f4dad40b;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1ee2c2b5dea..e5357c1974c 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 24ff492167a..970676fa720 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 */