X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9104957deccc59e0e804215d5db498fabfd40d29..799a432e8ac74a0a84feb8dbf7a78a14068050b3:/src/mc/sosp/Snapshot.cpp diff --git a/src/mc/sosp/Snapshot.cpp b/src/mc/sosp/Snapshot.cpp index 4cad251889..62bc70d5d7 100644 --- a/src/mc/sosp/Snapshot.cpp +++ b/src/mc/sosp/Snapshot.cpp @@ -16,7 +16,7 @@ namespace mc { /************************************* Take Snapshot ************************************/ /****************************************************************************************/ -void Snapshot::snapshot_regions(RemoteClient* process) +void Snapshot::snapshot_regions(RemoteClientMemory* process) { snapshot_regions_.clear(); @@ -97,7 +97,7 @@ static std::vector get_local_variables_values(std::vector unwind_stack_frames(UnwindContext* stack_context) { - const RemoteClient* process = &mc_model_checker->process(); + const RemoteClientMemory* process = &mc_model_checker->process(); std::vector result; unw_cursor_t c = stack_context->cursor(); @@ -149,7 +149,7 @@ static std::vector unwind_stack_frames(UnwindContext* stack_ return result; } -void Snapshot::snapshot_stacks(RemoteClient* process) +void Snapshot::snapshot_stacks(RemoteClientMemory* process) { for (auto const& stack : process->stack_areas()) { s_mc_snapshot_stack_t st; @@ -197,7 +197,7 @@ static void snapshot_ignore_restore(const simgrid::mc::Snapshot* snapshot) snapshot->process()->write_bytes(ignored_data.data.data(), ignored_data.data.size(), remote(ignored_data.start)); } -Snapshot::Snapshot(int num_state, RemoteClient* process) : AddressSpace(process), num_state_(num_state) +Snapshot::Snapshot(int num_state, RemoteClientMemory* process) : AddressSpace(process), num_state_(num_state) { XBT_DEBUG("Taking snapshot %i", num_state); @@ -272,7 +272,7 @@ Region* Snapshot::get_region(const void* addr, Region* hinted_region) const return get_region(addr); } -void Snapshot::restore(RemoteClient* process) +void Snapshot::restore(RemoteClientMemory* process) { XBT_DEBUG("Restore snapshot %i", num_state_);