diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1994-01-03 10:50:26 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1994-01-03 10:50:26 +0000 |
commit | ae5c71d6c13dfadec2d7be265848b25f7d6ae8fa (patch) | |
tree | 02d043ab0886d36457a7120245c96b2df26b2fc0 | |
parent | d568b76ab7355aba3fc45b09961d2bec7dbb5a51 (diff) | |
download | gdb-ae5c71d6c13dfadec2d7be265848b25f7d6ae8fa.zip gdb-ae5c71d6c13dfadec2d7be265848b25f7d6ae8fa.tar.gz gdb-ae5c71d6c13dfadec2d7be265848b25f7d6ae8fa.tar.bz2 |
* 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.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/mdebugread.c | 11 |
2 files changed, 16 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b37d023..9eb77b6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +Mon Jan 3 02:47:03 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * 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. + Sun Jan 2 21:41:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com) * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION. diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index a1193c1..bbeb66d 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -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 |