Skip to main content
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEugene Tarassov2012-03-01 14:40:50 -0500
committerEugene Tarassov2012-03-01 14:40:50 -0500
commit86e9b913d2a8b70a8e02369284be5e56a84247cf (patch)
treeb4bf994edb5d8fcb04e42dd4474e2489afe5f7b3 /tests
parent3ad75ab29b1393c8381ea36f9e186435008ad8c1 (diff)
downloadorg.eclipse.tcf.agent-86e9b913d2a8b70a8e02369284be5e56a84247cf.tar.gz
org.eclipse.tcf.agent-86e9b913d2a8b70a8e02369284be5e56a84247cf.tar.xz
org.eclipse.tcf.agent-86e9b913d2a8b70a8e02369284be5e56a84247cf.zip
TCF Tests: fixed: fixed a false positive in DWARF tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-dwarf/tcf/backend/backend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-dwarf/tcf/backend/backend.c b/tests/test-dwarf/tcf/backend/backend.c
index 0d7d482d..b45b37ed 100644
--- a/tests/test-dwarf/tcf/backend/backend.c
+++ b/tests/test-dwarf/tcf/backend/backend.c
@@ -1085,6 +1085,9 @@ static void next_file(void) {
r->file_name = loc_strdup(elf_file_name);
r->file_offs = p->offset;
r->size = (ContextAddress)p->mem_size;
+ if ((p->flags & PF_X) == 0 && (r->size % 0x1000) != 0) {
+ r->size = r->size + 0x1000 - r->size % 0x1000;
+ }
r->flags = MM_FLAG_R | MM_FLAG_W;
if (p->flags & PF_X) r->flags |= MM_FLAG_X;
r->dev = st.st_dev;

Back to the top