X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a016b25437d8095a80a8d31965c5a33631839f24..db3d8bcae043395025191ea3e4360c495d2584d9:/src/mc/mc_dwarf.cpp diff --git a/src/mc/mc_dwarf.cpp b/src/mc/mc_dwarf.cpp index 3b8e900e25..774eb33d82 100644 --- a/src/mc/mc_dwarf.cpp +++ b/src/mc/mc_dwarf.cpp @@ -5,6 +5,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include +#include #include #include @@ -505,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: @@ -987,7 +988,9 @@ void MC_dwarf_get_variables(simgrid::mc::ObjectInformation* info) xbt_die("Could not open file %s", info->file_name.c_str()); Dwarf *dwarf = dwarf_begin(fd, DWARF_C_READ); if (dwarf == NULL) - xbt_die("Your program must be compiled with -g (%s)", + xbt_die("Missing debugging information in %s\n" + "Your program and its dependencies must have debugging information.\n" + "You might want to recompile with -g or install the suitable debugging package.\n", info->file_name.c_str()); // For each compilation unit: Dwarf_Off offset = 0; @@ -1063,7 +1066,7 @@ static void mc_post_process_scope(simgrid::mc::ObjectInformation* info, simgrid: auto i = info->subprograms.find(scope->abstract_origin_id); xbt_assert(i != info->subprograms.end(), "Could not lookup abstract origin %" PRIx64, - (uint64_t) scope->abstract_origin_id); + (std::uint64_t) scope->abstract_origin_id); scope->name = i->second.name; }