* elfread.c (elf_symtab_read): Fix a bug ignoring compiler
authorKung Hsu <kung@cygnus>
Fri, 7 Jul 1995 21:44:57 +0000 (21:44 +0000)
committerKung Hsu <kung@cygnus>
Fri, 7 Jul 1995 21:44:57 +0000 (21:44 +0000)
        generated internal labels ($LM...).

gdb/elfread.c

index a4d4f72eedaddc20b9c9ac16147e60a5d35a8c6e..0425c01ce42a53a7ce6d1fed0e6c515e1882291e 100644 (file)
@@ -401,7 +401,7 @@ elf_symtab_read (abfd, addr, objfile, dynamic)
                    }
                  else if ((sym->name[0] == '.' && sym->name[1] == 'L')
                           || ((sym -> flags & BSF_LOCAL)
-                              && sym->name[0] == 'L'
+                              && sym->name[0] == '$'
                               && sym->name[1] == 'L'))
                    /* Looks like a compiler-generated label.  Skip it.
                       The assembler should be skipping these (to keep