In some cases a broken or invalid debug info could cause a crash in DWARFUnit::getInlinedChainForAddress during parsing a chain of in-lined functions. This patch fixes this issue.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Seems good enough - though if you're interested in this code being able to handle arbitrarily broken DWARF, this function probably needs to be changed to be able to return some kind of failure (like llvm::Error) for the case where the parent walk reaches DIE types that would never be found in the usual scope chain (ie: something other than inlined_subroutines and lexical_blocks (or lexical_scopes, I can never remember the right tag name)) - because the caller's probably going to be pretty confused by other DIEs appearing in this list.