From 122f388b300a489b54829d80f5e5fffb3f743ab7 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 26 Aug 2008 07:20:29 +0000 Subject: propagate from branch 'com.redhat.elfutils.pmachata.threads' (head 6db56f08d1ba946c22c9bcfaec0ddeb6532e1dcc) to branch 'com.redhat.elfutils.roland.pending' (head d0bf16e5588ef191b1541ac0d07d841c1cf52fc9) --- libdwfl/segment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdwfl/segment.c') diff --git a/libdwfl/segment.c b/libdwfl/segment.c index 3c1f8bc6..78220e3b 100644 --- a/libdwfl/segment.c +++ b/libdwfl/segment.c @@ -176,8 +176,8 @@ reify_segments (Dwfl *dwfl) ++idx; } - if ((size_t) idx + 1 < dwfl->lookup_elts - && end < dwfl->lookup_addr[idx + 1] + if (((size_t) idx + 1 == dwfl->lookup_elts + || end < dwfl->lookup_addr[idx + 1]) /* The module ends in the middle of this segment. Split it. */ && unlikely (insert (dwfl, idx + 1, end, dwfl->lookup_addr[idx + 1], -1))) -- cgit v1.2.1