2009-11-13 Maciej W. Rozycki <macro@codesourcery.com>
authorDaniel Jacobowitz <drow@false.org>
Fri, 13 Nov 2009 22:47:13 +0000 (22:47 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 13 Nov 2009 22:47:13 +0000 (22:47 +0000)
* elfread.c (elf_symtab_read): Only mark a minimal symbol as
special if it actually exists.  Merge the checks for this
conditions.

gdb/ChangeLog
gdb/elfread.c

index 714b8af..189b026 100644 (file)
@@ -1,3 +1,9 @@
+2009-11-13  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * elfread.c (elf_symtab_read): Only mark a minimal symbol as
+       special if it actually exists.  Merge the checks for this
+       conditions.
+
 2009-11-13  Kazu Hirata  <kazu@codesourcery.com>
            Maxim Kuvyrkov  <maxim@codesourcery.com>
 
index 29b7c0c..89089e3 100644 (file)
@@ -531,10 +531,10 @@ elf_symtab_read (struct objfile *objfile, int type,
 
              if (elf_sym)
                MSYMBOL_SIZE(msym) = elf_sym->internal_elf_sym.st_size;
+         
+             msym->filename = filesymname;
+             gdbarch_elf_make_msymbol_special (gdbarch, sym, msym);
            }
-         if (msym != NULL)
-           msym->filename = filesymname;
-         gdbarch_elf_make_msymbol_special (gdbarch, sym, msym);
 
          /* For @plt symbols, also record a trampoline to the
             destination symbol.  The @plt symbol will be used in