aboutsummaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r--gdb/mdebugread.c11
1 files changed, 9 insertions, 2 deletions
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