Lines Matching refs:target_sp
103 SBTarget::SBTarget(const TargetSP &target_sp) : m_opaque_sp(target_sp) { in SBTarget() argument
104 LLDB_INSTRUMENT_VA(this, target_sp); in SBTarget()
168 TargetSP target_sp(GetSP()); in GetProcess() local
169 if (target_sp) { in GetProcess()
170 process_sp = target_sp->GetProcessSP(); in GetProcess()
180 TargetSP target_sp(GetSP()); in GetPlatform() local
181 if (!target_sp) in GetPlatform()
185 platform.m_opaque_sp = target_sp->GetPlatform(); in GetPlatform()
194 TargetSP target_sp(GetSP()); in GetDebugger() local
195 if (target_sp) in GetDebugger()
196 debugger.reset(target_sp->GetDebugger().shared_from_this()); in GetDebugger()
210 TargetSP target_sp(GetSP()); in GetStatistics() local
211 if (!target_sp) in GetStatistics()
215 target_sp->GetDebugger(), target_sp.get(), in GetStatistics()
225 TargetSP target_sp(GetSP()); in SetCollectingStats() local
226 if (!target_sp) in SetCollectingStats()
234 TargetSP target_sp(GetSP()); in GetCollectingStats() local
235 if (!target_sp) in GetCollectingStats()
251 TargetSP target_sp(GetSP()); in LoadCore() local
252 if (target_sp) { in LoadCore()
255 ProcessSP process_sp(target_sp->CreateProcess( in LoadCore()
256 target_sp->GetDebugger().GetListener(), "", &filespec, false)); in LoadCore()
274 TargetSP target_sp = GetSP(); in LaunchSimple() local
275 if (!target_sp) in LaunchSimple()
280 if (Module *exe_module = target_sp->GetExecutableModulePointer()) in LaunchSimple()
298 TargetSP target_sp(GetSP()); in Install() local
299 if (target_sp) { in Install()
300 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in Install()
301 sb_error.ref() = target_sp->Install(nullptr); in Install()
318 TargetSP target_sp(GetSP()); in Launch() local
320 if (target_sp) { in Launch()
321 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in Launch()
330 process_sp = target_sp->GetProcessSP(); in Launch()
361 Module *exe_module = target_sp->GetExecutableModulePointer(); in Launch()
367 auto default_launch_info = target_sp->GetProcessLaunchInfo(); in Launch()
374 auto default_launch_info = target_sp->GetProcessLaunchInfo(); in Launch()
381 error.SetError(target_sp->Launch(launch_info, nullptr)); in Launch()
383 sb_process.SetSP(target_sp->GetProcessSP()); in Launch()
395 TargetSP target_sp(GetSP()); in Launch() local
397 if (target_sp) { in Launch()
398 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in Launch()
401 ProcessSP process_sp = target_sp->GetProcessSP(); in Launch()
418 Module *exe_module = target_sp->GetExecutableModulePointer(); in Launch()
423 const ArchSpec &arch_spec = target_sp->GetArchitecture(); in Launch()
427 error.SetError(target_sp->Launch(launch_info, nullptr)); in Launch()
429 sb_process.SetSP(target_sp->GetProcessSP()); in Launch()
441 TargetSP target_sp(GetSP()); in Attach() local
443 if (target_sp) { in Attach()
447 PlatformSP platform_sp = target_sp->GetPlatform(); in Attach()
461 error.SetError(AttachToProcess(attach_info, *target_sp)); in Attach()
463 sb_process.SetSP(target_sp->GetProcessSP()); in Attach()
479 TargetSP target_sp(GetSP()); in AttachToProcessWithID() local
481 if (target_sp) { in AttachToProcessWithID()
488 if (target_sp->GetPlatform()->GetProcessInfo(pid, instance_info)) in AttachToProcessWithID()
491 error.SetError(AttachToProcess(attach_info, *target_sp)); in AttachToProcessWithID()
493 sb_process.SetSP(target_sp->GetProcessSP()); in AttachToProcessWithID()
509 TargetSP target_sp(GetSP()); in AttachToProcessWithName() local
511 if (name && target_sp) { in AttachToProcessWithName()
518 error.SetError(AttachToProcess(attach_info, *target_sp)); in AttachToProcessWithName()
520 sb_process.SetSP(target_sp->GetProcessSP()); in AttachToProcessWithName()
534 TargetSP target_sp(GetSP()); in ConnectRemote() local
536 if (target_sp) { in ConnectRemote()
537 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in ConnectRemote()
540 target_sp->CreateProcess(listener.m_opaque_sp, plugin_name, nullptr, in ConnectRemote()
543 process_sp = target_sp->CreateProcess( in ConnectRemote()
544 target_sp->GetDebugger().GetListener(), plugin_name, nullptr, true); in ConnectRemote()
563 TargetSP target_sp(GetSP()); in GetExecutable() local
564 if (target_sp) { in GetExecutable()
565 Module *exe_module = target_sp->GetExecutableModulePointer(); in GetExecutable()
587 void SBTarget::SetSP(const lldb::TargetSP &target_sp) { in SetSP() argument
588 m_opaque_sp = target_sp; in SetSP()
596 TargetSP target_sp(GetSP()); in ResolveLoadAddress() local
597 if (target_sp) { in ResolveLoadAddress()
598 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in ResolveLoadAddress()
599 if (target_sp->ResolveLoadAddress(vm_addr, addr)) in ResolveLoadAddress()
614 TargetSP target_sp(GetSP()); in ResolveFileAddress() local
615 if (target_sp) { in ResolveFileAddress()
616 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in ResolveFileAddress()
617 if (target_sp->ResolveFileAddress(file_addr, addr)) in ResolveFileAddress()
631 TargetSP target_sp(GetSP()); in ResolvePastLoadAddress() local
632 if (target_sp) { in ResolvePastLoadAddress()
633 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in ResolvePastLoadAddress()
634 if (target_sp->ResolveLoadAddress(vm_addr, addr)) in ResolvePastLoadAddress()
652 TargetSP target_sp(GetSP()); in ResolveSymbolContextForAddress() local
653 if (target_sp) in ResolveSymbolContextForAddress()
654 target_sp->GetImages().ResolveSymbolContextForAddress(addr.ref(), scope, in ResolveSymbolContextForAddress()
666 TargetSP target_sp(GetSP()); in ReadMemory() local
667 if (target_sp) { in ReadMemory()
668 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in ReadMemory()
670 target_sp->ReadMemory(addr.ref(), buf, size, sb_error.ref(), true); in ReadMemory()
719 TargetSP target_sp(GetSP()); in BreakpointCreateByLocation() local
720 if (target_sp && line != 0) { in BreakpointCreateByLocation()
721 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByLocation()
732 sb_bp = target_sp->CreateBreakpoint( in BreakpointCreateByLocation()
748 TargetSP target_sp(GetSP()); in BreakpointCreateByLocation() local
749 if (target_sp && line != 0) { in BreakpointCreateByLocation()
750 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByLocation()
760 sb_bp = target_sp->CreateBreakpoint( in BreakpointCreateByLocation()
774 TargetSP target_sp(GetSP()); in BreakpointCreateByName() local
775 if (target_sp.get()) { in BreakpointCreateByName()
776 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByName()
785 sb_bp = target_sp->CreateBreakpoint( in BreakpointCreateByName()
789 sb_bp = target_sp->CreateBreakpoint( in BreakpointCreateByName()
829 TargetSP target_sp(GetSP()); in BreakpointCreateByName() local
830 if (target_sp && symbol_name && symbol_name[0]) { in BreakpointCreateByName()
834 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByName()
836 sb_bp = target_sp->CreateBreakpoint(module_list.get(), comp_unit_list.get(), in BreakpointCreateByName()
875 TargetSP target_sp(GetSP()); in BreakpointCreateByNames() local
876 if (target_sp && num_names > 0) { in BreakpointCreateByNames()
877 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByNames()
882 sb_bp = target_sp->CreateBreakpoint( in BreakpointCreateByNames()
920 TargetSP target_sp(GetSP()); in BreakpointCreateByRegex() local
921 if (target_sp && symbol_name_regex && symbol_name_regex[0]) { in BreakpointCreateByRegex()
922 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByRegex()
928 sb_bp = target_sp->CreateFuncRegexBreakpoint( in BreakpointCreateByRegex()
940 TargetSP target_sp(GetSP()); in BreakpointCreateByAddress() local
941 if (target_sp) { in BreakpointCreateByAddress()
942 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateByAddress()
944 sb_bp = target_sp->CreateBreakpoint(address, false, hardware); in BreakpointCreateByAddress()
954 TargetSP target_sp(GetSP()); in BreakpointCreateBySBAddress() local
959 if (target_sp) { in BreakpointCreateBySBAddress()
960 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateBySBAddress()
962 sb_bp = target_sp->CreateBreakpoint(sb_address.ref(), false, hardware); in BreakpointCreateBySBAddress()
1006 TargetSP target_sp(GetSP()); in BreakpointCreateBySourceRegex() local
1007 if (target_sp && source_regex && source_regex[0]) { in BreakpointCreateBySourceRegex()
1008 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateBySourceRegex()
1017 sb_bp = target_sp->CreateSourceRegexBreakpoint( in BreakpointCreateBySourceRegex()
1031 TargetSP target_sp(GetSP()); in BreakpointCreateForException() local
1032 if (target_sp) { in BreakpointCreateForException()
1033 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateForException()
1035 sb_bp = target_sp->CreateExceptionBreakpoint(language, catch_bp, throw_bp, in BreakpointCreateForException()
1050 TargetSP target_sp(GetSP()); in BreakpointCreateFromScript() local
1051 if (target_sp) { in BreakpointCreateFromScript()
1052 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointCreateFromScript()
1057 target_sp->CreateScriptedBreakpoint(class_name, in BreakpointCreateFromScript()
1072 TargetSP target_sp(GetSP()); in GetNumBreakpoints() local
1073 if (target_sp) { in GetNumBreakpoints()
1075 return target_sp->GetBreakpointList().GetSize(); in GetNumBreakpoints()
1084 TargetSP target_sp(GetSP()); in GetBreakpointAtIndex() local
1085 if (target_sp) { in GetBreakpointAtIndex()
1087 sb_breakpoint = target_sp->GetBreakpointList().GetBreakpointAtIndex(idx); in GetBreakpointAtIndex()
1096 TargetSP target_sp(GetSP()); in BreakpointDelete() local
1097 if (target_sp) { in BreakpointDelete()
1098 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointDelete()
1099 result = target_sp->RemoveBreakpointByID(bp_id); in BreakpointDelete()
1109 TargetSP target_sp(GetSP()); in FindBreakpointByID() local
1110 if (target_sp && bp_id != LLDB_INVALID_BREAK_ID) { in FindBreakpointByID()
1111 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in FindBreakpointByID()
1112 sb_breakpoint = target_sp->GetBreakpointByID(bp_id); in FindBreakpointByID()
1122 TargetSP target_sp(GetSP()); in FindBreakpointsByName() local
1123 if (target_sp) { in FindBreakpointsByName()
1124 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in FindBreakpointsByName()
1126 target_sp->GetBreakpointList().FindBreakpointsByName(name); in FindBreakpointsByName()
1144 TargetSP target_sp(GetSP()); in GetBreakpointNames() local
1145 if (target_sp) { in GetBreakpointNames()
1146 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in GetBreakpointNames()
1149 target_sp->GetBreakpointNames(name_vec); in GetBreakpointNames()
1158 TargetSP target_sp(GetSP()); in DeleteBreakpointName() local
1159 if (target_sp) { in DeleteBreakpointName()
1160 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in DeleteBreakpointName()
1161 target_sp->DeleteBreakpointName(ConstString(name)); in DeleteBreakpointName()
1168 TargetSP target_sp(GetSP()); in EnableAllBreakpoints() local
1169 if (target_sp) { in EnableAllBreakpoints()
1170 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in EnableAllBreakpoints()
1171 target_sp->EnableAllowedBreakpoints(); in EnableAllBreakpoints()
1180 TargetSP target_sp(GetSP()); in DisableAllBreakpoints() local
1181 if (target_sp) { in DisableAllBreakpoints()
1182 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in DisableAllBreakpoints()
1183 target_sp->DisableAllowedBreakpoints(); in DisableAllBreakpoints()
1192 TargetSP target_sp(GetSP()); in DeleteAllBreakpoints() local
1193 if (target_sp) { in DeleteAllBreakpoints()
1194 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in DeleteAllBreakpoints()
1195 target_sp->RemoveAllowedBreakpoints(); in DeleteAllBreakpoints()
1215 TargetSP target_sp(GetSP()); in BreakpointsCreateFromFile() local
1216 if (!target_sp) { in BreakpointsCreateFromFile()
1221 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointsCreateFromFile()
1230 sberr.ref() = target_sp->CreateBreakpointsFromFile(source_file.ref(), in BreakpointsCreateFromFile()
1247 TargetSP target_sp(GetSP()); in BreakpointsWriteToFile() local
1248 if (!target_sp) { in BreakpointsWriteToFile()
1262 TargetSP target_sp(GetSP()); in BreakpointsWriteToFile() local
1263 if (!target_sp) { in BreakpointsWriteToFile()
1268 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in BreakpointsWriteToFile()
1271 sberr.ref() = target_sp->SerializeBreakpointsToFile(dest_file.ref(), in BreakpointsWriteToFile()
1279 TargetSP target_sp(GetSP()); in GetNumWatchpoints() local
1280 if (target_sp) { in GetNumWatchpoints()
1282 return target_sp->GetWatchpointList().GetSize(); in GetNumWatchpoints()
1291 TargetSP target_sp(GetSP()); in GetWatchpointAtIndex() local
1292 if (target_sp) { in GetWatchpointAtIndex()
1294 sb_watchpoint.SetSP(target_sp->GetWatchpointList().GetByIndex(idx)); in GetWatchpointAtIndex()
1303 TargetSP target_sp(GetSP()); in DeleteWatchpoint() local
1304 if (target_sp) { in DeleteWatchpoint()
1305 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in DeleteWatchpoint()
1307 target_sp->GetWatchpointList().GetListMutex(lock); in DeleteWatchpoint()
1308 result = target_sp->RemoveWatchpointByID(wp_id); in DeleteWatchpoint()
1319 TargetSP target_sp(GetSP()); in FindWatchpointByID() local
1320 if (target_sp && wp_id != LLDB_INVALID_WATCH_ID) { in FindWatchpointByID()
1321 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in FindWatchpointByID()
1323 target_sp->GetWatchpointList().GetListMutex(lock); in FindWatchpointByID()
1324 watchpoint_sp = target_sp->GetWatchpointList().FindByID(wp_id); in FindWatchpointByID()
1350 TargetSP target_sp(GetSP()); in WatchpointCreateByAddress() local
1363 if (target_sp && addr != LLDB_INVALID_ADDRESS && size > 0) { in WatchpointCreateByAddress()
1364 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in WatchpointCreateByAddress()
1370 target_sp->CreateWatchpoint(addr, size, type, watch_type, cw_error); in WatchpointCreateByAddress()
1381 TargetSP target_sp(GetSP()); in EnableAllWatchpoints() local
1382 if (target_sp) { in EnableAllWatchpoints()
1383 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in EnableAllWatchpoints()
1385 target_sp->GetWatchpointList().GetListMutex(lock); in EnableAllWatchpoints()
1386 target_sp->EnableAllWatchpoints(); in EnableAllWatchpoints()
1395 TargetSP target_sp(GetSP()); in DisableAllWatchpoints() local
1396 if (target_sp) { in DisableAllWatchpoints()
1397 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in DisableAllWatchpoints()
1399 target_sp->GetWatchpointList().GetListMutex(lock); in DisableAllWatchpoints()
1400 target_sp->DisableAllWatchpoints(); in DisableAllWatchpoints()
1461 TargetSP target_sp(GetSP()); in DeleteAllWatchpoints() local
1462 if (target_sp) { in DeleteAllWatchpoints()
1463 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in DeleteAllWatchpoints()
1465 target_sp->GetWatchpointList().GetListMutex(lock); in DeleteAllWatchpoints()
1466 target_sp->RemoveAllWatchpoints(); in DeleteAllWatchpoints()
1476 TargetSP target_sp(GetSP()); in AppendImageSearchPath() local
1477 if (!target_sp) in AppendImageSearchPath()
1486 target_sp->GetImageSearchPathList().Append(srFrom, srTo, true); in AppendImageSearchPath()
1500 TargetSP target_sp(GetSP()); in AddModule() local
1501 if (!target_sp) in AddModule()
1513 Platform::GetAugmentedArchSpec(target_sp->GetPlatform().get(), triple); in AddModule()
1515 module_spec.GetArchitecture() = target_sp->GetArchitecture(); in AddModule()
1529 TargetSP target_sp(GetSP()); in AddModule() local
1530 if (target_sp) { in AddModule()
1531 sb_module.SetSP(target_sp->GetOrCreateModule(*module_spec.m_opaque_up, in AddModule()
1540 sb_module.SetSP(target_sp->GetOrCreateModule(*module_spec.m_opaque_up, in AddModule()
1548 if (sb_module.IsValid() && !target_sp->GetArchitecture().IsValid() && in AddModule()
1550 target_sp->SetArchitecture(sb_module.GetSP()->GetArchitecture()); in AddModule()
1557 TargetSP target_sp(GetSP()); in AddModule() local
1558 if (target_sp) { in AddModule()
1559 target_sp->GetImages().AppendIfNeeded(module.GetSP()); in AddModule()
1569 TargetSP target_sp(GetSP()); in GetNumModules() local
1570 if (target_sp) { in GetNumModules()
1572 num = target_sp->GetImages().GetSize(); in GetNumModules()
1588 TargetSP target_sp(GetSP()); in FindModule() local
1589 if (target_sp && sb_file_spec.IsValid()) { in FindModule()
1592 sb_module.SetSP(target_sp->GetImages().FindFirstModule(module_spec)); in FindModule()
1601 const TargetSP target_sp(GetSP()); in FindCompileUnits() local
1602 if (target_sp && sb_file_spec.IsValid()) in FindCompileUnits()
1603 target_sp->GetImages().FindCompileUnits(*sb_file_spec, *sb_sc_list); in FindCompileUnits()
1610 TargetSP target_sp(GetSP()); in GetByteOrder() local
1611 if (target_sp) in GetByteOrder()
1612 return target_sp->GetArchitecture().GetByteOrder(); in GetByteOrder()
1619 TargetSP target_sp(GetSP()); in GetTriple() local
1620 if (!target_sp) in GetTriple()
1623 std::string triple(target_sp->GetArchitecture().GetTriple().str()); in GetTriple()
1634 TargetSP target_sp(GetSP()); in GetABIName() local
1635 if (!target_sp) in GetABIName()
1638 std::string abi_name(target_sp->GetABIName().str()); in GetABIName()
1646 TargetSP target_sp(GetSP()); in GetLabel() local
1647 if (!target_sp) in GetLabel()
1650 return ConstString(target_sp->GetLabel().data()).AsCString(); in GetLabel()
1656 TargetSP target_sp(GetSP()); in SetLabel() local
1657 if (!target_sp) in SetLabel()
1660 return Status(target_sp->SetLabel(label)); in SetLabel()
1666 TargetSP target_sp(GetSP()); in GetDataByteSize() local
1667 if (target_sp) { in GetDataByteSize()
1668 return target_sp->GetArchitecture().GetDataByteSize(); in GetDataByteSize()
1676 TargetSP target_sp(GetSP()); in GetCodeByteSize() local
1677 if (target_sp) { in GetCodeByteSize()
1678 return target_sp->GetArchitecture().GetCodeByteSize(); in GetCodeByteSize()
1686 TargetSP target_sp(GetSP()); in GetMaximumNumberOfChildrenToDisplay() local
1687 if(target_sp){ in GetMaximumNumberOfChildrenToDisplay()
1688 return target_sp->GetMaximumNumberOfChildrenToDisplay(); in GetMaximumNumberOfChildrenToDisplay()
1696 TargetSP target_sp(GetSP()); in GetAddressByteSize() local
1697 if (target_sp) in GetAddressByteSize()
1698 return target_sp->GetArchitecture().GetAddressByteSize(); in GetAddressByteSize()
1707 TargetSP target_sp(GetSP()); in GetModuleAtIndex() local
1708 if (target_sp) { in GetModuleAtIndex()
1710 module_sp = target_sp->GetImages().GetModuleAtIndex(idx); in GetModuleAtIndex()
1720 TargetSP target_sp(GetSP()); in RemoveModule() local
1721 if (target_sp) in RemoveModule()
1722 return target_sp->GetImages().Remove(module.GetSP()); in RemoveModule()
1729 TargetSP target_sp(GetSP()); in GetBroadcaster() local
1730 SBBroadcaster broadcaster(target_sp.get(), false); in GetBroadcaster()
1741 TargetSP target_sp(GetSP()); in GetDescription() local
1742 if (target_sp) { in GetDescription()
1743 target_sp->Dump(&strm, description_level); in GetDescription()
1758 TargetSP target_sp(GetSP()); in FindFunctions() local
1759 if (!target_sp) in FindFunctions()
1767 target_sp->GetImages().FindFunctions(ConstString(name), mask, in FindFunctions()
1780 TargetSP target_sp(GetSP()); in FindGlobalFunctions() local
1781 if (target_sp) { in FindGlobalFunctions()
1789 target_sp->GetImages().FindFunctions(RegularExpression(name_ref), in FindGlobalFunctions()
1793 target_sp->GetImages().FindFunctions( in FindGlobalFunctions()
1799 target_sp->GetImages().FindFunctions(RegularExpression(regexstr), in FindGlobalFunctions()
1803 target_sp->GetImages().FindFunctions(ConstString(name), in FindGlobalFunctions()
1816 TargetSP target_sp(GetSP()); in FindFirstType() local
1817 if (typename_cstr && typename_cstr[0] && target_sp) { in FindFirstType()
1822 target_sp->GetImages().FindTypes(/*search_first=*/nullptr, query, results); in FindFirstType()
1827 if (auto process_sp = target_sp->GetProcessSP()) { in FindFirstType()
1838 for (auto type_system_sp : target_sp->GetScratchTypeSystems()) in FindFirstType()
1849 TargetSP target_sp(GetSP()); in GetBasicType() local
1850 if (target_sp) { in GetBasicType()
1851 for (auto type_system_sp : target_sp->GetScratchTypeSystems()) in GetBasicType()
1862 TargetSP target_sp(GetSP()); in FindTypes() local
1863 if (typename_cstr && typename_cstr[0] && target_sp) { in FindTypes()
1864 ModuleList &images = target_sp->GetImages(); in FindTypes()
1873 if (auto process_sp = target_sp->GetProcessSP()) { in FindTypes()
1886 for (auto type_system_sp : target_sp->GetScratchTypeSystems()) in FindTypes()
1901 TargetSP target_sp(GetSP()); in FindGlobalVariables() local
1902 if (name && target_sp) { in FindGlobalVariables()
1904 target_sp->GetImages().FindGlobalVariables(ConstString(name), max_matches, in FindGlobalVariables()
1907 ExecutionContextScope *exe_scope = target_sp->GetProcessSP().get(); in FindGlobalVariables()
1909 exe_scope = target_sp.get(); in FindGlobalVariables()
1929 TargetSP target_sp(GetSP()); in FindGlobalVariables() local
1930 if (name && target_sp) { in FindGlobalVariables()
1937 target_sp->GetImages().FindGlobalVariables(ConstString(name), max_matches, in FindGlobalVariables()
1941 target_sp->GetImages().FindGlobalVariables(RegularExpression(name_ref), in FindGlobalVariables()
1945 target_sp->GetImages().FindGlobalVariables( in FindGlobalVariables()
1951 target_sp->GetImages().FindGlobalVariables(RegularExpression(regexstr), in FindGlobalVariables()
1956 ExecutionContextScope *exe_scope = target_sp->GetProcessSP().get(); in FindGlobalVariables()
1958 exe_scope = target_sp.get(); in FindGlobalVariables()
2001 TargetSP target_sp(GetSP()); in ReadInstructions() local
2002 if (target_sp) { in ReadInstructions()
2007 target_sp->GetArchitecture().GetMaximumOpcodeByteSize() * count, 0); in ReadInstructions()
2012 target_sp->ReadMemory(*addr_ptr, data.GetBytes(), data.GetByteSize(), in ReadInstructions()
2016 target_sp->GetArchitecture(), nullptr, flavor_string, *addr_ptr, in ReadInstructions()
2031 TargetSP target_sp(GetSP()); in ReadInstructions() local
2032 if (target_sp) { in ReadInstructions()
2041 target_sp->GetArchitecture(), nullptr, flavor_string, *target_sp, in ReadInstructions()
2064 TargetSP target_sp(GetSP()); in GetInstructionsWithFlavor() local
2065 if (target_sp) { in GetInstructionsWithFlavor()
2074 target_sp->GetArchitecture(), nullptr, flavor_string, addr, buf, size, in GetInstructionsWithFlavor()
2105 TargetSP target_sp(GetSP()); in SetSectionLoadAddress() local
2106 if (target_sp) { in SetSectionLoadAddress()
2116 ProcessSP process_sp(target_sp->GetProcessSP()); in SetSectionLoadAddress()
2117 if (target_sp->SetSectionLoadAddress(section_sp, section_base_addr)) { in SetSectionLoadAddress()
2122 target_sp->ModulesDidLoad(module_list); in SetSectionLoadAddress()
2142 TargetSP target_sp(GetSP()); in ClearSectionLoadAddress() local
2143 if (target_sp) { in ClearSectionLoadAddress()
2149 ProcessSP process_sp(target_sp->GetProcessSP()); in ClearSectionLoadAddress()
2150 if (target_sp->SetSectionUnloaded(section_sp)) { in ClearSectionLoadAddress()
2155 target_sp->ModulesDidUnload(module_list, false); in ClearSectionLoadAddress()
2189 TargetSP target_sp(GetSP()); in SetModuleLoadAddress() local
2190 if (target_sp) { in SetModuleLoadAddress()
2194 if (module_sp->SetLoadAddress(*target_sp, slide_offset, true, changed)) { in SetModuleLoadAddress()
2200 target_sp->ModulesDidLoad(module_list); in SetModuleLoadAddress()
2202 ProcessSP process_sp(target_sp->GetProcessSP()); in SetModuleLoadAddress()
2223 TargetSP target_sp(GetSP()); in ClearModuleLoadAddress() local
2224 if (target_sp) { in ClearModuleLoadAddress()
2231 ProcessSP process_sp(target_sp->GetProcessSP()); in ClearModuleLoadAddress()
2238 changed |= target_sp->SetSectionUnloaded(section_sp); in ClearModuleLoadAddress()
2243 target_sp->ModulesDidUnload(module_list, false); in ClearModuleLoadAddress()
2245 ProcessSP process_sp(target_sp->GetProcessSP()); in ClearModuleLoadAddress()
2274 TargetSP target_sp(GetSP()); in FindSymbols() local
2275 if (target_sp) in FindSymbols()
2276 target_sp->GetImages().FindSymbolsWithNameAndType( in FindSymbols()
2285 TargetSP target_sp(GetSP()); in EvaluateExpression() local
2286 if (!target_sp) in EvaluateExpression()
2291 target_sp->GetPreferDynamicValue(); in EvaluateExpression()
2304 TargetSP target_sp(GetSP()); in EvaluateExpression() local
2306 if (target_sp) { in EvaluateExpression()
2311 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in EvaluateExpression()
2347 TargetSP target_sp(GetSP()); in GetStackRedZoneSize() local
2348 if (target_sp) { in GetStackRedZoneSize()
2350 ProcessSP process_sp(target_sp->GetProcessSP()); in GetStackRedZoneSize()
2354 abi_sp = ABI::FindPlugin(ProcessSP(), target_sp->GetArchitecture()); in GetStackRedZoneSize()
2364 TargetSP target_sp(GetSP()); in IsLoaded() local
2365 if (!target_sp) in IsLoaded()
2372 return module_sp->IsLoadedInTarget(target_sp.get()); in IsLoaded()
2379 TargetSP target_sp(GetSP()); in GetLaunchInfo() local
2380 if (target_sp) in GetLaunchInfo()
2388 TargetSP target_sp(GetSP()); in SetLaunchInfo() local
2389 if (target_sp) in SetLaunchInfo()
2395 TargetSP target_sp(GetSP()); in GetEnvironment() local
2397 if (target_sp) { in GetEnvironment()
2398 return SBEnvironment(target_sp->GetEnvironment()); in GetEnvironment()
2406 TargetSP target_sp(GetSP()); in GetTrace() local
2408 if (target_sp) in GetTrace()
2409 return SBTrace(target_sp->GetTrace()); in GetTrace()
2416 TargetSP target_sp(GetSP()); in CreateTrace() local
2419 if (target_sp) { in CreateTrace()
2420 if (llvm::Expected<lldb::TraceSP> trace_sp = target_sp->CreateTrace()) { in CreateTrace()