Skip to main content
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEugene Tarassov2012-04-25 22:05:48 -0400
committerEugene Tarassov2012-04-25 22:05:48 -0400
commitf8653bc1f0e99bd75cfe04cbf7dba430b03bcf44 (patch)
tree848079b967e3f8390de487872256d701f66c14de /tests
parent9c150472d2d76cc8a98009e6ca7e004dbea77a8e (diff)
downloadorg.eclipse.tcf.agent-f8653bc1f0e99bd75cfe04cbf7dba430b03bcf44.tar.gz
org.eclipse.tcf.agent-f8653bc1f0e99bd75cfe04cbf7dba430b03bcf44.tar.xz
org.eclipse.tcf.agent-f8653bc1f0e99bd75cfe04cbf7dba430b03bcf44.zip
TCF Agent: better handling of malformed line numbers information
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 815cab47..1f4e264f 100644
--- a/tests/test-dwarf/tcf/backend/backend.c
+++ b/tests/test-dwarf/tcf/backend/backend.c
@@ -1053,7 +1053,7 @@ static void next_pc(void) {
error("address_to_line");
}
next_pc = area.end_address;
- if (next_pc > 0) next_pc += test_cnt % 6;
+ if (next_pc >= pc) next_pc += test_cnt % 6;
else next_pc = pc + 8;
if (area.start_line > 0) {
char * elf_file_name = tmp_strdup(area.file);

Back to the top