Skip to content

Commit 6e54918

Browse files
committed
Once we've found a firmware binary and loaded it, don't search more
Add the flag in ProcessMachCore::DoLoadCore that stops additional searches for the binaries when we have an LC_NOTE identifying the firmware/standalone binary as the correct one & we have loaded it successfully.
1 parent 8b95bd3 commit 6e54918

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ Status ProcessMachCore::DoLoadCore() {
398398
added_module.Append(module_sp, false);
399399
GetTarget().ModulesDidLoad(added_module);
400400
m_dyld_plugin_name = DynamicLoaderDarwinKernel::GetPluginNameStatic();
401+
found_main_binary_definitively = true;
401402
}
402403
}
403404
}

0 commit comments

Comments
 (0)