aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/elfread.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 714b8af..189b026 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
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