mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Step up through composite types when looking for file scope
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user