[Lldb-commits] [lldb] Add `target modules dump separate-debug-info` (PR #66035)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 12 01:31:57 PDT 2023
================
@@ -4214,6 +4216,62 @@ void SymbolFileDWARF::DumpClangAST(Stream &s) {
clang->Dump(s.AsRawOstream());
}
+bool SymbolFileDWARF::GetSeparateDebugInfoFiles(StructuredData::Array &array) {
+ DWARFDebugInfo &info = DebugInfo();
+ const size_t num_cus = info.GetNumUnits();
+ for (size_t cu_idx = 0; cu_idx < num_cus; cu_idx++) {
+ DWARFUnit *unit = info.GetUnitAtIndex(cu_idx);
+ DWARFCompileUnit *dwarf_cu = llvm::dyn_cast<DWARFCompileUnit>(unit);
+ if (dwarf_cu == nullptr) {
+ continue;
+ }
----------------
DavidSpickett wrote:
lldb prefers to drop the `{}` if there's just one line
```
if (dwarf_cu == nullptr)
continue;
```
https://github.com/llvm/llvm-project/pull/66035
More information about the lldb-commits
mailing list