}
tok = strtok(lfields[0], "-");
start_addr1 = (void *)strtoul(tok, NULL, 16);
- if(lfields[1][1] == 'w' && lfields[5] == NULL){
+ if(lfields[1][1] == 'w'){
if(start_addr1 == std_heap){ /* Std_heap ? */
tok = strtok(NULL, "-");
end_addr = (void *)strtoul(tok, NULL, 16);
}
+/** @brief Find the range of the different memory segments and binary paths */
void MC_init_memory_map_info(){
unsigned int i = 0;
int i, plt_found = 0;
unsigned long int size, offset;
- char *command = bprintf("objdump --section-headers %s", libsimgrid_path);
+ char *command = bprintf("LANG=C objdump --section-headers %s", libsimgrid_path);
fp = popen(command, "r");
int i, plt_found = 0;
unsigned long int size;
- char *command = bprintf( "objdump --section-headers %s", xbt_binary_name);
+ char *command = bprintf("LANG=C objdump --section-headers %s", xbt_binary_name);
fp = popen(command, "r");
stop = 1;
if((long)ip > (long)start_text_libsimgrid)
- frame = xbt_dict_get_or_null(mc_local_variables_libsimgrid, frame_name);
+ frame = xbt_dict_get_or_null(mc_libsimgrid_info->local_variables, frame_name);
else
- frame = xbt_dict_get_or_null(mc_local_variables_binary, frame_name);
+ frame = xbt_dict_get_or_null(mc_binary_info->local_variables, frame_name);
if(frame == NULL){
ret = unw_step(&c);
}
-mc_snapshot_t MC_take_snapshot(){
+mc_snapshot_t MC_take_snapshot(int num_state){
mc_snapshot_t snapshot = xbt_new0(s_mc_snapshot_t, 1);
snapshot->nb_processes = xbt_swag_size(simix_global->process_list);
//MC_get_hash_local(snapshot->hash_local, snapshot->stacks);
}
- MC_dump_checkpoint_ignore(snapshot);
+ if(num_state > 0)
+ MC_dump_checkpoint_ignore(snapshot);
return snapshot;
}
mc_snapshot_t SIMIX_pre_mc_snapshot(smx_simcall_t simcall){
- return MC_take_snapshot();
+ return MC_take_snapshot(1);
}
void *MC_snapshot(void){