[lldb] Fix a thinko in 2ace1e57

An empty plugin name means we should try everything.

Picked up by the windows bot.
This commit is contained in:
Pavel Labath 2021-10-21 14:01:24 +02:00
parent 0d153df69e
commit 6c88086ba8
1 changed files with 5 additions and 5 deletions

View File

@ -701,12 +701,12 @@ Status PluginManager::SaveCore(const lldb::ProcessSP &process_sp,
Status error;
auto &instances = GetObjectFileInstances().GetInstances();
for (auto &instance : instances) {
if (instance.name.GetStringRef() != plugin_name)
continue;
if (plugin_name.empty() || instance.name.GetStringRef() == plugin_name) {
if (instance.save_core &&
instance.save_core(process_sp, outfile, core_style, error))
return error;
}
}
error.SetErrorString(
"no ObjectFile plugins were able to save a core for this process");
return error;