Add new API to SBTarget and SBModule classes.
Summary: The new API allows to find a list of compile units related to target/module. Reviewers: aprantl, clayborg Reviewed By: aprantl Subscribers: jingham, lldb-commits Differential Revision: https://reviews.llvm.org/D48801 llvm-svn: 336200
This commit is contained in:
@@ -253,6 +253,17 @@ SBCompileUnit SBModule::GetCompileUnitAtIndex(uint32_t index) {
|
||||
return sb_cu;
|
||||
}
|
||||
|
||||
SBSymbolContextList
|
||||
SBModule::FindCompileUnits(const SBFileSpec &sb_file_spec) {
|
||||
SBSymbolContextList sb_sc_list;
|
||||
const ModuleSP module_sp(GetSP());
|
||||
if (sb_file_spec.IsValid() && module_sp) {
|
||||
const bool append = true;
|
||||
module_sp->FindCompileUnits(*sb_file_spec, append, *sb_sc_list);
|
||||
}
|
||||
return sb_sc_list;
|
||||
}
|
||||
|
||||
static Symtab *GetUnifiedSymbolTable(const lldb::ModuleSP &module_sp) {
|
||||
if (module_sp) {
|
||||
SymbolVendor *symbols = module_sp->GetSymbolVendor();
|
||||
|
||||
Reference in New Issue
Block a user