Skip to main content
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEugene Tarassov2012-02-05 16:19:33 -0500
committerEugene Tarassov2012-02-05 16:19:33 -0500
commit17ff2d5fc629bcaa5ffe9ea6236c03b3dd61dabc (patch)
treeb98869c92dc2a16e3c8b5411cb81560a58a100c9 /tests
parent36928547c15b5b774b709f72119e7cd06c0979de (diff)
downloadorg.eclipse.tcf.agent-17ff2d5fc629bcaa5ffe9ea6236c03b3dd61dabc.tar.gz
org.eclipse.tcf.agent-17ff2d5fc629bcaa5ffe9ea6236c03b3dd61dabc.tar.xz
org.eclipse.tcf.agent-17ff2d5fc629bcaa5ffe9ea6236c03b3dd61dabc.zip
TCF Agent: fixed a bug in DWARF lazy loading logic.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-dwarf/tcf/backend/backend.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/test-dwarf/tcf/backend/backend.c b/tests/test-dwarf/tcf/backend/backend.c
index c32c74fb..d3092b7d 100644
--- a/tests/test-dwarf/tcf/backend/backend.c
+++ b/tests/test-dwarf/tcf/backend/backend.c
@@ -612,19 +612,19 @@ static void loc_var_func(void * args, Symbol * sym) {
error("Invalid base type of typedef");
}
}
- if (get_symbol_container(type, &container) < 0) {
- if (type_class == TYPE_CLASS_MEMBER_PTR) {
+ if (type_class == TYPE_CLASS_MEMBER_PTR) {
+ if (get_symbol_container(type, &container) < 0) {
error_sym("get_symbol_container", type);
}
- }
- else if (org_type != NULL) {
- Symbol * org_container = NULL;
- if (get_symbol_container(org_type, &org_container) < 0) {
- error_sym("get_symbol_container", org_type);
- }
- if (symcmp(container, org_container) != 0) {
- errno = ERR_OTHER;
- error("Invalid container of typedef");
+ else if (org_type != NULL) {
+ Symbol * org_container = NULL;
+ if (get_symbol_container(org_type, &org_container) < 0) {
+ error_sym("get_symbol_container", org_type);
+ }
+ if (symcmp(container, org_container) != 0) {
+ errno = ERR_OTHER;
+ error("Invalid container of typedef");
+ }
}
}
if (get_symbol_length(type, &length) < 0) {

Back to the top