Optional<uint64_t> DumpOffset;
uint64_t DumpType = DumpOpts.DumpType;
- unsigned RecDepth =
- DumpOpts.ShowChildren ? std::numeric_limits<unsigned>::max() : 0;
StringRef Extension = sys::path::extension(DObj->getFileName());
bool IsDWO = (Extension == ".dwo") || (Extension == ".dwp");
if (shouldDump(IsExplicit, Name, DIDT_ID_DebugInfo, Section.Data)) {
for (const auto &CU : CUs)
if (DumpOffset)
- CU->getDIEForOffset(DumpOffset.getValue()).dump(OS, RecDepth);
+ CU->getDIEForOffset(DumpOffset.getValue()).dump(OS, 0, 0, DumpOpts);
else
CU->dump(OS, DumpOpts);
}
for (const auto &TUS : TUSections)
for (const auto &TU : TUS)
if (DumpOffset)
- TU->getDIEForOffset(*DumpOffset).dump(OS, RecDepth);
+ TU->getDIEForOffset(*DumpOffset).dump(OS, 0, 0, DumpOpts);
else
TU->dump(OS, DumpOpts);
};
DWARFDataExtractor debug_info_data = U->getDebugInfoExtractor();
const uint32_t Offset = getOffset();
uint32_t offset = Offset;
+ RecurseDepth += DumpOpts.ShowChildren ? 1 : 0;
if (debug_info_data.isValidOffset(offset)) {
uint32_t abbrCode = debug_info_data.getULEB128(&offset);