X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/101c8b10d9965e115c9ff5c28954750a065cf155..a9442180e9103da547f06d6a5d826cb4c9af3627:/src/mc/inspect/mc_dwarf.cpp diff --git a/src/mc/inspect/mc_dwarf.cpp b/src/mc/inspect/mc_dwarf.cpp index e3a6d25e48..74b9f4740f 100644 --- a/src/mc/inspect/mc_dwarf.cpp +++ b/src/mc/inspect/mc_dwarf.cpp @@ -123,7 +123,6 @@ enum class FormClass { static TagClass classify_tag(int tag) { switch (tag) { - case DW_TAG_array_type: case DW_TAG_class_type: case DW_TAG_enumeration_type: @@ -224,7 +223,7 @@ static FormClass classify_form(int form) */ inline XBT_PRIVATE const char* tagname(Dwarf_Die* die) { - return simgrid::dwarf::tagname(dwarf_tag(die)); + return tagname(dwarf_tag(die)); } } // namespace dwarf @@ -1192,11 +1191,10 @@ namespace simgrid { namespace mc { /** @brief Finds informations about a given shared object/executable */ -std::shared_ptr createObjectInformation(std::vector const& maps, - const char* name) +std::shared_ptr createObjectInformation(std::vector const& maps, const char* name) { - std::shared_ptr result = std::make_shared(); - result->file_name = name; + std::shared_ptr result = std::make_shared(); + result->file_name = name; simgrid::mc::find_object_address(maps, result.get()); MC_load_dwarf(result.get()); MC_post_process_variables(result.get()); @@ -1209,11 +1207,11 @@ std::shared_ptr createObjectInformation(std::vec /*************************************************************************/ -void postProcessObjectInformation(simgrid::mc::RemoteClient* process, simgrid::mc::ObjectInformation* info) +void postProcessObjectInformation(RemoteClient* process, ObjectInformation* info) { for (auto& t : info->types) { - simgrid::mc::Type* type = &(t.second); - simgrid::mc::Type* subtype = type; + Type* type = &(t.second); + Type* subtype = type; while (subtype->type == DW_TAG_typedef || subtype->type == DW_TAG_volatile_type || subtype->type == DW_TAG_const_type) if (subtype->subtype)