forked from OSchip/llvm-project
[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:
parent
0d153df69e
commit
6c88086ba8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue