[all-commits] [llvm/llvm-project] fce588: [lldb] Enable locate module callback for all modul...
GeorgeHuyubo via All-commits
all-commits at lists.llvm.org
Thu Nov 6 12:48:42 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fce58897ce82de84c8d794609132eb547b2b4871
https://github.com/llvm/llvm-project/commit/fce58897ce82de84c8d794609132eb547b2b4871
Author: GeorgeHuyubo <113479859+GeorgeHuyubo at users.noreply.github.com>
Date: 2025-11-06 (Thu, 06 Nov 2025)
Changed paths:
M lldb/include/lldb/API/SBModuleSpec.h
M lldb/include/lldb/API/SBTarget.h
M lldb/include/lldb/Core/ModuleList.h
M lldb/include/lldb/Core/ModuleSpec.h
M lldb/include/lldb/Target/Platform.h
M lldb/include/lldb/Target/RemoteAwarePlatform.h
M lldb/source/API/SBModule.cpp
M lldb/source/API/SBModuleSpec.cpp
M lldb/source/Core/DynamicLoader.cpp
M lldb/source/Core/ModuleList.cpp
M lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
M lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
M lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp
M lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.h
M lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
M lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h
M lldb/source/Plugins/Platform/MacOSX/PlatformDarwinDevice.cpp
M lldb/source/Plugins/Platform/MacOSX/PlatformDarwinDevice.h
M lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
M lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.h
M lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp
M lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h
M lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.cpp
M lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.h
M lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
M lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
M lldb/source/Target/ModuleCache.cpp
M lldb/source/Target/Platform.cpp
M lldb/source/Target/RemoteAwarePlatform.cpp
M lldb/source/Target/Target.cpp
M lldb/source/Target/TargetList.cpp
M lldb/unittests/Core/CMakeLists.txt
A lldb/unittests/Core/ModuleListTest.cpp
M lldb/unittests/Target/LocateModuleCallbackTest.cpp
M lldb/unittests/Target/RemoteAwarePlatformTest.cpp
Log Message:
-----------
[lldb] Enable locate module callback for all module loading (#160199)
Main executables were bypassing the locate module callback that shared
libraries use, preventing custom symbol file location logic from working
consistently.
This PR fix this by
* Adding target context to ModuleSpec
* Leveraging that context to use target search path and platform's
locate module callback in ModuleList::GetSharedModule
This ensures both main executables and shared libraries get the same
callback treatment for symbol file resolution.
---------
Co-authored-by: George Hu <hyubo at meta.com>
Co-authored-by: George Hu <georgehuyubo at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list