mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
Modified the DWARF parser for both the single DWARF file and for the case
where the DWARF is in the .o files so they can track down the actual type for a forward declaration. This was working before for just DWARF files, but not for DWARF in .o files where the actual definition was in another .o file. Modified the main thread name in the driver to be more consistent with the other LLDB thread names. llvm-svn: 118383
This commit is contained in:
@@ -886,6 +886,23 @@ SymbolFileDWARFDebugMap::FindFunctions (const RegularExpression& regex, bool app
|
||||
return sc_list.GetSize() - initial_size;
|
||||
}
|
||||
|
||||
TypeSP
|
||||
SymbolFileDWARFDebugMap::FindDefinitionTypeForDIE (
|
||||
DWARFCompileUnit* cu,
|
||||
const DWARFDebugInfoEntry *die,
|
||||
const ConstString &type_name
|
||||
)
|
||||
{
|
||||
TypeSP type_sp;
|
||||
SymbolFileDWARF *oso_dwarf;
|
||||
for (uint32_t oso_idx = 0; ((oso_dwarf = GetSymbolFileByOSOIndex (oso_idx)) != NULL); ++oso_idx)
|
||||
{
|
||||
type_sp = oso_dwarf->FindDefinitionTypeForDIE (cu, die, type_name);
|
||||
if (type_sp)
|
||||
break;
|
||||
}
|
||||
return type_sp;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
SymbolFileDWARFDebugMap::FindTypes
|
||||
|
||||
Reference in New Issue
Block a user