aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2009-11-13 22:47:13 +0000
committerDaniel Jacobowitz <drow@false.org>2009-11-13 22:47:13 +0000
commita103a963e04564e150dbcba4aaeae493693fbc16 (patch)
treeaae982484af137ada80668038423f87166419eb4 /gdb/elfread.c
parent3a29589aa25e5621af389dd5f6245d83d3a8266c (diff)
downloadgdb-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.c6
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