================
@@ -1303,9 +1309,16 @@
PlatformDarwin::LaunchProcess(lldb_private::ProcessLaunchInfo &launch_info) {
lldb_private::Status PlatformDarwin::FindBundleBinaryInExecSearchPaths(
const ModuleSpec &module_spec, Process *process, ModuleSP &module_sp,
- const FileSpecList *module_search_paths_ptr,
llvm::SmallVectorImpl<ModuleSP> *old_modules, bool *did_create_ptr) {
const FileSpec &platform_file = module_spec.GetFileSpec();
+ ModuleSpec module_spec_copy(module_spec);
+ Target *target = module_spec_copy.GetTargetPtr();
+ FileSpecList module_search_paths;
+ FileSpecList *module_search_paths_ptr = nullptr;
----------------
JDevlieghere wrote:
Seems like you don't need `module_search_paths_ptr` anymore and you can just
take the address of `module_search_paths`? Instead of checking the pointer
below you could check if it's empty?
https://github.com/llvm/llvm-project/pull/160199
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits