*
* This gets 'processInfo' from '&processInfo->copy'. It upcasts in the
* sense that we could achieve the same thing by having SimixProcessInformation
*
* This gets 'processInfo' from '&processInfo->copy'. It upcasts in the
* sense that we could achieve the same thing by having SimixProcessInformation
// Read the simgrid::xbt::string in the MCed process:
simgrid::mc::SimixProcessInformation* info = process_info_cast(p);
// Read the simgrid::xbt::string in the MCed process:
simgrid::mc::SimixProcessInformation* info = process_info_cast(p);
char hostname[remote_string.len];
process->read_bytes(hostname, remote_string.len + 1, remote(remote_string.data));
info->hostname = mc_model_checker->get_host_name(hostname);
char hostname[remote_string.len];
process->read_bytes(hostname, remote_string.len + 1, remote(remote_string.data));
info->hostname = mc_model_checker->get_host_name(hostname);
- if (info->name.empty())
- info->name = process->read_string(p->name);
+ if (info->name.empty()) {
+ simgrid::xbt::string_data string_data = (simgrid::xbt::string_data&)p->name;
+ info->name = process->read_string(remote(string_data.data), string_data.len);
+ }