Skip to main content
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEugene Tarassov2012-05-10 16:51:58 -0400
committerEugene Tarassov2012-05-10 16:51:58 -0400
commit67612561a2d9c8e1e78dc215bb242b21a6a539c0 (patch)
treed943ccbedb9e7c0198193c6238effa70c4567008 /tests
parent581fea223903b468076a8aee77e4decbbfa61c7c (diff)
downloadorg.eclipse.tcf.agent-67612561a2d9c8e1e78dc215bb242b21a6a539c0.tar.gz
org.eclipse.tcf.agent-67612561a2d9c8e1e78dc215bb242b21a6a539c0.tar.xz
org.eclipse.tcf.agent-67612561a2d9c8e1e78dc215bb242b21a6a539c0.zip
TCF Tests: more testing of LineNumbers service
Diffstat (limited to 'tests')
-rw-r--r--tests/test-dwarf/tcf/backend/backend.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-dwarf/tcf/backend/backend.c b/tests/test-dwarf/tcf/backend/backend.c
index 0d713b75..4cad9545 100644
--- a/tests/test-dwarf/tcf/backend/backend.c
+++ b/tests/test-dwarf/tcf/backend/backend.c
@@ -303,6 +303,10 @@ static void addr_to_line_callback(CodeArea * area, void * args) {
errno = set_errno(ERR_OTHER, "Invalid line area address");
error("address_to_line");
}
+ if (area->start_line > area->end_line) {
+ errno = set_errno(ERR_OTHER, "Invalid line area end line number");
+ error("address_to_line");
+ }
*dst = *area;
}

Back to the top