* mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols
authorPeter Schauer <Peter.Schauer@mytum.de>
Mon, 3 Jan 1994 10:50:26 +0000 (10:50 +0000)
committerPeter Schauer <Peter.Schauer@mytum.de>
Mon, 3 Jan 1994 10:50:26 +0000 (10:50 +0000)
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.

gdb/ChangeLog
gdb/mdebugread.c

index b37d023da1fe129fbd3389119b4cc9146dd14c28..9eb77b6886723cec817285dd0fea0c2e40b2252e 100644 (file)
@@ -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.
index a1193c132a3cb881e5124e60dbeb18c4696ff83d..bbeb66dcc634d7f8ae60bb21040ad4e40ebce90f 100644 (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