Lines Matching defs:target_sp
104 SBTarget::SBTarget(const TargetSP &target_sp) : m_opaque_sp(target_sp) {
105 LLDB_INSTRUMENT_VA(this, target_sp);
169 TargetSP target_sp(GetSP());
170 if (target_sp) {
171 process_sp = target_sp->GetProcessSP();
181 TargetSP target_sp(GetSP());
182 if (!target_sp)
186 platform.m_opaque_sp = target_sp->GetPlatform();
195 TargetSP target_sp(GetSP());
196 if (target_sp)
197 debugger.reset(target_sp->GetDebugger().shared_from_this());
211 TargetSP target_sp(GetSP());
212 if (!target_sp)
216 target_sp->GetDebugger(), target_sp.get(),
225 TargetSP target_sp(GetSP());
226 if (target_sp)
227 DebuggerStats::ResetStatistics(target_sp->GetDebugger(), target_sp.get());
233 TargetSP target_sp(GetSP());
234 if (!target_sp)
242 TargetSP target_sp(GetSP());
243 if (!target_sp)
259 TargetSP target_sp(GetSP());
260 if (target_sp) {
263 ProcessSP process_sp(target_sp->CreateProcess(
264 target_sp->GetDebugger().GetListener(), "", &filespec, false));
282 TargetSP target_sp = GetSP();
283 if (!target_sp)
288 if (Module *exe_module = target_sp->GetExecutableModulePointer())
306 TargetSP target_sp(GetSP());
307 if (target_sp) {
308 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
309 sb_error.ref() = target_sp->Install(nullptr);
326 TargetSP target_sp(GetSP());
328 if (target_sp) {
329 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
338 process_sp = target_sp->GetProcessSP();
369 Module *exe_module = target_sp->GetExecutableModulePointer();
375 auto default_launch_info = target_sp->GetProcessLaunchInfo();
382 auto default_launch_info = target_sp->GetProcessLaunchInfo();
389 error.SetError(target_sp->Launch(launch_info, nullptr));
391 sb_process.SetSP(target_sp->GetProcessSP());
403 TargetSP target_sp(GetSP());
405 if (target_sp) {
406 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
409 ProcessSP process_sp = target_sp->GetProcessSP();
426 Module *exe_module = target_sp->GetExecutableModulePointer();
431 const ArchSpec &arch_spec = target_sp->GetArchitecture();
435 error.SetError(target_sp->Launch(launch_info, nullptr));
437 sb_process.SetSP(target_sp->GetProcessSP());
449 TargetSP target_sp(GetSP());
451 if (target_sp) {
455 PlatformSP platform_sp = target_sp->GetPlatform();
469 error.SetError(AttachToProcess(attach_info, *target_sp));
471 sb_process.SetSP(target_sp->GetProcessSP());
487 TargetSP target_sp(GetSP());
489 if (target_sp) {
496 if (target_sp->GetPlatform()->GetProcessInfo(pid, instance_info))
499 error.SetError(AttachToProcess(attach_info, *target_sp));
501 sb_process.SetSP(target_sp->GetProcessSP());
517 TargetSP target_sp(GetSP());
519 if (name && target_sp) {
526 error.SetError(AttachToProcess(attach_info, *target_sp));
528 sb_process.SetSP(target_sp->GetProcessSP());
542 TargetSP target_sp(GetSP());
544 if (target_sp) {
545 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
548 target_sp->CreateProcess(listener.m_opaque_sp, plugin_name, nullptr,
551 process_sp = target_sp->CreateProcess(
552 target_sp->GetDebugger().GetListener(), plugin_name, nullptr, true);
571 TargetSP target_sp(GetSP());
572 if (target_sp) {
573 Module *exe_module = target_sp->GetExecutableModulePointer();
595 void SBTarget::SetSP(const lldb::TargetSP &target_sp) {
596 m_opaque_sp = target_sp;
604 TargetSP target_sp(GetSP());
605 if (target_sp) {
606 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
607 if (target_sp->ResolveLoadAddress(vm_addr, addr))
622 TargetSP target_sp(GetSP());
623 if (target_sp) {
624 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
625 if (target_sp->ResolveFileAddress(file_addr, addr))
639 TargetSP target_sp(GetSP());
640 if (target_sp) {
641 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
642 if (target_sp->ResolveLoadAddress(vm_addr, addr))
660 TargetSP target_sp(GetSP());
661 if (target_sp)
662 target_sp->GetImages().ResolveSymbolContextForAddress(addr.ref(), scope,
673 TargetSP target_sp(GetSP());
674 if (target_sp) {
675 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
677 target_sp->ReadMemory(addr.ref(), buf, size, error.ref(), true);
726 TargetSP target_sp(GetSP());
727 if (target_sp && line != 0) {
728 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
739 sb_bp = target_sp->CreateBreakpoint(
755 TargetSP target_sp(GetSP());
756 if (target_sp && line != 0) {
757 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
767 sb_bp = target_sp->CreateBreakpoint(
781 TargetSP target_sp(GetSP());
782 if (target_sp.get()) {
783 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
792 sb_bp = target_sp->CreateBreakpoint(
796 sb_bp = target_sp->CreateBreakpoint(
836 TargetSP target_sp(GetSP());
837 if (target_sp && symbol_name && symbol_name[0]) {
841 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
843 sb_bp = target_sp->CreateBreakpoint(module_list.get(), comp_unit_list.get(),
882 TargetSP target_sp(GetSP());
883 if (target_sp && num_names > 0) {
884 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
889 sb_bp = target_sp->CreateBreakpoint(
927 TargetSP target_sp(GetSP());
928 if (target_sp && symbol_name_regex && symbol_name_regex[0]) {
929 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
935 sb_bp = target_sp->CreateFuncRegexBreakpoint(
947 TargetSP target_sp(GetSP());
948 if (target_sp) {
949 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
951 sb_bp = target_sp->CreateBreakpoint(address, false, hardware);
961 TargetSP target_sp(GetSP());
966 if (target_sp) {
967 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
969 sb_bp = target_sp->CreateBreakpoint(sb_address.ref(), false, hardware);
1013 TargetSP target_sp(GetSP());
1014 if (target_sp && source_regex && source_regex[0]) {
1015 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1024 sb_bp = target_sp->CreateSourceRegexBreakpoint(
1038 TargetSP target_sp(GetSP());
1039 if (target_sp) {
1040 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1042 sb_bp = target_sp->CreateExceptionBreakpoint(language, catch_bp, throw_bp,
1057 TargetSP target_sp(GetSP());
1058 if (target_sp) {
1059 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1064 target_sp->CreateScriptedBreakpoint(class_name,
1079 TargetSP target_sp(GetSP());
1080 if (target_sp) {
1082 return target_sp->GetBreakpointList().GetSize();
1091 TargetSP target_sp(GetSP());
1092 if (target_sp) {
1094 sb_breakpoint = target_sp->GetBreakpointList().GetBreakpointAtIndex(idx);
1103 TargetSP target_sp(GetSP());
1104 if (target_sp) {
1105 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1106 result = target_sp->RemoveBreakpointByID(bp_id);
1116 TargetSP target_sp(GetSP());
1117 if (target_sp && bp_id != LLDB_INVALID_BREAK_ID) {
1118 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1119 sb_breakpoint = target_sp->GetBreakpointByID(bp_id);
1129 TargetSP target_sp(GetSP());
1130 if (target_sp) {
1131 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1133 target_sp->GetBreakpointList().FindBreakpointsByName(name);
1151 TargetSP target_sp(GetSP());
1152 if (target_sp) {
1153 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1156 target_sp->GetBreakpointNames(name_vec);
1165 TargetSP target_sp(GetSP());
1166 if (target_sp) {
1167 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1168 target_sp->DeleteBreakpointName(ConstString(name));
1175 TargetSP target_sp(GetSP());
1176 if (target_sp) {
1177 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1178 target_sp->EnableAllowedBreakpoints();
1187 TargetSP target_sp(GetSP());
1188 if (target_sp) {
1189 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1190 target_sp->DisableAllowedBreakpoints();
1199 TargetSP target_sp(GetSP());
1200 if (target_sp) {
1201 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1202 target_sp->RemoveAllowedBreakpoints();
1222 TargetSP target_sp(GetSP());
1223 if (!target_sp) {
1228 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1237 sberr.ref() = target_sp->CreateBreakpointsFromFile(source_file.ref(),
1254 TargetSP target_sp(GetSP());
1255 if (!target_sp) {
1269 TargetSP target_sp(GetSP());
1270 if (!target_sp) {
1275 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1278 sberr.ref() = target_sp->SerializeBreakpointsToFile(dest_file.ref(),
1286 TargetSP target_sp(GetSP());
1287 if (target_sp) {
1289 return target_sp->GetWatchpointList().GetSize();
1298 TargetSP target_sp(GetSP());
1299 if (target_sp) {
1301 sb_watchpoint.SetSP(target_sp->GetWatchpointList().GetByIndex(idx));
1310 TargetSP target_sp(GetSP());
1311 if (target_sp) {
1312 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1314 target_sp->GetWatchpointList().GetListMutex(lock);
1315 result = target_sp->RemoveWatchpointByID(wp_id);
1326 TargetSP target_sp(GetSP());
1327 if (target_sp && wp_id != LLDB_INVALID_WATCH_ID) {
1328 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1330 target_sp->GetWatchpointList().GetListMutex(lock);
1331 watchpoint_sp = target_sp->GetWatchpointList().FindByID(wp_id);
1357 TargetSP target_sp(GetSP());
1370 if (target_sp && addr != LLDB_INVALID_ADDRESS && size > 0) {
1371 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1377 target_sp->CreateWatchpoint(addr, size, type, watch_type, cw_error);
1388 TargetSP target_sp(GetSP());
1389 if (target_sp) {
1390 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1392 target_sp->GetWatchpointList().GetListMutex(lock);
1393 target_sp->EnableAllWatchpoints();
1402 TargetSP target_sp(GetSP());
1403 if (target_sp) {
1404 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1406 target_sp->GetWatchpointList().GetListMutex(lock);
1407 target_sp->DisableAllWatchpoints();
1468 TargetSP target_sp(GetSP());
1469 if (target_sp) {
1470 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
1472 target_sp->GetWatchpointList().GetListMutex(lock);
1473 target_sp->RemoveAllWatchpoints();
1483 TargetSP target_sp(GetSP());
1484 if (!target_sp)
1493 target_sp->GetImageSearchPathList().Append(srFrom, srTo, true);
1507 TargetSP target_sp(GetSP());
1508 if (!target_sp)
1520 Platform::GetAugmentedArchSpec(target_sp->GetPlatform().get(), triple);
1522 module_spec.GetArchitecture() = target_sp->GetArchitecture();
1536 TargetSP target_sp(GetSP());
1537 if (target_sp) {
1538 sb_module.SetSP(target_sp->GetOrCreateModule(*module_spec.m_opaque_up,
1547 sb_module.SetSP(target_sp->GetOrCreateModule(*module_spec.m_opaque_up,
1555 if (sb_module.IsValid() && !target_sp->GetArchitecture().IsValid() &&
1557 target_sp->SetArchitecture(sb_module.GetSP()->GetArchitecture());
1564 TargetSP target_sp(GetSP());
1565 if (target_sp) {
1566 target_sp->GetImages().AppendIfNeeded(module.GetSP());
1576 TargetSP target_sp(GetSP());
1577 if (target_sp) {
1579 num = target_sp->GetImages().GetSize();
1595 TargetSP target_sp(GetSP());
1596 if (target_sp && sb_file_spec.IsValid()) {
1599 sb_module.SetSP(target_sp->GetImages().FindFirstModule(module_spec));
1608 const TargetSP target_sp(GetSP());
1609 if (target_sp && sb_file_spec.IsValid())
1610 target_sp->GetImages().FindCompileUnits(*sb_file_spec, *sb_sc_list);
1617 TargetSP target_sp(GetSP());
1618 if (target_sp)
1619 return target_sp->GetArchitecture().GetByteOrder();
1626 TargetSP target_sp(GetSP());
1627 if (!target_sp)
1630 std::string triple(target_sp->GetArchitecture().GetTriple().str());
1641 TargetSP target_sp(GetSP());
1642 if (!target_sp)
1645 std::string abi_name(target_sp->GetABIName().str());
1653 TargetSP target_sp(GetSP());
1654 if (!target_sp)
1657 return ConstString(target_sp->GetLabel().data()).AsCString();
1663 TargetSP target_sp(GetSP());
1664 if (!target_sp)
1667 return Status::FromError(target_sp->SetLabel(label));
1673 TargetSP target_sp(GetSP());
1674 if (target_sp) {
1675 return target_sp->GetArchitecture().GetDataByteSize();
1683 TargetSP target_sp(GetSP());
1684 if (target_sp) {
1685 return target_sp->GetArchitecture().GetCodeByteSize();
1693 TargetSP target_sp(GetSP());
1694 if(target_sp){
1695 return target_sp->GetMaximumNumberOfChildrenToDisplay();
1703 TargetSP target_sp(GetSP());
1704 if (target_sp)
1705 return target_sp->GetArchitecture().GetAddressByteSize();
1714 TargetSP target_sp(GetSP());
1715 if (target_sp) {
1717 module_sp = target_sp->GetImages().GetModuleAtIndex(idx);
1727 TargetSP target_sp(GetSP());
1728 if (target_sp)
1729 return target_sp->GetImages().Remove(module.GetSP());
1736 TargetSP target_sp(GetSP());
1737 SBBroadcaster broadcaster(target_sp.get(), false);
1748 TargetSP target_sp(GetSP());
1749 if (target_sp) {
1750 target_sp->Dump(&strm, description_level);
1765 TargetSP target_sp(GetSP());
1766 if (!target_sp)
1774 target_sp->GetImages().FindFunctions(ConstString(name), mask,
1787 TargetSP target_sp(GetSP());
1788 if (target_sp) {
1796 target_sp->GetImages().FindFunctions(RegularExpression(name_ref),
1800 target_sp->GetImages().FindFunctions(
1806 target_sp->GetImages().FindFunctions(RegularExpression(regexstr),
1810 target_sp->GetImages().FindFunctions(ConstString(name),
1823 TargetSP target_sp(GetSP());
1824 if (typename_cstr && typename_cstr[0] && target_sp) {
1829 target_sp->GetImages().FindTypes(/*search_first=*/nullptr, query, results);
1834 if (auto process_sp = target_sp->GetProcessSP()) {
1845 for (auto type_system_sp : target_sp->GetScratchTypeSystems())
1856 TargetSP target_sp(GetSP());
1857 if (target_sp) {
1858 for (auto type_system_sp : target_sp->GetScratchTypeSystems())
1869 TargetSP target_sp(GetSP());
1870 if (typename_cstr && typename_cstr[0] && target_sp) {
1871 ModuleList &images = target_sp->GetImages();
1880 if (auto process_sp = target_sp->GetProcessSP()) {
1893 for (auto type_system_sp : target_sp->GetScratchTypeSystems())
1908 TargetSP target_sp(GetSP());
1909 if (name && target_sp) {
1911 target_sp->GetImages().FindGlobalVariables(ConstString(name), max_matches,
1914 ExecutionContextScope *exe_scope = target_sp->GetProcessSP().get();
1916 exe_scope = target_sp.get();
1936 TargetSP target_sp(GetSP());
1937 if (name && target_sp) {
1944 target_sp->GetImages().FindGlobalVariables(ConstString(name), max_matches,
1948 target_sp->GetImages().FindGlobalVariables(RegularExpression(name_ref),
1952 target_sp->GetImages().FindGlobalVariables(
1958 target_sp->GetImages().FindGlobalVariables(RegularExpression(regexstr),
1963 ExecutionContextScope *exe_scope = target_sp->GetProcessSP().get();
1965 exe_scope = target_sp.get();
2008 TargetSP target_sp(GetSP());
2009 if (target_sp) {
2014 target_sp->GetArchitecture().GetMaximumOpcodeByteSize() * count, 0);
2019 target_sp->ReadMemory(*addr_ptr, data.GetBytes(), data.GetByteSize(),
2023 target_sp->GetArchitecture(), nullptr, target_sp->GetDisassemblyCPU(),
2024 target_sp->GetDisassemblyFeatures(), flavor_string, *addr_ptr,
2039 TargetSP target_sp(GetSP());
2040 if (target_sp) {
2049 target_sp->GetArchitecture(), nullptr, flavor_string,
2050 target_sp->GetDisassemblyCPU(), target_sp->GetDisassemblyFeatures(),
2051 *target_sp, range, force_live_memory));
2073 TargetSP target_sp(GetSP());
2074 if (target_sp) {
2083 target_sp->GetArchitecture(), nullptr, flavor_string,
2084 target_sp->GetDisassemblyCPU(), target_sp->GetDisassemblyFeatures(),
2115 TargetSP target_sp(GetSP());
2116 if (target_sp) {
2126 ProcessSP process_sp(target_sp->GetProcessSP());
2127 if (target_sp->SetSectionLoadAddress(section_sp, section_base_addr)) {
2132 target_sp->ModulesDidLoad(module_list);
2152 TargetSP target_sp(GetSP());
2153 if (target_sp) {
2159 ProcessSP process_sp(target_sp->GetProcessSP());
2160 if (target_sp->SetSectionUnloaded(section_sp)) {
2165 target_sp->ModulesDidUnload(module_list, false);
2199 TargetSP target_sp(GetSP());
2200 if (target_sp) {
2204 if (module_sp->SetLoadAddress(*target_sp, slide_offset, true, changed)) {
2210 target_sp->ModulesDidLoad(module_list);
2212 ProcessSP process_sp(target_sp->GetProcessSP());
2233 TargetSP target_sp(GetSP());
2234 if (target_sp) {
2241 ProcessSP process_sp(target_sp->GetProcessSP());
2248 changed |= target_sp->SetSectionUnloaded(section_sp);
2253 target_sp->ModulesDidUnload(module_list, false);
2255 ProcessSP process_sp(target_sp->GetProcessSP());
2284 TargetSP target_sp(GetSP());
2285 if (target_sp)
2286 target_sp->GetImages().FindSymbolsWithNameAndType(
2295 TargetSP target_sp(GetSP());
2296 if (!target_sp)
2301 target_sp->GetPreferDynamicValue();
2314 TargetSP target_sp(GetSP());
2316 if (target_sp) {
2321 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
2358 TargetSP target_sp(GetSP());
2359 if (target_sp) {
2361 ProcessSP process_sp(target_sp->GetProcessSP());
2365 abi_sp = ABI::FindPlugin(ProcessSP(), target_sp->GetArchitecture());
2375 TargetSP target_sp(GetSP());
2376 if (!target_sp)
2383 return module_sp->IsLoadedInTarget(target_sp.get());
2390 TargetSP target_sp(GetSP());
2391 if (target_sp)
2399 TargetSP target_sp(GetSP());
2400 if (target_sp)
2406 TargetSP target_sp(GetSP());
2408 if (target_sp) {
2409 return SBEnvironment(target_sp->GetEnvironment());
2417 TargetSP target_sp(GetSP());
2419 if (target_sp)
2420 return SBTrace(target_sp->GetTrace());
2427 TargetSP target_sp(GetSP());
2430 if (target_sp) {
2431 if (llvm::Expected<lldb::TraceSP> trace_sp = target_sp->CreateTrace()) {