this->id = 0;
this->byte_size = 0;
this->element_count = 0;
- this->members = nullptr;
this->is_pointer_type = 0;
this->subtype = nullptr;
this->full_type = nullptr;
}
-Type::~Type()
+// Type
+
+Variable::Variable()
{
- xbt_dynar_free(&this->members);
+ this->dwarf_offset = 0;
+ this->global = 0;
+ this->type = nullptr;
+ this->address = nullptr;
+ this->start_scope = 0;
+ this->object_info = nullptr;
+}
+
+// Frame
+
+Frame::Frame()
+{
+ 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;
}
-dw_variable_t ObjectInformation::find_variable(const char* name) const
+simgrid::mc::Variable* ObjectInformation::find_variable(const char* name) const
{
- unsigned int cursor = 0;
- dw_variable_t variable;
- xbt_dynar_foreach(this->global_variables, cursor, variable){
- if(!strcmp(name, variable->name))
- return variable;
- }
-
+ for (simgrid::mc::Variable& variable : this->global_variables)
+ if(variable.name == name)
+ return &variable;
return nullptr;
}