diff options
author | Daniel Jacobowitz <drow@false.org> | 2009-11-13 22:47:13 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2009-11-13 22:47:13 +0000 |
commit | a103a963e04564e150dbcba4aaeae493693fbc16 (patch) | |
tree | aae982484af137ada80668038423f87166419eb4 /gdb/elfread.c | |
parent | 3a29589aa25e5621af389dd5f6245d83d3a8266c (diff) | |
download | gdb-a103a963e04564e150dbcba4aaeae493693fbc16.zip gdb-a103a963e04564e150dbcba4aaeae493693fbc16.tar.gz gdb-a103a963e04564e150dbcba4aaeae493693fbc16.tar.bz2 |
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.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index 29b7c0c..89089e3 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -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 |