Skip to main content
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEugene Tarassov2012-08-24 13:40:43 -0400
committerEugene Tarassov2012-08-24 13:40:43 -0400
commit6808e402e6a4314288c600fffc3246f95a8322f0 (patch)
tree8a24e45566c8ac4dce5bd64075d9bc33db325c80 /tests
parente8950e7e2225dcd931e51ae46975d011e350b47a (diff)
downloadorg.eclipse.tcf.agent-6808e402e6a4314288c600fffc3246f95a8322f0.tar.gz
org.eclipse.tcf.agent-6808e402e6a4314288c600fffc3246f95a8322f0.tar.xz
org.eclipse.tcf.agent-6808e402e6a4314288c600fffc3246f95a8322f0.zip
TCF Tests: fixed: DWARF test fails on function symbol with size 0
Diffstat (limited to 'tests')
-rw-r--r--tests/test-dwarf/tcf/backend/backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-dwarf/tcf/backend/backend.c b/tests/test-dwarf/tcf/backend/backend.c
index 4cad9545..3099162d 100644
--- a/tests/test-dwarf/tcf/backend/backend.c
+++ b/tests/test-dwarf/tcf/backend/backend.c
@@ -980,7 +980,7 @@ static void next_pc(void) {
}
}
}
- if (pc < func_addr || pc >= func_addr + func_size) {
+ if (pc < func_addr || (func_size > 0 && pc >= func_addr + func_size)) {
errno = ERR_OTHER;
error("invalid symbol address");
}

Back to the top