* mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols

to process_one_symbol.
	* symtab.c (find_pc_psymbol):  Search global_psymbols as well to
	avoid caching a bad endaddr in find_pc_partial_function.
This commit is contained in:
Peter Schauer
1994-01-03 10:50:26 +00:00
parent d568b76ab7
commit ae5c71d6c1
2 changed files with 16 additions and 2 deletions

View File

@@ -2705,8 +2705,15 @@ psymtab_to_symtab_1 (pst, filename)
if (ECOFF_IS_STAB (&sh))
{
int type_code = ECOFF_UNMARK_STAB (sh.index);
process_one_symbol (type_code, 0, valu, name,
pst->section_offsets, pst->objfile);
/* We should never get non N_STAB symbols here, but they
should be harmless, so keep process_one_symbol from
complaining about them. */
if (type_code & N_STAB)
{
process_one_symbol (type_code, 0, valu, name,
pst->section_offsets, pst->objfile);
}
if (type_code == N_FUN)
{
/* Make up special symbol to contain