Lines Matching defs:process

689 ExtractRuntimeGlobalSymbol(Process *process, ConstString name,
694 if (!process) {
695 error.SetErrorString("no process");
705 byte_size = process->GetAddressByteSize();
715 symbol->GetAddressRef().GetLoadAddress(&process->GetTarget());
722 return process->ReadUnsignedIntegerFromMemory(symbol_load_addr, byte_size,
727 static void RegisterObjCExceptionRecognizer(Process *process);
729 AppleObjCRuntimeV2::AppleObjCRuntimeV2(Process *process,
731 : AppleObjCRuntime(process), m_objc_module_sp(objc_module_sp),
754 RegisterObjCExceptionRecognizer(process);
774 // We should never get here with a null process...
777 // The Runtime is attached to a particular process, you shouldn't pass in a
778 // value from another process. Note, however, the process might be NULL (e.g.
782 Process *process = in_value.GetProcessSP().get();
783 if (process)
784 assert(process == m_process);
825 LanguageRuntime *AppleObjCRuntimeV2::CreateInstance(Process *process,
827 // FIXME: This should be a MacOS or iOS process, and we need to look for the
833 if (AppleObjCRuntime::GetObjCVersion(process, objc_module_sp) ==
835 return new AppleObjCRuntimeV2(process, objc_module_sp);
894 "known to the current process.",
931 Process *process = m_exe_ctx.GetProcessPtr();
932 ObjCLanguageRuntime *objc_runtime = ObjCLanguageRuntime::Get(*process);
990 result.AppendError("current process has no Objective-C runtime loaded");
1019 Process *process = m_exe_ctx.GetProcessPtr();
1020 ExecutionContext exe_ctx(process);
1022 ObjCLanguageRuntime *objc_runtime = ObjCLanguageRuntime::Get(*process);
1024 result.AppendError("current process has no Objective-C runtime loaded");
1032 result.AppendError("current process has no tagged pointer support");
1287 bool ParseHeader(Process *process, lldb::addr_t load_addr) {
1288 m_process = process;
1471 Process *process, AppleObjCRuntimeV2 *runtime,
1473 if (!hash_table.ParseHeader(process, runtime->GetISAHashTablePointer())) {
1524 Process *process = exe_ctx.GetProcessPtr();
1525 if (!process)
1529 ObjCISA isa = process->ReadPointerFromMemory(isa_pointer, error);
1535 if (ABISP abi_sp = process->GetABI())
1554 Process *process = GetProcess();
1567 symbol->GetLoadAddress(&process->GetTarget());
1572 process->ReadPointerFromMemory(g_gdb_obj_obfuscator_ptr, error);
1585 Process *process = GetProcess();
1598 symbol->GetLoadAddress(&process->GetTarget());
1602 m_isa_hash_table_ptr = process->ReadPointerFromMemory(
1614 Process *process = runtime.GetProcess();
1616 if (!objc_module_sp || !process)
1628 symbol->GetLoadAddress(&process->GetTarget());
1637 process->ReadPointerFromMemory(objc_debug_headerInfoRWs_addr, error);
1648 process->ReadMemory(objc_debug_headerInfoRWs_ptr, metadata_buffer.GetBytes(),
1658 process->GetByteOrder(),
1659 process->GetAddressByteSize());
1687 Process *process = m_runtime.GetProcess();
1697 process->ReadMemory(header_addr, header_buffer.GetBytes(), m_entsize,
1705 process->GetByteOrder(),
1706 process->GetAddressByteSize());
1867 if (Process *process = m_runtime.GetProcess()) {
1868 if (DynamicLoader *loader = process->GetDynamicLoader()) {
1991 Process *process = m_runtime.GetProcess();
1992 if (process == nullptr)
2001 ThreadSP thread_sp = process->GetThreadList().GetExpressionExecutionThread();
2011 ScratchTypeSystemClang::GetForTarget(process->GetTarget());
2018 const uint32_t addr_size = process->GetAddressByteSize();
2056 lldb::addr_t class_infos_addr = process->AllocateMemory(
2062 " bytes in process for shared cache read",
2070 process->DeallocateMemory(class_infos_addr);
2078 class_buffer_addr = process->AllocateMemory(
2084 " bytes in process for shared cache read",
2093 process->DeallocateMemory(class_buffer_addr);
2121 // Write our function arguments into the process so we can run our function
2129 options.SetTimeout(process->GetUtilityExpressionTimeout());
2153 if (process->ReadMemory(class_infos_addr, buffer.GetBytes(),
2158 process->GetByteOrder(), addr_size);
2258 Process *process = m_runtime.GetProcess();
2259 if (process == nullptr)
2266 ThreadSP thread_sp = process->GetThreadList().GetExpressionExecutionThread();
2276 ScratchTypeSystemClang::GetForTarget(process->GetTarget());
2283 const uint32_t addr_size = process->GetAddressByteSize();
2301 // the inferior process and some inferior processes have small memory limits.
2325 lldb::addr_t class_infos_addr = process->AllocateMemory(
2329 process->AllocateMemory(relative_selector_offset_addr_size,
2335 " bytes in process for shared cache read",
2359 // Write our function arguments into the process so we can run our function
2367 options.SetTimeout(process->GetUtilityExpressionTimeout());
2404 if (process->ReadMemory(relative_selector_offset_addr,
2412 process->GetByteOrder(), addr_size);
2426 if (process->ReadMemory(class_infos_addr, class_infos_buffer.GetBytes(),
2431 process->GetByteOrder(), addr_size);
2452 process->DeallocateMemory(class_infos_addr);
2458 Process *process = GetProcess();
2460 if (process) {
2480 &process->GetTarget());
2512 // Else we need to check with our process to see when the map was updated.
2513 Process *process = GetProcess();
2515 if (process) {
2518 // Update the process stop ID that indicates the last time we updated the
2520 m_isa_to_descriptor_stop_id = process->GetStopID();
2526 if (!m_hash_signature.NeedsUpdate(process, this, hash_table) &&
2537 // the shared cache, but only once per process as this data never changes
2586 Process *process = GetProcess();
2587 if (!process)
2593 process, ConstString("objc_debug_realized_class_generation_count"),
2614 static bool DoesProcessHaveSharedCache(Process &process) {
2615 PlatformSP platform_sp = process.GetTarget().GetPlatform();
2638 "the process. This may reduce the quality of type "
2645 "Objective-C class data in the process. This may "
2675 os << "libobjc.A.dylib is being read from process memory. This "
2761 Process *process(runtime.GetProcess());
2768 process, ConstString("objc_debug_isa_magic_mask"), objc_module_sp, error);
2773 process, ConstString("objc_debug_isa_magic_value"), objc_module_sp,
2779 process, ConstString("objc_debug_isa_class_mask"), objc_module_sp, error);
2788 process, ConstString("objc_debug_indexed_isa_magic_mask"), objc_module_sp,
2793 process, ConstString("objc_debug_indexed_isa_magic_value"),
2798 process, ConstString("objc_debug_indexed_isa_index_mask"), objc_module_sp,
2803 process, ConstString("objc_debug_indexed_isa_index_shift"),
2808 ExtractRuntimeGlobalSymbol(process, ConstString("objc_indexed_classes"),
2829 Process *process(runtime.GetProcess());
2834 process, ConstString("objc_debug_taggedpointer_mask"), objc_module_sp,
2840 process, ConstString("objc_debug_taggedpointer_slot_shift"),
2846 process, ConstString("objc_debug_taggedpointer_slot_mask"),
2852 process, ConstString("objc_debug_taggedpointer_payload_lshift"),
2858 process, ConstString("objc_debug_taggedpointer_payload_rshift"),
2864 process, ConstString("objc_debug_taggedpointer_classes"), objc_module_sp,
2873 process, ConstString("objc_debug_taggedpointer_ext_mask"),
2879 process, ConstString("objc_debug_taggedpointer_ext_slot_shift"),
2885 process, ConstString("objc_debug_taggedpointer_ext_slot_mask"),
2891 process, ConstString("objc_debug_taggedpointer_ext_classes"),
2898 process, ConstString("objc_debug_taggedpointer_ext_payload_lshift"),
2905 process, ConstString("objc_debug_taggedpointer_ext_payload_rshift"),
3042 Process *process(m_runtime.GetProcess());
3043 uintptr_t slot_ptr = slot * process->GetAddressByteSize() +
3046 uintptr_t slot_data = process->ReadPointerFromMemory(slot_ptr, error);
3053 if (ABISP abi_sp = process->GetABI()) {
3138 Process *process(m_runtime.GetProcess());
3139 uintptr_t slot_ptr = slot * process->GetAddressByteSize() +
3142 uintptr_t slot_data = process->ReadPointerFromMemory(slot_ptr, error);
3234 Process *process(m_runtime.GetProcess());
3242 process, ConstString("objc_indexed_classes_count"), objc_module_sp,
3256 const uint32_t addr_size = process->GetAddressByteSize();
3261 size_t bytes_read = process->ReadMemory(
3271 process->GetByteOrder(),
3272 process->GetAddressByteSize());
3460 static void RegisterObjCExceptionRecognizer(Process *process) {
3466 process->GetTarget().GetFrameRecognizerManager().AddRecognizer(