Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Detect/fix conflicting visibility and fix visibility wrt lua/java bindings
[simgrid.git] / src / mc / mc_libdw.cpp
index 4cdf9a4..fcd5add 100644 (file)
@@ -5,6 +5,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include <cstdint>
+#include <cinttypes>
 
 #include <algorithm>
 #include <memory>
@@ -12,6 +13,7 @@
 #include <utility>
 
 #include <dwarf.h>
+#include <elfutils/libdw.h>
 
 #include <xbt/log.h>
 
@@ -291,7 +293,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: