Step up through composite types when looking for file scope

This commit is contained in:
baldurk
2024-10-03 14:23:27 +01:00
parent be3f2a65fb
commit ca73392638
@@ -327,6 +327,11 @@ rdcstr Program::GetDebugScopeFilePath(const DIBase *d) const
scope = scope->dwarf->As<DILexicalBlock>()->scope;
continue;
}
else if(scope->dwarf->type == DIBase::CompositeType)
{
scope = scope->dwarf->As<DICompositeType>()->file;
continue;
}
break;
}
if(d->type != DIBase::File)