Index: lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp =================================================================== --- lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp +++ lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp @@ -730,8 +730,9 @@ __FUNCTION__, m_process->GetID(), process_info.GetExecutableFile().GetPath().c_str()); - ModuleSpec module_spec(process_info.GetExecutableFile(), - process_info.GetArchitecture()); + ModuleSpec module_spec; + m_process->GetModuleSpec(process_info.GetExecutableFile(), + process_info.GetArchitecture(), module_spec); if (module_sp && module_sp->MatchesModuleSpec(module_spec)) return; Index: lldb/source/Target/TargetList.cpp =================================================================== --- lldb/source/Target/TargetList.cpp +++ lldb/source/Target/TargetList.cpp @@ -398,6 +398,8 @@ if (user_exe_path_is_bundle) exe_module_sp->GetFileSpec().GetPath(resolved_bundle_exe_path, sizeof(resolved_bundle_exe_path)); + + exe_module_sp->PreloadSymbols(); } } else { // No file was specified, just create an empty target with any arch if a