X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2bd9a37bbb72eac4ed613b3d6953aba6555e2e92..066ae3631a383ef0338cccfb8e153df1c7f13995:/src/mc/mc_snapshot.h diff --git a/src/mc/mc_snapshot.h b/src/mc/mc_snapshot.h index 98a2c70a75..7591a310cb 100644 --- a/src/mc/mc_snapshot.h +++ b/src/mc/mc_snapshot.h @@ -200,6 +200,7 @@ typedef struct s_fd_infos{ struct s_mc_snapshot { mc_process_t process; + int num_state; s_mc_address_space_t address_space; size_t heap_bytes_used; mc_mem_region_t* snapshot_regions; @@ -302,10 +303,7 @@ const void* mc_snapshot_get_heap_end(mc_snapshot_t snapshot) { if(snapshot==NULL) xbt_die("snapshot is NULL"); - // This is &std_heap->breakval in the target process: - void** addr = &MC_process_get_heap(&mc_model_checker->process)->breakval; - // Read (std_heap->breakval) in the target process (*addr i.e. std_heap->breakval): - return MC_snapshot_read_pointer(snapshot, addr, MC_PROCESS_INDEX_ANY); + return MC_process_get_heap(&mc_model_checker->process)->breakval; } /** @brief Read memory from a snapshot region