From 677183693dd3fd755dfa0f2b46a6da1ef9549c1e Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Tue, 19 Mar 1996 20:50:13 +0000 Subject: [PATCH] * partial-stab.h (case N_ENDM): Finish current partial symbol table for Solaris 2 cc. --- gdb/ChangeLog | 5 +++++ gdb/partial-stab.h | 20 +++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 68e3973a139..dd56e546180 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * partial-stab.h (case N_ENDM): Finish current partial symbol + table for Solaris 2 cc. + Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com) * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index 988ef0e08f0..a91811d2407 100644 --- a/gdb/partial-stab.h +++ b/gdb/partial-stab.h @@ -714,6 +714,25 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #endif /* DBXREAD_ONLY */ continue; + case N_ENDM: +#ifdef SOFUN_ADDRESS_MAYBE_MISSING + /* Solaris 2 end of module, finish current partial symbol table. + END_PSYMTAB will set pst->texthigh to the proper value, which + is necessary if a module compiled without debugging info + follows this module. */ + if (pst) + { + END_PSYMTAB (pst, psymtab_include_list, includes_used, + symnum * symbol_size, + (CORE_ADDR) 0, + dependency_list, dependencies_used); + pst = (struct partial_symtab *) 0; + includes_used = 0; + dependencies_used = 0; + } +#endif + continue; + case N_RBRAC: #ifdef HANDLE_RBRAC HANDLE_RBRAC(CUR_SYMBOL_VALUE); @@ -742,7 +761,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ case N_OBJ: /* useless types from Solaris */ case N_OPT: - case N_ENDM: /* These symbols aren't interesting; don't worry about them */ continue; -- 2.30.2