X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8173f52406580284c8ec5feab41784a8f4aed8ce..54dc4437fa893572ced42c3e9174f4a9888b0258:/src/mc/mc_unw.cpp diff --git a/src/mc/mc_unw.cpp b/src/mc/mc_unw.cpp index 6df54b80e3..cb213124e7 100644 --- a/src/mc/mc_unw.cpp +++ b/src/mc/mc_unw.cpp @@ -22,6 +22,8 @@ #include "mc_process.h" #include "mc_unw.h" +using simgrid::mc::remote; + extern "C" { // ***** Implementation @@ -81,7 +83,7 @@ static int access_mem(unw_addr_space_t as, mc_unw_context_t context = (mc_unw_context_t) arg; if (write) return - UNW_EREADONLYREG; - context->address_space->read_bytes(valp, sizeof(unw_word_t), addr); + context->address_space->read_bytes(valp, sizeof(unw_word_t), remote(addr)); return 0; } @@ -231,7 +233,7 @@ int mc_unw_init_cursor(unw_cursor_t *cursor, mc_unw_context_t context) mc_address_space_t as = context->address_space; mc_process_t process = dynamic_cast(as); - if (process && MC_process_is_self(process)) + if (process && process->is_self()) return unw_init_local(cursor, &context->context); return unw_init_remote(cursor, context->process->unw_addr_space, context);