From f0b83697c2ea96ecea31fe5c672827ea7a9696ee Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Mon, 24 Mar 2014 11:43:08 +0100 Subject: [PATCH] [mc] Fix handling of DW_AT_high_pc DW_AT_high_pc is the first address which is not in the range and not the last address in the range. --- src/mc/mc_global.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mc/mc_global.c b/src/mc/mc_global.c index fb55f18f3b..53d932894a 100644 --- a/src/mc/mc_global.c +++ b/src/mc/mc_global.c @@ -277,7 +277,7 @@ static dw_frame_t MC_find_function_by_ip_and_object(void* ip, mc_object_info_t i int k = i + ((j-i)/2); if(ip < base[k].low_pc) { j = k-1; - } else if(ip > base[k].high_pc) { + } else if(ip >= base[k].high_pc) { i = k+1; } else { return base[k].function; -- 2.20.1