Author: Pavel Labath Date: 2022-03-18T08:58:29+01:00 New Revision: 0f362f9d25fd7b4baca56d3c76c688ca0113813a
URL: https://github.com/llvm/llvm-project/commit/0f362f9d25fd7b4baca56d3c76c688ca0113813a DIFF: https://github.com/llvm/llvm-project/commit/0f362f9d25fd7b4baca56d3c76c688ca0113813a.diff LOG: [lldb] Remove process->LoadModules call from DynamicLoaderPOSIXDYLD The call is useless, as any modules loaded there will be removed in ResolveExecutableModule. Modules will be reloaded again through the GetLoadedModuleList call in DYLDRendezvous.cpp. Added: Modified: lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp index 3505ba0b49c9b..12f438f79d043 100644 --- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp +++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp @@ -86,10 +86,6 @@ void DynamicLoaderPOSIXDYLD::DidAttach() { log, "DynamicLoaderPOSIXDYLD::%s pid %" PRIu64 " reloaded auxv data", __FUNCTION__, m_process ? m_process->GetID() : LLDB_INVALID_PROCESS_ID); - // ask the process if it can load any of its own modules - auto error = m_process->LoadModules(); - LLDB_LOG_ERROR(log, std::move(error), "Couldn't load modules: {0}"); - ModuleSP executable_sp = GetTargetExecutable(); ResolveExecutableModule(executable_sp); m_rendezvous.UpdateExecutablePath(); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits