Skip to content

Commit 0f362f9

Browse files
committed
[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.
1 parent d6d9a8b commit 0f362f9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ void DynamicLoaderPOSIXDYLD::DidAttach() {
8686
log, "DynamicLoaderPOSIXDYLD::%s pid %" PRIu64 " reloaded auxv data",
8787
__FUNCTION__, m_process ? m_process->GetID() : LLDB_INVALID_PROCESS_ID);
8888

89-
// ask the process if it can load any of its own modules
90-
auto error = m_process->LoadModules();
91-
LLDB_LOG_ERROR(log, std::move(error), "Couldn't load modules: {0}");
92-
9389
ModuleSP executable_sp = GetTargetExecutable();
9490
ResolveExecutableModule(executable_sp);
9591
m_rendezvous.UpdateExecutablePath();

0 commit comments

Comments
 (0)