[PATCH 4/4] ldv/unwind: fix a bug in range updating of binary search
Masatake YAMATO
yamato at redhat.com
Wed Apr 9 16:52:12 UTC 2014
Signed-off-by: Masatake YAMATO <yamato at redhat.com>
---
unwind.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/unwind.c b/unwind.c
index 0f9f79d..c189af5 100644
--- a/unwind.c
+++ b/unwind.c
@@ -495,7 +495,7 @@ stacktrace_walk(struct tcb *tcp,
goto ret;
}
else if (ip < cur_mmap_cache->start_addr)
- upper = mid - 1;
+ upper = mid;
else
lower = mid + 1;
--
1.8.5.3
More information about the Strace-devel
mailing list