this->dwarf_offset = 0;
this->global = 0;
this->type = nullptr;
- this->location_list = {0, nullptr};
this->address = nullptr;
this->start_scope = 0;
this->object_info = nullptr;
}
-Variable::~Variable()
+// Frame
+
+Frame::Frame()
{
- if (this->location_list.locations)
- mc_dwarf_location_list_clear(&this->location_list);
+ this->tag = 0;
+ this->low_pc = nullptr;
+ this->high_pc = nullptr;
+ this->id = 0;
+ this->abstract_origin_id = 0;
+ this->object_info = nullptr;
}
// ObjectInformations
-dw_frame_t ObjectInformation::find_function(const void *ip) const
+mc_frame_t ObjectInformation::find_function(const void *ip) const
{
xbt_dynar_t dynar = this->functions_index;
mc_function_index_item_t base =
return nullptr;
}
-mc_variable_t ObjectInformation::find_variable(const char* name) const
+simgrid::mc::Variable* ObjectInformation::find_variable(const char* name) const
{
- unsigned int cursor = 0;
- mc_variable_t variable;
- xbt_dynar_foreach(this->global_variables, cursor, variable)
- if(variable->name == name)
- return variable;
+ for (simgrid::mc::Variable& variable : this->global_variables)
+ if(variable.name == name)
+ return &variable;
return nullptr;
}