From: Jim Kingdon Date: Fri, 3 Sep 1993 16:27:35 +0000 (+0000) Subject: * elfread.c (elf_symtab_read): Don't add symbols starting with ".L" X-Git-Tag: gdb-4_18~17543 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ec3ba257bf03f079136883fc9fc6fa260291946;p=thirdparty%2Fbinutils-gdb.git * elfread.c (elf_symtab_read): Don't add symbols starting with ".L" to minimal symbols. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4c19a3dad63..e747bc81821 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Fri Sep 3 08:57:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + * elfread.c (elf_symtab_read): Don't add symbols starting with ".L" + to minimal symbols. + * target.c (pop_target): Don't try to deal with the stack becoming empty. Shouldn't happen and the code that tried was broken. diff --git a/gdb/elfread.c b/gdb/elfread.c index 0c8e050ca7d..bab5735a6a6 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -278,6 +278,9 @@ elf_symtab_read (abfd, addr, objfile) { ms_type = mst_text; } + else if (sym->name[0] == '.' && sym->name[1] == 'L') + /* Looks like a compiler-generated label. Skip it. */ + continue; else { ms_type = mst_file_text;