[Lldb-commits] [lldb] Improve type lookup using .debug_names parent chain (PR #108907)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 25 15:43:47 PDT 2024
================
@@ -301,7 +301,8 @@ using Entry = llvm::DWARFDebugNames::Entry;
/// If any parent does not have an `IDX_parent`, or the Entry data is corrupted,
/// nullopt is returned.
std::optional<llvm::SmallVector<Entry, 4>>
-getParentChain(Entry entry, uint32_t max_parents) {
+getParentChain(Entry entry,
+ uint32_t max_parents = std::numeric_limits<uint32_t>::max()) {
llvm::SmallVector<Entry, 4> parent_entries;
----------------
jeffreytan81 wrote:
Do you know what branch in this function will cut short during "intermediate types is in a type unit" situation? Is it "entry.hasParentInformation()" returning false, or "entry.getParentDIEEntry()" return failure?
https://github.com/llvm/llvm-project/pull/108907
More information about the lldb-commits
mailing list