[Lldb-commits] [lldb] [lldb][split-dwarf] Add --errors-only argument separate-debug-info list (PR #71000)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 1 16:29:46 PDT 2023
================
@@ -4296,7 +4297,8 @@ bool SymbolFileDWARF::GetSeparateDebugInfo(StructuredData::Dictionary &d) {
dwarf_cu->GetDwoError().AsCString("unknown"));
}
dwo_data->AddBooleanItem("loaded", dwo_symfile != nullptr);
- separate_debug_info_files.AddItem(dwo_data);
+ if (!errors_only || (errors_only && dwo_data->HasKey("error")))
----------------
jeffreytan81 wrote:
You do not need the second `errors_only` check. Simply use:
```
!errors_only || dwo_data->HasKey("error")
```
https://github.com/llvm/llvm-project/pull/71000
More information about the lldb-commits
mailing list