Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-dwarf/tcf/backend/backend.c')
-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