* mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
authorJim Kingdon <jkingdon@engr.sgi.com>
Fri, 28 Jan 1994 16:56:58 +0000 (16:56 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Fri, 28 Jan 1994 16:56:58 +0000 (16:56 +0000)
index indexNil.

gdb/ChangeLog
gdb/mdebugread.c

index 831c121cb61690ae6bfb9c2987ecee7b95e822c4..3448504d304dceb11b862096ed50e128eb70f916 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jan 28 08:45:02 1994  Jim Kingdon  (kingdon@deneb.cygnus.com)
+
+       * mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
+       index indexNil.
+
 Fri Jan 28 10:40:34 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
        * config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
index dd50a5e060965820a4884fb35c2b1f821ea1e8e1..352b4c4a8db5a487d557e5dd21bb37c8ef0e6ecf 100644 (file)
@@ -2748,10 +2748,17 @@ psymtab_to_symtab_1 (pst, filename)
                  add_symbol_to_list (s, &local_symbols);
                }
            }
-         else if (sh.st == stLabel && sh.index != indexNil)
+         else if (sh.st == stLabel)
            {
-             /* Handle encoded stab line number. */
-             record_line (current_subfile, sh.index, valu);
+             if (sh.index == indexNil)
+               {
+                 /* This is what the gcc2_compiled and __gnu_compiled_*
+                    show up as.  So don't complain.  */
+                 ;
+               }
+             else
+               /* Handle encoded stab line number. */
+               record_line (current_subfile, sh.index, valu);
            }
          else if (sh.st == stProc || sh.st == stStaticProc || sh.st == stEnd)
            /* These are generated by gcc-2.x, do not complain */