From: Gabriel Corona Date: Mon, 24 Mar 2014 10:43:08 +0000 (+0100) Subject: [mc] Fix handling of DW_AT_high_pc X-Git-Tag: v3_11~192^2^2~10 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f0b83697c2ea96ecea31fe5c672827ea7a9696ee [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. --- 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;