/external/llvm-project/lldb/source/API/ |
D | SBProcess.cpp | 63 SBProcess::SBProcess(const lldb::ProcessSP &process_sp) in SBProcess() argument 64 : m_opaque_wp(process_sp) { in SBProcess() 65 LLDB_RECORD_CONSTRUCTOR(SBProcess, (const lldb::ProcessSP &), process_sp); in SBProcess() 90 ProcessSP process_sp(GetSP()); in GetPluginName() local 91 if (process_sp) { in GetPluginName() 92 return process_sp->GetPluginName().GetCString(); in GetPluginName() 100 ProcessSP process_sp(GetSP()); in GetShortPluginName() local 101 if (process_sp) { in GetShortPluginName() 102 return process_sp->GetPluginName().GetCString(); in GetShortPluginName() 109 void SBProcess::SetSP(const ProcessSP &process_sp) { m_opaque_wp = process_sp; } in SetSP() argument [all …]
|
D | SBTrace.cpp | 33 ProcessSP process_sp(GetSP()); in GetTraceData() local 37 if (!process_sp) { in GetTraceData() 41 process_sp->GetData(GetTraceUID(), thread_id, buffer, offset)); in GetTraceData() 52 ProcessSP process_sp(GetSP()); in GetMetaData() local 56 if (!process_sp) { in GetMetaData() 60 process_sp->GetMetaData(GetTraceUID(), thread_id, buffer, offset)); in GetMetaData() 69 ProcessSP process_sp(GetSP()); in StopTrace() local 72 if (!process_sp) { in StopTrace() 76 error.SetError(process_sp->StopTrace(GetTraceUID(), thread_id)); in StopTrace() 83 ProcessSP process_sp(GetSP()); in GetTraceConfig() local [all …]
|
/external/llvm-project/lldb/source/Plugins/Process/MacOSX-Kernel/ |
D | RegisterContextKDP_arm64.cpp | 25 ProcessSP process_sp(CalculateProcess()); in DoReadGPR() local 26 if (process_sp) { in DoReadGPR() 28 if (static_cast<ProcessKDP *>(process_sp.get()) in DoReadGPR() 40 ProcessSP process_sp(CalculateProcess()); in DoReadFPU() local 41 if (process_sp) { in DoReadFPU() 43 if (static_cast<ProcessKDP *>(process_sp.get()) in DoReadFPU() 55 ProcessSP process_sp(CalculateProcess()); in DoReadEXC() local 56 if (process_sp) { in DoReadEXC() 58 if (static_cast<ProcessKDP *>(process_sp.get()) in DoReadEXC() 70 ProcessSP process_sp(CalculateProcess()); in DoReadDBG() local [all …]
|
D | RegisterContextKDP_arm.cpp | 25 ProcessSP process_sp(CalculateProcess()); in DoReadGPR() local 26 if (process_sp) { in DoReadGPR() 28 if (static_cast<ProcessKDP *>(process_sp.get()) in DoReadGPR() 40 ProcessSP process_sp(CalculateProcess()); in DoReadFPU() local 41 if (process_sp) { in DoReadFPU() 43 if (static_cast<ProcessKDP *>(process_sp.get()) in DoReadFPU() 55 ProcessSP process_sp(CalculateProcess()); in DoReadEXC() local 56 if (process_sp) { in DoReadEXC() 58 if (static_cast<ProcessKDP *>(process_sp.get()) in DoReadEXC() 70 ProcessSP process_sp(CalculateProcess()); in DoReadDBG() local [all …]
|
D | RegisterContextKDP_x86_64.cpp | 25 ProcessSP process_sp(CalculateProcess()); in DoReadGPR() local 26 if (process_sp) { in DoReadGPR() 28 if (static_cast<ProcessKDP *>(process_sp.get()) in DoReadGPR() 41 ProcessSP process_sp(CalculateProcess()); in DoReadFPU() local 42 if (process_sp) { in DoReadFPU() 44 if (static_cast<ProcessKDP *>(process_sp.get()) in DoReadFPU() 57 ProcessSP process_sp(CalculateProcess()); in DoReadEXC() local 58 if (process_sp) { in DoReadEXC() 60 if (static_cast<ProcessKDP *>(process_sp.get()) in DoReadEXC() 73 ProcessSP process_sp(CalculateProcess()); in DoWriteGPR() local [all …]
|
D | RegisterContextKDP_i386.cpp | 24 ProcessSP process_sp(CalculateProcess()); in DoReadGPR() local 25 if (process_sp) { in DoReadGPR() 27 if (static_cast<ProcessKDP *>(process_sp.get()) in DoReadGPR() 39 ProcessSP process_sp(CalculateProcess()); in DoReadFPU() local 40 if (process_sp) { in DoReadFPU() 42 if (static_cast<ProcessKDP *>(process_sp.get()) in DoReadFPU() 54 ProcessSP process_sp(CalculateProcess()); in DoReadEXC() local 55 if (process_sp) { in DoReadEXC() 57 if (static_cast<ProcessKDP *>(process_sp.get()) in DoReadEXC() 70 ProcessSP process_sp(CalculateProcess()); in DoWriteGPR() local [all …]
|
/external/llvm-project/lldb/source/Expression/ |
D | IRMemoryMap.cpp | 28 lldb::ProcessSP process_sp = m_process_wp.lock(); in ~IRMemoryMap() local 30 if (process_sp) { in ~IRMemoryMap() 59 lldb::ProcessSP process_sp = m_process_wp.lock(); in FindSpace() local 61 const bool process_is_alive = process_sp && process_sp->IsAlive(); in FindSpace() 67 if (process_is_alive && process_sp->CanJIT()) { in FindSpace() 70 ret = process_sp->AllocateMemory(size, lldb::ePermissionsReadable | in FindSpace() 98 const uint64_t end_of_memory = process_sp->GetAddressByteSize() == 8 in FindSpace() 102 lldbassert(process_sp->GetAddressByteSize() == 4 || in FindSpace() 106 Status err = process_sp->GetMemoryRegionInfo(ret, region_info); in FindSpace() 125 err = process_sp->GetMemoryRegionInfo( in FindSpace() [all …]
|
/external/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
D | ThreadGDBRemote.cpp | 48 ProcessSP process_sp(GetProcess()); in ~ThreadGDBRemote() local 51 process_sp ? process_sp->GetID() : LLDB_INVALID_PROCESS_ID, GetID()); in ~ThreadGDBRemote() 98 ProcessSP process_sp(GetProcess()); in GetQueueName() local 99 if (process_sp) { in GetQueueName() 100 SystemRuntime *runtime = process_sp->GetSystemRuntime(); in GetQueueName() 128 ProcessSP process_sp(GetProcess()); in GetQueueKind() local 129 if (process_sp) { in GetQueueKind() 130 SystemRuntime *runtime = process_sp->GetSystemRuntime(); in GetQueueKind() 152 ProcessSP process_sp(GetProcess()); in GetQueueID() local 153 if (process_sp) { in GetQueueID() [all …]
|
/external/llvm-project/lldb/source/Plugins/InstrumentationRuntime/UBSan/ |
D | InstrumentationRuntimeUBSan.cpp | 44 InstrumentationRuntimeUBSan::CreateInstance(const lldb::ProcessSP &process_sp) { in CreateInstance() argument 45 return InstrumentationRuntimeSP(new InstrumentationRuntimeUBSan(process_sp)); in CreateInstance() 93 ProcessSP process_sp, in RetrieveUnsigned() argument 100 ProcessSP process_sp, in RetrieveString() argument 102 addr_t ptr = RetrieveUnsigned(return_value_sp, process_sp, expression_path); in RetrieveString() 105 process_sp->ReadCStringFromMemory(ptr, str, error); in RetrieveString() 111 ProcessSP process_sp = GetProcessSP(); in RetrieveReportData() local 112 if (!process_sp) in RetrieveReportData() 118 Target &target = process_sp->GetTarget(); in RetrieveReportData() 130 options.SetTimeout(process_sp->GetUtilityExpressionTimeout()); in RetrieveReportData() [all …]
|
/external/llvm-project/lldb/source/Plugins/Language/ObjC/ |
D | NSError.cpp | 43 if (ProcessSP process_sp = valobj.GetProcessSP()) { in DerefToNSErrorPointer() local 45 ptr_value = process_sp->ReadPointerFromMemory(ptr_value, error); in DerefToNSErrorPointer() 57 ProcessSP process_sp(valobj.GetProcessSP()); in NSError_SummaryProvider() local 58 if (!process_sp) in NSError_SummaryProvider() 65 size_t ptr_size = process_sp->GetAddressByteSize(); in NSError_SummaryProvider() 70 uint64_t code = process_sp->ReadUnsignedIntegerFromMemory(code_location, in NSError_SummaryProvider() 76 process_sp->ReadPointerFromMemory(domain_location, error); in NSError_SummaryProvider() 85 InferiorSizedWord isw(domain_str_value, *process_sp); in NSError_SummaryProvider() 88 "domain_str", isw.GetAsData(process_sp->GetByteOrder()), in NSError_SummaryProvider() 90 ScratchTypeSystemClang::GetForTarget(process_sp->GetTarget()) in NSError_SummaryProvider() [all …]
|
D | NSException.cpp | 34 ProcessSP process_sp(valobj.GetProcessSP()); in ExtractFields() local 35 if (!process_sp) in ExtractFields() 51 size_t ptr_size = process_sp->GetAddressByteSize(); in ExtractFields() 54 auto name = process_sp->ReadPointerFromMemory(ptr + 1 * ptr_size, error); in ExtractFields() 57 auto reason = process_sp->ReadPointerFromMemory(ptr + 2 * ptr_size, error); in ExtractFields() 60 auto userinfo = process_sp->ReadPointerFromMemory(ptr + 3 * ptr_size, error); in ExtractFields() 63 auto reserved = process_sp->ReadPointerFromMemory(ptr + 4 * ptr_size, error); in ExtractFields() 67 InferiorSizedWord name_isw(name, *process_sp); in ExtractFields() 68 InferiorSizedWord reason_isw(reason, *process_sp); in ExtractFields() 69 InferiorSizedWord userinfo_isw(userinfo, *process_sp); in ExtractFields() [all …]
|
D | Cocoa.cpp | 41 ProcessSP process_sp = valobj.GetProcessSP(); in NSBundleSummaryProvider() local 42 if (!process_sp) in NSBundleSummaryProvider() 45 ObjCLanguageRuntime *runtime = ObjCLanguageRuntime::Get(*process_sp); in NSBundleSummaryProvider() 56 uint32_t ptr_size = process_sp->GetAddressByteSize(); in NSBundleSummaryProvider() 92 ProcessSP process_sp = valobj.GetProcessSP(); in NSTimeZoneSummaryProvider() local 93 if (!process_sp) in NSTimeZoneSummaryProvider() 96 ObjCLanguageRuntime *runtime = ObjCLanguageRuntime::Get(*process_sp); in NSTimeZoneSummaryProvider() 107 uint32_t ptr_size = process_sp->GetAddressByteSize(); in NSTimeZoneSummaryProvider() 141 ProcessSP process_sp = valobj.GetProcessSP(); in NSNotificationSummaryProvider() local 142 if (!process_sp) in NSNotificationSummaryProvider() [all …]
|
D | NSSet.cpp | 254 ProcessSP process_sp = valobj.GetProcessSP(); in NSSetSummaryProvider() local 255 if (!process_sp) in NSSetSummaryProvider() 258 ObjCLanguageRuntime *runtime = ObjCLanguageRuntime::Get(*process_sp); in NSSetSummaryProvider() 269 uint32_t ptr_size = process_sp->GetAddressByteSize(); in NSSetSummaryProvider() 292 value = process_sp->ReadUnsignedIntegerFromMemory(valobj_addr + ptr_size, in NSSetSummaryProvider() 302 value = Foundation1437::__NSSetMSize(*process_sp, valobj_addr, error); in NSSetSummaryProvider() 304 value = process_sp->ReadUnsignedIntegerFromMemory(valobj_addr + ptr_size, in NSSetSummaryProvider() 311 ExecutionContext exe_ctx(process_sp); in NSSetSummaryProvider() 342 lldb::ProcessSP process_sp(valobj_sp->GetProcessSP()); in NSSetSyntheticFrontEndCreator() local 343 if (!process_sp) in NSSetSyntheticFrontEndCreator() [all …]
|
D | CF.cpp | 49 ProcessSP process_sp = valobj.GetProcessSP(); in CFBagSummaryProvider() local 50 if (!process_sp) in CFBagSummaryProvider() 53 ObjCLanguageRuntime *runtime = ObjCLanguageRuntime::Get(*process_sp); in CFBagSummaryProvider() 64 uint32_t ptr_size = process_sp->GetAddressByteSize(); in CFBagSummaryProvider() 89 count = process_sp->ReadUnsignedIntegerFromMemory(offset, 4, 0, error); in CFBagSummaryProvider() 111 ProcessSP process_sp = valobj.GetProcessSP(); in CFBitVectorSummaryProvider() local 112 if (!process_sp) in CFBitVectorSummaryProvider() 115 ObjCLanguageRuntime *runtime = ObjCLanguageRuntime::Get(*process_sp); in CFBitVectorSummaryProvider() 126 uint32_t ptr_size = process_sp->GetAddressByteSize(); in CFBitVectorSummaryProvider() 149 count = process_sp->ReadUnsignedIntegerFromMemory(valobj_addr + 2 * ptr_size, in CFBitVectorSummaryProvider() [all …]
|
D | NSDictionary.cpp | 382 ProcessSP process_sp = valobj.GetProcessSP(); in NSDictionarySummaryProvider() local 383 if (!process_sp) in NSDictionarySummaryProvider() 386 ObjCLanguageRuntime *runtime = ObjCLanguageRuntime::Get(*process_sp); in NSDictionarySummaryProvider() 397 uint32_t ptr_size = process_sp->GetAddressByteSize(); in NSDictionarySummaryProvider() 424 value = process_sp->ReadUnsignedIntegerFromMemory(valobj_addr + ptr_size, in NSDictionarySummaryProvider() 435 value = Foundation1437::__NSDictionaryMSize(*process_sp, valobj_addr, in NSDictionarySummaryProvider() 438 value = process_sp->ReadUnsignedIntegerFromMemory(valobj_addr + ptr_size, in NSDictionarySummaryProvider() 451 ExecutionContext exe_ctx(process_sp); in NSDictionarySummaryProvider() 482 lldb::ProcessSP process_sp(valobj_sp->GetProcessSP()); in NSDictionarySyntheticFrontEndCreator() local 483 if (!process_sp) in NSDictionarySyntheticFrontEndCreator() [all …]
|
/external/llvm-project/lldb/source/Plugins/MemoryHistory/asan/ |
D | MemoryHistoryASan.cpp | 33 MemoryHistorySP MemoryHistoryASan::CreateInstance(const ProcessSP &process_sp) { in LLDB_PLUGIN_DEFINE() 34 if (!process_sp.get()) in LLDB_PLUGIN_DEFINE() 37 Target &target = process_sp->GetTarget(); in LLDB_PLUGIN_DEFINE() 49 return MemoryHistorySP(new MemoryHistoryASan(process_sp)); in LLDB_PLUGIN_DEFINE() 69 MemoryHistoryASan::MemoryHistoryASan(const ProcessSP &process_sp) { in MemoryHistoryASan() argument 70 if (process_sp) in MemoryHistoryASan() 71 m_process_wp = process_sp; in MemoryHistoryASan() 104 static void CreateHistoryThreadFromValueObject(ProcessSP process_sp, in CreateHistoryThreadFromValueObject() argument 146 new HistoryThread(*process_sp, tid, pcs, pcs_are_call_addresses); in CreateHistoryThreadFromValueObject() 153 process_sp->GetExtendedThreadList().AddThread(new_thread_sp); in CreateHistoryThreadFromValueObject() [all …]
|
/external/llvm-project/lldb/source/Plugins/InstrumentationRuntime/ASan/ |
D | InstrumentationRuntimeASan.cpp | 36 InstrumentationRuntimeASan::CreateInstance(const lldb::ProcessSP &process_sp) { in LLDB_PLUGIN_DEFINE() 37 return InstrumentationRuntimeSP(new InstrumentationRuntimeASan(process_sp)); in LLDB_PLUGIN_DEFINE() 114 ProcessSP process_sp = GetProcessSP(); in RetrieveReportData() local 115 if (!process_sp) in RetrieveReportData() 119 process_sp->GetThreadList().GetExpressionExecutionThread(); in RetrieveReportData() 130 options.SetTimeout(process_sp->GetUtilityExpressionTimeout()); in RetrieveReportData() 143 process_sp->GetTarget().GetDebugger().GetAsyncOutputStream()->Printf( in RetrieveReportData() 175 process_sp->ReadCStringFromMemory(description_ptr, description, error); in RetrieveReportData() 250 ProcessSP process_sp = instance->GetProcessSP(); in NotifyBreakpointHit() local 252 if (process_sp->GetModIDRef().IsLastResumeForUserExpression()) in NotifyBreakpointHit() [all …]
|
/external/llvm-project/lldb/unittests/Process/ |
D | ProcessEventDataTest.cpp | 100 DummyProcessEventData(ProcessSP &process_sp, StateType state) in DummyProcessEventData() argument 101 : ProcessEventData(process_sp, state), m_should_stop_hit_count(0) {} in DummyProcessEventData() 128 ThreadSP CreateThread(ProcessSP &process_sp, bool should_stop, in CreateThread() argument 130 ThreadSP thread_sp = std::make_shared<DummyThread>(*process_sp.get(), 0); in CreateThread() 147 process_sp->GetThreadList().AddThread(thread_sp); in CreateThread() 164 ProcessSP process_sp = std::make_shared<DummyProcess>(target_sp, listener_sp); in TEST_F() local 165 ASSERT_TRUE(process_sp); in TEST_F() 171 std::make_shared<DummyProcessEventData>(process_sp, eStateStopped); in TEST_F() 183 std::make_shared<DummyProcessEventData>(process_sp, eStateStepping); in TEST_F() 204 ProcessSP process_sp = std::make_shared<DummyProcess>(target_sp, listener_sp); in TEST_F() local [all …]
|
/external/llvm-project/lldb/source/Plugins/InstrumentationRuntime/TSan/ |
D | InstrumentationRuntimeTSan.cpp | 41 InstrumentationRuntimeTSan::CreateInstance(const lldb::ProcessSP &process_sp) { in LLDB_PLUGIN_DEFINE() 42 return InstrumentationRuntimeSP(new InstrumentationRuntimeTSan(process_sp)); in LLDB_PLUGIN_DEFINE() 254 ProcessSP process_sp, in RetrieveString() argument 261 process_sp->ReadCStringFromMemory(ptr, str, error); in RetrieveString() 266 GetRenumberedThreadIds(ProcessSP process_sp, ValueObjectSP data, in GetRenumberedThreadIds() argument 270 [process_sp, &thread_id_map](ValueObjectSP o, in GetRenumberedThreadIds() 279 ThreadSP lldb_thread = process_sp->GetThreadList().FindThreadByID( in GetRenumberedThreadIds() 288 lldb_user_id = process_sp->AssignIndexIDToThread(thread_os_id); in GetRenumberedThreadIds() 306 ProcessSP process_sp = GetProcessSP(); in RetrieveReportData() local 307 if (!process_sp) in RetrieveReportData() [all …]
|
/external/llvm-project/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/ |
D | InstrumentationRuntimeMainThreadChecker.cpp | 41 const lldb::ProcessSP &process_sp) { in CreateInstance() argument 43 new InstrumentationRuntimeMainThreadChecker(process_sp)); in CreateInstance() 84 ProcessSP process_sp = GetProcessSP(); in RetrieveReportData() local 85 if (!process_sp) in RetrieveReportData() 91 Target &target = process_sp->GetTarget(); in RetrieveReportData() 170 ProcessSP process_sp = instance->GetProcessSP(); in NotifyBreakpointHit() local 172 if (!process_sp || !thread_sp || in NotifyBreakpointHit() 173 process_sp != context->exe_ctx_ref.GetProcessSP()) in NotifyBreakpointHit() 176 if (process_sp->GetModIDRef().IsLastResumeForUserExpression()) in NotifyBreakpointHit() 200 ProcessSP process_sp = GetProcessSP(); in Activate() local [all …]
|
/external/llvm-project/lldb/source/Target/ |
D | ExecutionContext.cpp | 33 ExecutionContext::ExecutionContext(const lldb::ProcessSP &process_sp) in ExecutionContext() argument 35 if (process_sp) in ExecutionContext() 36 SetContext(process_sp); in ExecutionContext() 61 lldb::ProcessSP process_sp(process_wp.lock()); in ExecutionContext() local 62 if (process_sp) in ExecutionContext() 63 SetContext(process_sp); in ExecutionContext() 250 void ExecutionContext::SetProcessSP(const lldb::ProcessSP &process_sp) { in SetProcessSP() argument 251 m_process_sp = process_sp; in SetProcessSP() 301 void ExecutionContext::SetContext(const lldb::ProcessSP &process_sp) { in SetContext() argument 302 m_process_sp = process_sp; in SetContext() [all …]
|
D | Queue.cpp | 18 Queue::Queue(ProcessSP process_sp, lldb::queue_id_t queue_id, in Queue() argument 27 m_process_wp = process_sp; in Queue() 42 ProcessSP process_sp = m_process_wp.lock(); in GetThreads() local 43 if (process_sp) { in GetThreads() 44 for (ThreadSP thread_sp : process_sp->Threads()) { in GetThreads() 79 ProcessSP process_sp = m_process_wp.lock(); in GetPendingItems() local 80 if (process_sp && process_sp->GetSystemRuntime()) { in GetPendingItems() 81 process_sp->GetSystemRuntime()->PopulatePendingItemsForQueue(this); in GetPendingItems()
|
D | QueueItem.cpp | 17 QueueItem::QueueItem(QueueSP queue_sp, ProcessSP process_sp, in QueueItem() argument 27 m_process_wp = process_sp; in QueueItem() 48 ProcessSP process_sp = queue_sp->GetProcess(); in GetExtendedBacktraceThread() local 49 if (process_sp && process_sp->GetSystemRuntime()) { in GetExtendedBacktraceThread() 51 process_sp->GetSystemRuntime()->GetExtendedBacktraceForQueueItem( in GetExtendedBacktraceThread() 98 ProcessSP process_sp = m_process_wp.lock(); in FetchEntireItem() local 99 if (process_sp) { in FetchEntireItem() 100 SystemRuntime *runtime = process_sp->GetSystemRuntime(); in FetchEntireItem()
|
/external/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
D | AppleObjCTrampolineHandler.cpp | 301 ProcessSP process_sp = m_owner->GetProcessSP(); in SetUpRegion() local 302 if (!process_sp) in SetUpRegion() 305 process_sp->GetByteOrder(), in SetUpRegion() 306 process_sp->GetAddressByteSize()); in SetUpRegion() 307 size_t actual_size = 8 + process_sp->GetAddressByteSize(); in SetUpRegion() 310 process_sp->ReadMemory(m_header_addr, memory_buffer, actual_size, error); in SetUpRegion() 349 DataExtractor desc_extractor(dst, desc_array_size, process_sp->GetByteOrder(), in SetUpRegion() 350 process_sp->GetAddressByteSize()); in SetUpRegion() 351 bytes_read = process_sp->ReadMemory(desc_ptr, dst, desc_array_size, error); in SetUpRegion() 431 const ProcessSP &process_sp, const ModuleSP &objc_module_sp) in AppleObjCVTables() argument [all …]
|
D | AppleObjCRuntimeV1.cpp | 187 ObjCISA isa, lldb::ProcessSP process_sp) { in ClassDescriptorV1() argument 188 Initialize(isa, process_sp); in ClassDescriptorV1() 192 ObjCISA isa, lldb::ProcessSP process_sp) { in Initialize() argument 193 if (!isa || !process_sp) { in Initialize() 202 m_isa = process_sp->ReadPointerFromMemory(isa, error); in Initialize() 209 uint32_t ptr_size = process_sp->GetAddressByteSize(); in Initialize() 216 m_parent_isa = process_sp->ReadPointerFromMemory(m_isa + ptr_size, error); in Initialize() 229 process_sp->ReadPointerFromMemory(m_isa + 2 * ptr_size, error); in Initialize() 238 size_t count = process_sp->ReadCStringFromMemory( in Initialize() 251 m_instance_size = process_sp->ReadUnsignedIntegerFromMemory( in Initialize() [all …]
|