Lines Matching refs:module_sp
36 SBModule::SBModule(const lldb::ModuleSP &module_sp) : m_opaque_sp(module_sp) {} in SBModule() argument
39 ModuleSP module_sp; in SBModule() local
41 module_sp, NULL, NULL, NULL); in SBModule()
42 if (module_sp) in SBModule()
43 SetSP(module_sp); in SBModule()
78 ModuleSP module_sp(GetSP()); in GetFileSpec() local
79 if (module_sp) in GetFileSpec()
80 file_spec.SetFileSpec(module_sp->GetFileSpec()); in GetFileSpec()
84 static_cast<void *>(module_sp.get()), in GetFileSpec()
94 ModuleSP module_sp(GetSP()); in GetPlatformFileSpec() local
95 if (module_sp) in GetPlatformFileSpec()
96 file_spec.SetFileSpec(module_sp->GetPlatformFileSpec()); in GetPlatformFileSpec()
100 static_cast<void *>(module_sp.get()), in GetPlatformFileSpec()
110 ModuleSP module_sp(GetSP()); in SetPlatformFileSpec() local
111 if (module_sp) { in SetPlatformFileSpec()
112 module_sp->SetPlatformFileSpec(*platform_file); in SetPlatformFileSpec()
118 static_cast<void *>(module_sp.get()), in SetPlatformFileSpec()
126 ModuleSP module_sp(GetSP()); in GetRemoteInstallFileSpec() local
127 if (module_sp) in GetRemoteInstallFileSpec()
128 sb_file_spec.SetFileSpec(module_sp->GetRemoteInstallFileSpec()); in GetRemoteInstallFileSpec()
133 ModuleSP module_sp(GetSP()); in SetRemoteInstallFileSpec() local
134 if (module_sp) { in SetRemoteInstallFileSpec()
135 module_sp->SetRemoteInstallFileSpec(file.ref()); in SetRemoteInstallFileSpec()
145 ModuleSP module_sp(GetSP()); in GetUUIDBytes() local
146 if (module_sp) in GetUUIDBytes()
147 uuid_bytes = module_sp->GetUUID().GetBytes().data(); in GetUUIDBytes()
152 module_sp->GetUUID().Dump(&s); in GetUUIDBytes()
154 static_cast<void *>(module_sp.get()), s.GetData()); in GetUUIDBytes()
157 static_cast<void *>(module_sp.get())); in GetUUIDBytes()
166 ModuleSP module_sp(GetSP()); in GetUUIDString() local
167 if (module_sp) { in GetUUIDString()
172 uuid_cstr = ConstString(module_sp->GetUUID().GetAsString()).GetCString(); in GetUUIDString()
178 static_cast<void *>(module_sp.get()), uuid_cstr); in GetUUIDString()
184 static_cast<void *>(module_sp.get())); in GetUUIDString()
202 void SBModule::SetSP(const ModuleSP &module_sp) { m_opaque_sp = module_sp; } in SetSP() argument
206 ModuleSP module_sp(GetSP()); in ResolveFileAddress() local
207 if (module_sp) { in ResolveFileAddress()
209 if (module_sp->ResolveFileAddress(vm_addr, addr)) in ResolveFileAddress()
219 ModuleSP module_sp(GetSP()); in ResolveSymbolContextForAddress() local
221 if (module_sp && addr.IsValid()) in ResolveSymbolContextForAddress()
222 module_sp->ResolveSymbolContextForAddress(addr.ref(), scope, *sb_sc); in ResolveSymbolContextForAddress()
229 ModuleSP module_sp(GetSP()); in GetDescription() local
230 if (module_sp) { in GetDescription()
231 module_sp->GetDescription(&strm); in GetDescription()
239 ModuleSP module_sp(GetSP()); in GetNumCompileUnits() local
240 if (module_sp) { in GetNumCompileUnits()
241 return module_sp->GetNumCompileUnits(); in GetNumCompileUnits()
248 ModuleSP module_sp(GetSP()); in GetCompileUnitAtIndex() local
249 if (module_sp) { in GetCompileUnitAtIndex()
250 CompUnitSP cu_sp = module_sp->GetCompileUnitAtIndex(index); in GetCompileUnitAtIndex()
259 const ModuleSP module_sp(GetSP()); in FindCompileUnits() local
260 if (sb_file_spec.IsValid() && module_sp) { in FindCompileUnits()
262 module_sp->FindCompileUnits(*sb_file_spec, append, *sb_sc_list); in FindCompileUnits()
267 static Symtab *GetUnifiedSymbolTable(const lldb::ModuleSP &module_sp) { in GetUnifiedSymbolTable() argument
268 if (module_sp) { in GetUnifiedSymbolTable()
269 SymbolVendor *symbols = module_sp->GetSymbolVendor(); in GetUnifiedSymbolTable()
277 ModuleSP module_sp(GetSP()); in GetNumSymbols() local
278 if (module_sp) { in GetNumSymbols()
279 Symtab *symtab = GetUnifiedSymbolTable(module_sp); in GetNumSymbols()
288 ModuleSP module_sp(GetSP()); in GetSymbolAtIndex() local
289 Symtab *symtab = GetUnifiedSymbolTable(module_sp); in GetSymbolAtIndex()
299 ModuleSP module_sp(GetSP()); in FindSymbol() local
300 Symtab *symtab = GetUnifiedSymbolTable(module_sp); in FindSymbol()
313 ModuleSP module_sp(GetSP()); in FindSymbols() local
314 Symtab *symtab = GetUnifiedSymbolTable(module_sp); in FindSymbols()
321 sc.module_sp = module_sp; in FindSymbols()
335 ModuleSP module_sp(GetSP()); in GetNumSections() local
336 if (module_sp) { in GetNumSections()
338 module_sp->GetSymbolVendor(); in GetNumSections()
339 SectionList *section_list = module_sp->GetSectionList(); in GetNumSections()
348 ModuleSP module_sp(GetSP()); in GetSectionAtIndex() local
349 if (module_sp) { in GetSectionAtIndex()
351 module_sp->GetSymbolVendor(); in GetSectionAtIndex()
352 SectionList *section_list = module_sp->GetSectionList(); in GetSectionAtIndex()
363 ModuleSP module_sp(GetSP()); in FindFunctions() local
364 if (name && module_sp) { in FindFunctions()
369 module_sp->FindFunctions(ConstString(name), NULL, type, symbols_ok, in FindFunctions()
378 ModuleSP module_sp(GetSP()); in FindGlobalVariables() local
379 if (name && module_sp) { in FindGlobalVariables()
381 const uint32_t match_count = module_sp->FindGlobalVariables( in FindGlobalVariables()
409 ModuleSP module_sp(GetSP()); in FindFirstType() local
410 if (name_cstr && module_sp) { in FindFirstType()
415 sb_type = SBType(module_sp->FindFirstType(sc, name, exact_match)); in FindFirstType()
419 module_sp->GetTypeSystemForLanguage(eLanguageTypeC); in FindFirstType()
428 ModuleSP module_sp(GetSP()); in GetBasicType() local
429 if (module_sp) { in GetBasicType()
431 module_sp->GetTypeSystemForLanguage(eLanguageTypeC); in GetBasicType()
441 ModuleSP module_sp(GetSP()); in FindTypes() local
442 if (type && module_sp) { in FindTypes()
447 const uint32_t num_matches = module_sp->FindTypes( in FindTypes()
458 module_sp->GetTypeSystemForLanguage(eLanguageTypeC); in FindTypes()
471 ModuleSP module_sp(GetSP()); in GetTypeByID() local
472 if (module_sp) { in GetTypeByID()
473 SymbolVendor *vendor = module_sp->GetSymbolVendor(); in GetTypeByID()
486 ModuleSP module_sp(GetSP()); in GetTypes() local
487 if (!module_sp) in GetTypes()
489 SymbolVendor *vendor = module_sp->GetSymbolVendor(); in GetTypes()
503 ModuleSP module_sp(GetSP()); in FindSection() local
504 if (sect_name && module_sp) { in FindSection()
506 module_sp->GetSymbolVendor(); in FindSection()
507 SectionList *section_list = module_sp->GetSectionList(); in FindSection()
520 ModuleSP module_sp(GetSP()); in GetByteOrder() local
521 if (module_sp) in GetByteOrder()
522 return module_sp->GetArchitecture().GetByteOrder(); in GetByteOrder()
527 ModuleSP module_sp(GetSP()); in GetTriple() local
528 if (module_sp) { in GetTriple()
529 std::string triple(module_sp->GetArchitecture().GetTriple().str()); in GetTriple()
540 ModuleSP module_sp(GetSP()); in GetAddressByteSize() local
541 if (module_sp) in GetAddressByteSize()
542 return module_sp->GetArchitecture().GetAddressByteSize(); in GetAddressByteSize()
548 if (ModuleSP module_sp = GetSP()) in GetVersion() local
549 version = module_sp->GetVersion(); in GetVersion()
574 ModuleSP module_sp(GetSP()); in GetSymbolFileSpec() local
575 if (module_sp) { in GetSymbolFileSpec()
576 SymbolVendor *symbol_vendor_ptr = module_sp->GetSymbolVendor(); in GetSymbolFileSpec()
585 ModuleSP module_sp(GetSP()); in GetObjectFileHeaderAddress() local
586 if (module_sp) { in GetObjectFileHeaderAddress()
587 ObjectFile *objfile_ptr = module_sp->GetObjectFile(); in GetObjectFileHeaderAddress()
596 ModuleSP module_sp(GetSP()); in GetObjectFileEntryPointAddress() local
597 if (module_sp) { in GetObjectFileEntryPointAddress()
598 ObjectFile *objfile_ptr = module_sp->GetObjectFile(); in GetObjectFileEntryPointAddress()