Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix location expression initialization
authorGabriel Corona <gabriel.corona@loria.fr>
Mon, 5 Oct 2015 13:57:42 +0000 (15:57 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 9 Oct 2015 12:11:23 +0000 (14:11 +0200)
src/mc/mc_dwarf.cpp

index b806b0e..774eb33 100644 (file)
@@ -506,7 +506,7 @@ static void MC_dwarf_fill_member_location(simgrid::mc::Type* type, simgrid::mc::
             ("Could not read location expression DW_AT_data_member_location in DW_TAG_member %s of type <%"
              PRIx64 ">%s", MC_dwarf_attr_integrate_string(child, DW_AT_name),
              (uint64_t) type->id, type->name.c_str());
-      simgrid::mc::DwarfExpression(expr, expr+len);
+      member->location_expression = simgrid::mc::DwarfExpression(expr, expr+len);
       break;
     }
   case MC_DW_CLASS_CONSTANT: