: RegionSnapshot(region_type, start_addr, permanent_addr, size)
{
simgrid::mc::RemoteClient* process = &mc_model_checker->process();
- assert(process != nullptr);
xbt_assert((((uintptr_t)start_addr) & (xbt_pagesize - 1)) == 0, "Start address not at the beginning of a page");
xbt_assert((((uintptr_t)permanent_addr) & (xbt_pagesize - 1)) == 0,
// Read the context from remote process:
unw_context_t context;
- mc_model_checker->process().read_bytes(&context, sizeof(context), remote(stack.context));
+ process->read_bytes(&context, sizeof(context), remote(stack.context));
- st.context.initialize(&mc_model_checker->process(), &context);
+ st.context.initialize(process, &context);
st.stack_frames = unwind_stack_frames(&st.context);
st.local_variables = get_local_variables_values(st.stack_frames);
xbt_assert(snapshot->process());
// Copy the memory:
- for (auto const& region : mc_model_checker->process().ignored_regions()) {
+ for (auto const& region : snapshot->process()->ignored_regions()) {
s_mc_snapshot_ignored_data_t ignored_data;
ignored_data.start = (void*)region.addr;
ignored_data.data.resize(region.size);
}
// Zero the memory:
- for (auto const& region : mc_model_checker->process().ignored_regions())
+ for (auto const& region : snapshot->process()->ignored_regions())
snapshot->process()->clear_bytes(remote(region.addr), region.size);
}
static void snapshot_ignore_restore(simgrid::mc::Snapshot* snapshot)