X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7f4f03348bd07609e258eb3b545bdafc2c881847..c27e00a13208f33b2df33ef93e12f9ada54bb0d2:/src/mc/mc_unw.cpp diff --git a/src/mc/mc_unw.cpp b/src/mc/mc_unw.cpp index aab93dd702..3b71d12b6a 100644 --- a/src/mc/mc_unw.cpp +++ b/src/mc/mc_unw.cpp @@ -18,7 +18,6 @@ #include -#include "src/mc/mc_object_info.h" #include "src/mc/Process.hpp" #include "src/mc/mc_unw.h" #include "src/mc/Frame.hpp" @@ -168,7 +167,7 @@ static int get_proc_name(unw_addr_space_t as, simgrid::mc::Frame* frame = context->process->find_function(remote(addr)); if (!frame) return - UNW_ENOINFO; - *offp = (unw_word_t) frame->low_pc - addr; + *offp = (unw_word_t) frame->range.begin() - addr; strncpy(bufp, frame->name.c_str(), buf_len); if (bufp[buf_len - 1]) {