X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fcf33975379cd050a6d70b94ae7857910dd01217..4c753f8d4cabd4104f3f7109823f16be2ebdcce3:/src/mc/inspect/mc_dwarf.cpp diff --git a/src/mc/inspect/mc_dwarf.cpp b/src/mc/inspect/mc_dwarf.cpp index 44ad73ee0d..7b0c0f5089 100644 --- a/src/mc/inspect/mc_dwarf.cpp +++ b/src/mc/inspect/mc_dwarf.cpp @@ -510,7 +510,7 @@ static simgrid::mc::Type MC_dwarf_die_to_type(simgrid::mc::ObjectInformation* in { simgrid::mc::Type type; type.type = dwarf_tag(die); - type.name = std::string(); + type.name = ""; type.element_count = -1; // Global Offset @@ -677,7 +677,7 @@ static std::unique_ptr MC_die_to_variable(simgrid::mc::Ob } if (ns && variable->global) - variable->name = std::string(ns) + "::" + variable->name; + variable->name.insert(0, std::string(ns) + "::"); // The current code needs a variable name, // generate a fake one: