Skip to main content
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEugene Tarassov2011-12-22 18:37:51 -0500
committerEugene Tarassov2011-12-22 18:37:51 -0500
commitc829d0df09e6eb185f4e6ca80f3e2a096082c32e (patch)
tree8de60469ba5071f5672ca0fb2dc092130e2809eb /tests
parentd048d2f89fe7b5cdf41e0d69c7e7c9bb14c83dd9 (diff)
downloadorg.eclipse.tcf.agent-c829d0df09e6eb185f4e6ca80f3e2a096082c32e.tar.gz
org.eclipse.tcf.agent-c829d0df09e6eb185f4e6ca80f3e2a096082c32e.tar.xz
org.eclipse.tcf.agent-c829d0df09e6eb185f4e6ca80f3e2a096082c32e.zip
TCF Agent: fixed ERR_INV_CONTEXT error when reading attributes of ELF symbols.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-dwarf/tcf/backend/backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-dwarf/tcf/backend/backend.c b/tests/test-dwarf/tcf/backend/backend.c
index 9cf2a07b..ce30e0b5 100644
--- a/tests/test-dwarf/tcf/backend/backend.c
+++ b/tests/test-dwarf/tcf/backend/backend.c
@@ -415,6 +415,7 @@ static void loc_var_func(void * args, Symbol * sym) {
if (member_class == SYM_CLASS_REFERENCE) {
if (get_symbol_address(children[i], &offs) < 0) {
if (get_symbol_offset(children[i], &offs) < 0) {
+#if 0
int ok = 0;
int err = errno;
unsigned type_flags;
@@ -422,12 +423,11 @@ static void loc_var_func(void * args, Symbol * sym) {
error("get_symbol_flags");
}
if (type_flags & SYM_FLAG_EXTERNAL) ok = 1;
- /*
if (!ok) {
errno = err;
error("get_symbol_offset");
}
- */
+#endif
}
}
}

Back to the top