X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bfb24344a810f8b14415083483fea1b65ff01eb7..078620d38f63dd16f8494822f082775606ad8554:/src/mc/mc_dwarf.cpp diff --git a/src/mc/mc_dwarf.cpp b/src/mc/mc_dwarf.cpp index cd1f9d1755..eae3a5a445 100644 --- a/src/mc/mc_dwarf.cpp +++ b/src/mc/mc_dwarf.cpp @@ -1109,13 +1109,6 @@ static void mc_post_process_scope(mc_object_info_t info, mc_frame_t scope) } -static void MC_post_process_functions(mc_object_info_t info) -{ - for (auto& entry : info->subprograms) - mc_post_process_scope(info, &entry.second); -} - - /** \brief Fill/lookup the "subtype" field. */ static void MC_resolve_subtype(mc_object_info_t info, mc_type_t type) @@ -1164,7 +1157,8 @@ std::shared_ptr MC_find_object_info( MC_dwarf_get_variables(result.get()); MC_post_process_variables(result.get()); MC_post_process_types(result.get()); - MC_post_process_functions(result.get()); + for (auto& entry : result.get()->subprograms) + mc_post_process_scope(result.get(), &entry.second); MC_make_functions_index(result.get()); return std::move(result); }