Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix initialisation of dwarf expression
authorGabriel Corona <gabriel.corona@loria.fr>
Thu, 17 Sep 2015 12:20:10 +0000 (14:20 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 17 Sep 2015 12:20:16 +0000 (14:20 +0200)
src/mc/mc_libdw.cpp

index 4cdf9a4..1f04ca0 100644 (file)
@@ -291,7 +291,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),
              (std::uint64_t) type->id, type->name.c_str());
-      MC_dwarf_expression(expr, len);
+      member->location_expression = MC_dwarf_expression(expr, len);
       break;
     }
   case MC_DW_CLASS_CONSTANT: