Lines Matching refs:target_sp
102 SBTarget::SBTarget(const TargetSP &target_sp) : m_opaque_sp(target_sp) { in SBTarget() argument
103 LLDB_INSTRUMENT_VA(this, target_sp); in SBTarget()
167 TargetSP target_sp(GetSP()); in GetProcess() local
168 if (target_sp) { in GetProcess()
169 process_sp = target_sp->GetProcessSP(); in GetProcess()
179 TargetSP target_sp(GetSP()); in GetPlatform() local
180 if (!target_sp) in GetPlatform()
184 platform.m_opaque_sp = target_sp->GetPlatform(); in GetPlatform()
193 TargetSP target_sp(GetSP()); in GetDebugger() local
194 if (target_sp) in GetDebugger()
195 debugger.reset(target_sp->GetDebugger().shared_from_this()); in GetDebugger()
203 TargetSP target_sp(GetSP()); in GetStatistics() local
204 if (!target_sp) in GetStatistics()
208 DebuggerStats::ReportStatistics(target_sp->GetDebugger(), in GetStatistics()
209 target_sp.get())).str(); in GetStatistics()
217 TargetSP target_sp(GetSP()); in SetCollectingStats() local
218 if (!target_sp) in SetCollectingStats()
226 TargetSP target_sp(GetSP()); in GetCollectingStats() local
227 if (!target_sp) in GetCollectingStats()
243 TargetSP target_sp(GetSP()); in LoadCore() local
244 if (target_sp) { in LoadCore()
247 ProcessSP process_sp(target_sp->CreateProcess( in LoadCore()
248 target_sp->GetDebugger().GetListener(), "", &filespec, false)); in LoadCore()
266 TargetSP target_sp = GetSP(); in LaunchSimple() local
267 if (!target_sp) in LaunchSimple()
272 if (Module *exe_module = target_sp->GetExecutableModulePointer()) in LaunchSimple()
290 TargetSP target_sp(GetSP()); in Install() local
291 if (target_sp) { in Install()
292 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in Install()
293 sb_error.ref() = target_sp->Install(nullptr); in Install()
310 TargetSP target_sp(GetSP()); in Launch() local
312 if (target_sp) { in Launch()
313 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in Launch()
322 process_sp = target_sp->GetProcessSP(); in Launch()
353 Module *exe_module = target_sp->GetExecutableModulePointer(); in Launch()
359 auto default_launch_info = target_sp->GetProcessLaunchInfo(); in Launch()
366 auto default_launch_info = target_sp->GetProcessLaunchInfo(); in Launch()
373 error.SetError(target_sp->Launch(launch_info, nullptr)); in Launch()
375 sb_process.SetSP(target_sp->GetProcessSP()); in Launch()
387 TargetSP target_sp(GetSP()); in Launch() local
389 if (target_sp) { in Launch()
390 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in Launch()
393 ProcessSP process_sp = target_sp->GetProcessSP(); in Launch()
410 Module *exe_module = target_sp->GetExecutableModulePointer(); in Launch()
415 const ArchSpec &arch_spec = target_sp->GetArchitecture(); in Launch()
419 error.SetError(target_sp->Launch(launch_info, nullptr)); in Launch()
421 sb_process.SetSP(target_sp->GetProcessSP()); in Launch()
433 TargetSP target_sp(GetSP()); in Attach() local
435 if (target_sp) { in Attach()
438 PlatformSP platform_sp = target_sp->GetPlatform(); in Attach()
452 error.SetError(AttachToProcess(attach_info, *target_sp)); in Attach()
454 sb_process.SetSP(target_sp->GetProcessSP()); in Attach()
470 TargetSP target_sp(GetSP()); in AttachToProcessWithID() local
472 if (target_sp) { in AttachToProcessWithID()
479 if (target_sp->GetPlatform()->GetProcessInfo(pid, instance_info)) in AttachToProcessWithID()
482 error.SetError(AttachToProcess(attach_info, *target_sp)); in AttachToProcessWithID()
484 sb_process.SetSP(target_sp->GetProcessSP()); in AttachToProcessWithID()
500 TargetSP target_sp(GetSP()); in AttachToProcessWithName() local
502 if (name && target_sp) { in AttachToProcessWithName()
509 error.SetError(AttachToProcess(attach_info, *target_sp)); in AttachToProcessWithName()
511 sb_process.SetSP(target_sp->GetProcessSP()); in AttachToProcessWithName()
525 TargetSP target_sp(GetSP()); in ConnectRemote() local
527 if (target_sp) { in ConnectRemote()
528 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in ConnectRemote()
531 target_sp->CreateProcess(listener.m_opaque_sp, plugin_name, nullptr, in ConnectRemote()
534 process_sp = target_sp->CreateProcess( in ConnectRemote()
535 target_sp->GetDebugger().GetListener(), plugin_name, nullptr, true); in ConnectRemote()
554 TargetSP target_sp(GetSP()); in GetExecutable() local
555 if (target_sp) { in GetExecutable()
556 Module *exe_module = target_sp->GetExecutableModulePointer(); in GetExecutable()
578 void SBTarget::SetSP(const lldb::TargetSP &target_sp) { in SetSP() argument
579 m_opaque_sp = target_sp; in SetSP()
587 TargetSP target_sp(GetSP()); in ResolveLoadAddress() local
588 if (target_sp) { in ResolveLoadAddress()
589 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in ResolveLoadAddress()
590 if (target_sp->ResolveLoadAddress(vm_addr, addr)) in ResolveLoadAddress()
605 TargetSP target_sp(GetSP()); in ResolveFileAddress() local
606 if (target_sp) { in ResolveFileAddress()
607 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in ResolveFileAddress()
608 if (target_sp->ResolveFileAddress(file_addr, addr)) in ResolveFileAddress()
622 TargetSP target_sp(GetSP()); in ResolvePastLoadAddress() local
623 if (target_sp) { in ResolvePastLoadAddress()
624 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in ResolvePastLoadAddress()
625 if (target_sp->ResolveLoadAddress(vm_addr, addr)) in ResolvePastLoadAddress()
643 TargetSP target_sp(GetSP()); in ResolveSymbolContextForAddress() local
644 if (target_sp) in ResolveSymbolContextForAddress()
645 target_sp->GetImages().ResolveSymbolContextForAddress(addr.ref(), scope, in ResolveSymbolContextForAddress()
657 TargetSP target_sp(GetSP()); in ReadMemory() local
658 if (target_sp) { in ReadMemory()
659 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in ReadMemory()
661 target_sp->ReadMemory(addr.ref(), buf, size, sb_error.ref(), true); in ReadMemory()
710 TargetSP target_sp(GetSP()); in BreakpointCreateByLocation() local
711 if (target_sp && line != 0) { in BreakpointCreateByLocation()
712 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByLocation()
723 sb_bp = target_sp->CreateBreakpoint( in BreakpointCreateByLocation()
739 TargetSP target_sp(GetSP()); in BreakpointCreateByLocation() local
740 if (target_sp && line != 0) { in BreakpointCreateByLocation()
741 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByLocation()
751 sb_bp = target_sp->CreateBreakpoint( in BreakpointCreateByLocation()
765 TargetSP target_sp(GetSP()); in BreakpointCreateByName() local
766 if (target_sp.get()) { in BreakpointCreateByName()
767 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByName()
776 sb_bp = target_sp->CreateBreakpoint( in BreakpointCreateByName()
780 sb_bp = target_sp->CreateBreakpoint( in BreakpointCreateByName()
820 TargetSP target_sp(GetSP()); in BreakpointCreateByName() local
821 if (target_sp && symbol_name && symbol_name[0]) { in BreakpointCreateByName()
825 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByName()
827 sb_bp = target_sp->CreateBreakpoint(module_list.get(), comp_unit_list.get(), in BreakpointCreateByName()
866 TargetSP target_sp(GetSP()); in BreakpointCreateByNames() local
867 if (target_sp && num_names > 0) { in BreakpointCreateByNames()
868 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByNames()
873 sb_bp = target_sp->CreateBreakpoint( in BreakpointCreateByNames()
911 TargetSP target_sp(GetSP()); in BreakpointCreateByRegex() local
912 if (target_sp && symbol_name_regex && symbol_name_regex[0]) { in BreakpointCreateByRegex()
913 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByRegex()
919 sb_bp = target_sp->CreateFuncRegexBreakpoint( in BreakpointCreateByRegex()
931 TargetSP target_sp(GetSP()); in BreakpointCreateByAddress() local
932 if (target_sp) { in BreakpointCreateByAddress()
933 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByAddress()
935 sb_bp = target_sp->CreateBreakpoint(address, false, hardware); in BreakpointCreateByAddress()
945 TargetSP target_sp(GetSP()); in BreakpointCreateBySBAddress() local
950 if (target_sp) { in BreakpointCreateBySBAddress()
951 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateBySBAddress()
953 sb_bp = target_sp->CreateBreakpoint(sb_address.ref(), false, hardware); in BreakpointCreateBySBAddress()
997 TargetSP target_sp(GetSP()); in BreakpointCreateBySourceRegex() local
998 if (target_sp && source_regex && source_regex[0]) { in BreakpointCreateBySourceRegex()
999 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateBySourceRegex()
1008 sb_bp = target_sp->CreateSourceRegexBreakpoint( in BreakpointCreateBySourceRegex()
1022 TargetSP target_sp(GetSP()); in BreakpointCreateForException() local
1023 if (target_sp) { in BreakpointCreateForException()
1024 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateForException()
1026 sb_bp = target_sp->CreateExceptionBreakpoint(language, catch_bp, throw_bp, in BreakpointCreateForException()
1041 TargetSP target_sp(GetSP()); in BreakpointCreateFromScript() local
1042 if (target_sp) { in BreakpointCreateFromScript()
1043 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateFromScript()
1048 target_sp->CreateScriptedBreakpoint(class_name, in BreakpointCreateFromScript()
1063 TargetSP target_sp(GetSP()); in GetNumBreakpoints() local
1064 if (target_sp) { in GetNumBreakpoints()
1066 return target_sp->GetBreakpointList().GetSize(); in GetNumBreakpoints()
1075 TargetSP target_sp(GetSP()); in GetBreakpointAtIndex() local
1076 if (target_sp) { in GetBreakpointAtIndex()
1078 sb_breakpoint = target_sp->GetBreakpointList().GetBreakpointAtIndex(idx); in GetBreakpointAtIndex()
1087 TargetSP target_sp(GetSP()); in BreakpointDelete() local
1088 if (target_sp) { in BreakpointDelete()
1089 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointDelete()
1090 result = target_sp->RemoveBreakpointByID(bp_id); in BreakpointDelete()
1100 TargetSP target_sp(GetSP()); in FindBreakpointByID() local
1101 if (target_sp && bp_id != LLDB_INVALID_BREAK_ID) { in FindBreakpointByID()
1102 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in FindBreakpointByID()
1103 sb_breakpoint = target_sp->GetBreakpointByID(bp_id); in FindBreakpointByID()
1113 TargetSP target_sp(GetSP()); in FindBreakpointsByName() local
1114 if (target_sp) { in FindBreakpointsByName()
1115 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in FindBreakpointsByName()
1117 target_sp->GetBreakpointList().FindBreakpointsByName(name); in FindBreakpointsByName()
1135 TargetSP target_sp(GetSP()); in GetBreakpointNames() local
1136 if (target_sp) { in GetBreakpointNames()
1137 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in GetBreakpointNames()
1140 target_sp->GetBreakpointNames(name_vec); in GetBreakpointNames()
1149 TargetSP target_sp(GetSP()); in DeleteBreakpointName() local
1150 if (target_sp) { in DeleteBreakpointName()
1151 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in DeleteBreakpointName()
1152 target_sp->DeleteBreakpointName(ConstString(name)); in DeleteBreakpointName()
1159 TargetSP target_sp(GetSP()); in EnableAllBreakpoints() local
1160 if (target_sp) { in EnableAllBreakpoints()
1161 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in EnableAllBreakpoints()
1162 target_sp->EnableAllowedBreakpoints(); in EnableAllBreakpoints()
1171 TargetSP target_sp(GetSP()); in DisableAllBreakpoints() local
1172 if (target_sp) { in DisableAllBreakpoints()
1173 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in DisableAllBreakpoints()
1174 target_sp->DisableAllowedBreakpoints(); in DisableAllBreakpoints()
1183 TargetSP target_sp(GetSP()); in DeleteAllBreakpoints() local
1184 if (target_sp) { in DeleteAllBreakpoints()
1185 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in DeleteAllBreakpoints()
1186 target_sp->RemoveAllowedBreakpoints(); in DeleteAllBreakpoints()
1206 TargetSP target_sp(GetSP()); in BreakpointsCreateFromFile() local
1207 if (!target_sp) { in BreakpointsCreateFromFile()
1212 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointsCreateFromFile()
1221 sberr.ref() = target_sp->CreateBreakpointsFromFile(source_file.ref(), in BreakpointsCreateFromFile()
1238 TargetSP target_sp(GetSP()); in BreakpointsWriteToFile() local
1239 if (!target_sp) { in BreakpointsWriteToFile()
1253 TargetSP target_sp(GetSP()); in BreakpointsWriteToFile() local
1254 if (!target_sp) { in BreakpointsWriteToFile()
1259 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointsWriteToFile()
1262 sberr.ref() = target_sp->SerializeBreakpointsToFile(dest_file.ref(), in BreakpointsWriteToFile()
1270 TargetSP target_sp(GetSP()); in GetNumWatchpoints() local
1271 if (target_sp) { in GetNumWatchpoints()
1273 return target_sp->GetWatchpointList().GetSize(); in GetNumWatchpoints()
1282 TargetSP target_sp(GetSP()); in GetWatchpointAtIndex() local
1283 if (target_sp) { in GetWatchpointAtIndex()
1285 sb_watchpoint.SetSP(target_sp->GetWatchpointList().GetByIndex(idx)); in GetWatchpointAtIndex()
1294 TargetSP target_sp(GetSP()); in DeleteWatchpoint() local
1295 if (target_sp) { in DeleteWatchpoint()
1296 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in DeleteWatchpoint()
1298 target_sp->GetWatchpointList().GetListMutex(lock); in DeleteWatchpoint()
1299 result = target_sp->RemoveWatchpointByID(wp_id); in DeleteWatchpoint()
1310 TargetSP target_sp(GetSP()); in FindWatchpointByID() local
1311 if (target_sp && wp_id != LLDB_INVALID_WATCH_ID) { in FindWatchpointByID()
1312 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in FindWatchpointByID()
1314 target_sp->GetWatchpointList().GetListMutex(lock); in FindWatchpointByID()
1315 watchpoint_sp = target_sp->GetWatchpointList().FindByID(wp_id); in FindWatchpointByID()
1329 TargetSP target_sp(GetSP()); in WatchAddress() local
1330 if (target_sp && (read || write) && addr != LLDB_INVALID_ADDRESS && in WatchAddress()
1332 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in WatchAddress()
1349 target_sp->CreateWatchpoint(addr, size, type, watch_type, cw_error); in WatchAddress()
1360 TargetSP target_sp(GetSP()); in EnableAllWatchpoints() local
1361 if (target_sp) { in EnableAllWatchpoints()
1362 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in EnableAllWatchpoints()
1364 target_sp->GetWatchpointList().GetListMutex(lock); in EnableAllWatchpoints()
1365 target_sp->EnableAllWatchpoints(); in EnableAllWatchpoints()
1374 TargetSP target_sp(GetSP()); in DisableAllWatchpoints() local
1375 if (target_sp) { in DisableAllWatchpoints()
1376 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in DisableAllWatchpoints()
1378 target_sp->GetWatchpointList().GetListMutex(lock); in DisableAllWatchpoints()
1379 target_sp->DisableAllWatchpoints(); in DisableAllWatchpoints()
1440 TargetSP target_sp(GetSP()); in DeleteAllWatchpoints() local
1441 if (target_sp) { in DeleteAllWatchpoints()
1442 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in DeleteAllWatchpoints()
1444 target_sp->GetWatchpointList().GetListMutex(lock); in DeleteAllWatchpoints()
1445 target_sp->RemoveAllWatchpoints(); in DeleteAllWatchpoints()
1455 TargetSP target_sp(GetSP()); in AppendImageSearchPath() local
1456 if (!target_sp) in AppendImageSearchPath()
1465 target_sp->GetImageSearchPathList().Append(srFrom, srTo, true); in AppendImageSearchPath()
1480 TargetSP target_sp(GetSP()); in AddModule() local
1481 if (target_sp) { in AddModule()
1491 target_sp->GetPlatform().get(), triple); in AddModule()
1493 module_spec.GetArchitecture() = target_sp->GetArchitecture(); in AddModule()
1498 sb_module.SetSP(target_sp->GetOrCreateModule(module_spec, true /* notify */)); in AddModule()
1507 TargetSP target_sp(GetSP()); in AddModule() local
1508 if (target_sp) in AddModule()
1509 sb_module.SetSP(target_sp->GetOrCreateModule(*module_spec.m_opaque_up, in AddModule()
1517 TargetSP target_sp(GetSP()); in AddModule() local
1518 if (target_sp) { in AddModule()
1519 target_sp->GetImages().AppendIfNeeded(module.GetSP()); in AddModule()
1529 TargetSP target_sp(GetSP()); in GetNumModules() local
1530 if (target_sp) { in GetNumModules()
1532 num = target_sp->GetImages().GetSize(); in GetNumModules()
1548 TargetSP target_sp(GetSP()); in FindModule() local
1549 if (target_sp && sb_file_spec.IsValid()) { in FindModule()
1552 sb_module.SetSP(target_sp->GetImages().FindFirstModule(module_spec)); in FindModule()
1561 const TargetSP target_sp(GetSP()); in FindCompileUnits() local
1562 if (target_sp && sb_file_spec.IsValid()) in FindCompileUnits()
1563 target_sp->GetImages().FindCompileUnits(*sb_file_spec, *sb_sc_list); in FindCompileUnits()
1570 TargetSP target_sp(GetSP()); in GetByteOrder() local
1571 if (target_sp) in GetByteOrder()
1572 return target_sp->GetArchitecture().GetByteOrder(); in GetByteOrder()
1579 TargetSP target_sp(GetSP()); in GetTriple() local
1580 if (target_sp) { in GetTriple()
1581 std::string triple(target_sp->GetArchitecture().GetTriple().str()); in GetTriple()
1594 TargetSP target_sp(GetSP()); in GetABIName() local
1595 if (target_sp) { in GetABIName()
1596 std::string abi_name(target_sp->GetABIName().str()); in GetABIName()
1606 TargetSP target_sp(GetSP()); in GetDataByteSize() local
1607 if (target_sp) { in GetDataByteSize()
1608 return target_sp->GetArchitecture().GetDataByteSize(); in GetDataByteSize()
1616 TargetSP target_sp(GetSP()); in GetCodeByteSize() local
1617 if (target_sp) { in GetCodeByteSize()
1618 return target_sp->GetArchitecture().GetCodeByteSize(); in GetCodeByteSize()
1626 TargetSP target_sp(GetSP()); in GetMaximumNumberOfChildrenToDisplay() local
1627 if(target_sp){ in GetMaximumNumberOfChildrenToDisplay()
1628 return target_sp->GetMaximumNumberOfChildrenToDisplay(); in GetMaximumNumberOfChildrenToDisplay()
1636 TargetSP target_sp(GetSP()); in GetAddressByteSize() local
1637 if (target_sp) in GetAddressByteSize()
1638 return target_sp->GetArchitecture().GetAddressByteSize(); in GetAddressByteSize()
1647 TargetSP target_sp(GetSP()); in GetModuleAtIndex() local
1648 if (target_sp) { in GetModuleAtIndex()
1650 module_sp = target_sp->GetImages().GetModuleAtIndex(idx); in GetModuleAtIndex()
1660 TargetSP target_sp(GetSP()); in RemoveModule() local
1661 if (target_sp) in RemoveModule()
1662 return target_sp->GetImages().Remove(module.GetSP()); in RemoveModule()
1669 TargetSP target_sp(GetSP()); in GetBroadcaster() local
1670 SBBroadcaster broadcaster(target_sp.get(), false); in GetBroadcaster()
1681 TargetSP target_sp(GetSP()); in GetDescription() local
1682 if (target_sp) { in GetDescription()
1683 target_sp->Dump(&strm, description_level); in GetDescription()
1698 TargetSP target_sp(GetSP()); in FindFunctions() local
1699 if (!target_sp) in FindFunctions()
1707 target_sp->GetImages().FindFunctions(ConstString(name), mask, in FindFunctions()
1720 TargetSP target_sp(GetSP()); in FindGlobalFunctions() local
1721 if (target_sp) { in FindGlobalFunctions()
1729 target_sp->GetImages().FindFunctions(RegularExpression(name_ref), in FindGlobalFunctions()
1734 target_sp->GetImages().FindFunctions(RegularExpression(regexstr), in FindGlobalFunctions()
1738 target_sp->GetImages().FindFunctions(ConstString(name), in FindGlobalFunctions()
1751 TargetSP target_sp(GetSP()); in FindFirstType() local
1752 if (typename_cstr && typename_cstr[0] && target_sp) { in FindFirstType()
1757 const ModuleList &module_list = target_sp->GetImages(); in FindFirstType()
1770 if (auto process_sp = target_sp->GetProcessSP()) { in FindFirstType()
1781 for (auto *type_system : target_sp->GetScratchTypeSystems()) in FindFirstType()
1792 TargetSP target_sp(GetSP()); in GetBasicType() local
1793 if (target_sp) { in GetBasicType()
1794 for (auto *type_system : target_sp->GetScratchTypeSystems()) in GetBasicType()
1805 TargetSP target_sp(GetSP()); in FindTypes() local
1806 if (typename_cstr && typename_cstr[0] && target_sp) { in FindTypes()
1807 ModuleList &images = target_sp->GetImages(); in FindTypes()
1822 if (auto process_sp = target_sp->GetProcessSP()) { in FindTypes()
1835 for (auto *type_system : target_sp->GetScratchTypeSystems()) in FindTypes()
1850 TargetSP target_sp(GetSP()); in FindGlobalVariables() local
1851 if (name && target_sp) { in FindGlobalVariables()
1853 target_sp->GetImages().FindGlobalVariables(ConstString(name), max_matches, in FindGlobalVariables()
1856 ExecutionContextScope *exe_scope = target_sp->GetProcessSP().get(); in FindGlobalVariables()
1858 exe_scope = target_sp.get(); in FindGlobalVariables()
1878 TargetSP target_sp(GetSP()); in FindGlobalVariables() local
1879 if (name && target_sp) { in FindGlobalVariables()
1886 target_sp->GetImages().FindGlobalVariables(ConstString(name), max_matches, in FindGlobalVariables()
1890 target_sp->GetImages().FindGlobalVariables(RegularExpression(name_ref), in FindGlobalVariables()
1895 target_sp->GetImages().FindGlobalVariables(RegularExpression(regexstr), in FindGlobalVariables()
1900 ExecutionContextScope *exe_scope = target_sp->GetProcessSP().get(); in FindGlobalVariables()
1902 exe_scope = target_sp.get(); in FindGlobalVariables()
1945 TargetSP target_sp(GetSP()); in ReadInstructions() local
1946 if (target_sp) { in ReadInstructions()
1951 target_sp->GetArchitecture().GetMaximumOpcodeByteSize() * count, 0); in ReadInstructions()
1956 target_sp->ReadMemory(*addr_ptr, data.GetBytes(), data.GetByteSize(), in ReadInstructions()
1960 target_sp->GetArchitecture(), nullptr, flavor_string, *addr_ptr, in ReadInstructions()
1984 TargetSP target_sp(GetSP()); in GetInstructionsWithFlavor() local
1985 if (target_sp) { in GetInstructionsWithFlavor()
1994 target_sp->GetArchitecture(), nullptr, flavor_string, addr, buf, size, in GetInstructionsWithFlavor()
2025 TargetSP target_sp(GetSP()); in SetSectionLoadAddress() local
2026 if (target_sp) { in SetSectionLoadAddress()
2036 ProcessSP process_sp(target_sp->GetProcessSP()); in SetSectionLoadAddress()
2037 if (target_sp->SetSectionLoadAddress(section_sp, section_base_addr)) { in SetSectionLoadAddress()
2042 target_sp->ModulesDidLoad(module_list); in SetSectionLoadAddress()
2062 TargetSP target_sp(GetSP()); in ClearSectionLoadAddress() local
2063 if (target_sp) { in ClearSectionLoadAddress()
2069 ProcessSP process_sp(target_sp->GetProcessSP()); in ClearSectionLoadAddress()
2070 if (target_sp->SetSectionUnloaded(section_sp)) { in ClearSectionLoadAddress()
2075 target_sp->ModulesDidUnload(module_list, false); in ClearSectionLoadAddress()
2097 TargetSP target_sp(GetSP()); in SetModuleLoadAddress() local
2098 if (target_sp) { in SetModuleLoadAddress()
2102 if (module_sp->SetLoadAddress(*target_sp, slide_offset, true, changed)) { in SetModuleLoadAddress()
2108 target_sp->ModulesDidLoad(module_list); in SetModuleLoadAddress()
2110 ProcessSP process_sp(target_sp->GetProcessSP()); in SetModuleLoadAddress()
2131 TargetSP target_sp(GetSP()); in ClearModuleLoadAddress() local
2132 if (target_sp) { in ClearModuleLoadAddress()
2139 ProcessSP process_sp(target_sp->GetProcessSP()); in ClearModuleLoadAddress()
2146 changed |= target_sp->SetSectionUnloaded(section_sp); in ClearModuleLoadAddress()
2151 target_sp->ModulesDidUnload(module_list, false); in ClearModuleLoadAddress()
2153 ProcessSP process_sp(target_sp->GetProcessSP()); in ClearModuleLoadAddress()
2182 TargetSP target_sp(GetSP()); in FindSymbols() local
2183 if (target_sp) in FindSymbols()
2184 target_sp->GetImages().FindSymbolsWithNameAndType( in FindSymbols()
2193 TargetSP target_sp(GetSP()); in EvaluateExpression() local
2194 if (!target_sp) in EvaluateExpression()
2199 target_sp->GetPreferDynamicValue(); in EvaluateExpression()
2212 TargetSP target_sp(GetSP()); in EvaluateExpression() local
2214 if (target_sp) { in EvaluateExpression()
2219 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in EvaluateExpression()
2242 TargetSP target_sp(GetSP()); in GetStackRedZoneSize() local
2243 if (target_sp) { in GetStackRedZoneSize()
2245 ProcessSP process_sp(target_sp->GetProcessSP()); in GetStackRedZoneSize()
2249 abi_sp = ABI::FindPlugin(ProcessSP(), target_sp->GetArchitecture()); in GetStackRedZoneSize()
2259 TargetSP target_sp(GetSP()); in IsLoaded() local
2260 if (!target_sp) in IsLoaded()
2267 return module_sp->IsLoadedInTarget(target_sp.get()); in IsLoaded()
2274 TargetSP target_sp(GetSP()); in GetLaunchInfo() local
2275 if (target_sp) in GetLaunchInfo()
2283 TargetSP target_sp(GetSP()); in SetLaunchInfo() local
2284 if (target_sp) in SetLaunchInfo()
2290 TargetSP target_sp(GetSP()); in GetEnvironment() local
2292 if (target_sp) { in GetEnvironment()
2293 return SBEnvironment(target_sp->GetEnvironment()); in GetEnvironment()
2301 TargetSP target_sp(GetSP()); in GetTrace() local
2303 if (target_sp) in GetTrace()
2304 return SBTrace(target_sp->GetTrace()); in GetTrace()
2311 TargetSP target_sp(GetSP()); in CreateTrace() local
2314 if (target_sp) { in CreateTrace()
2315 if (llvm::Expected<lldb::TraceSP> trace_sp = target_sp->CreateTrace()) { in CreateTrace()