[PATCH v4 01/37] unwind: fix a bug in range updating of binary search
Masatake YAMATO
yamato at redhat.com
Wed Apr 16 06:32:59 UTC 2014
Signed-off-by: Masatake YAMATO <yamato at redhat.com>
Signed-off-by: Luca Clementi <luca.clementi at gmail.com>
---
unwind.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/unwind.c b/unwind.c
index 0b8f0b0..c16fdd1 100644
--- a/unwind.c
+++ b/unwind.c
@@ -258,7 +258,7 @@ print_stacktrace(struct tcb* tcp)
goto ret;
}
else if (ip < cur_mmap_cache->start_addr)
- upper = mid - 1;
+ upper = mid;
else
lower = mid + 1;
--
1.9.0
More information about the Strace-devel
mailing list