summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Cruaud2012-10-11 11:33:27 (EDT)
committer Eugene Tarassov2012-10-12 13:11:28 (EDT)
commit19c31740f445c28d16f8c86c0e57ab3d070d4355 (patch)
tree012ed6a54d0be6405f3f736c9ce0667b7afda204
parent0b2bce643b75619a7bcbd780567fddfc1f2723c8 (diff)
downloadorg.eclipse.tcf.agent-19c31740f445c28d16f8c86c0e57ab3d070d4355.zip
org.eclipse.tcf.agent-19c31740f445c28d16f8c86c0e57ab3d070d4355.tar.gz
org.eclipse.tcf.agent-19c31740f445c28d16f8c86c0e57ab3d070d4355.tar.bz2
fix lookup symbol table sections
-rw-r--r--agent/tcf/services/elf-symbols.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/tcf/services/elf-symbols.c b/agent/tcf/services/elf-symbols.c
index a6137e5..b502a3e 100644
--- a/agent/tcf/services/elf-symbols.c
+++ b/agent/tcf/services/elf-symbols.c
@@ -104,7 +104,7 @@ int elf_enumerate_symbols (Context * ctx, const char * file_name, EnumerateSymbo
/* Look for the symbol table sections */
- for (ix = 0; ix < file->section_cnt && symtab_idx == 0 && dynsym_idx == 0; ix++) {
+ for (ix = 0; ix < file->section_cnt && (symtab_idx == 0 || dynsym_idx == 0); ix++) {
ELF_Section * sec = file->sections + ix;
if (sec->type == SHT_SYMTAB) symtab_idx = ix;
else if (sec->type == SHT_DYNSYM) dynsym_idx = ix;