================
@@ -1608,9 +1612,28 @@ void Target::SetExecutableModule(ModuleSP &executable_sp,
if (image_module_sp) {
added_modules.AppendIfNeeded(image_module_sp, false);
ObjectFile *objfile = image_module_sp->GetObjectFile();
- if (objfile)
+ if (objfile) {
+ std::lock_guard<std::mutex> guard(dependent_files_mutex);
objfile->GetDependentModules(dependent_files);
----------------
jasonmolenda wrote:
good question. for mach-o this is a simple iteration over the load commands,
but we might want to to pass a temporaryfile list object to this method, and
then acquire the lock and append its entries to `dependency_files`, if we
didn't want to assume that.
https://github.com/llvm/llvm-project/pull/114507
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits