Lines Matching +defs:process +defs:name

284                class_getName(isa); // Realize name of lazy classes.
495 // Lookup the class name.
496 const char *name = class_name_lookup_func(class_infos[idx].isa);
497 DEBUG_PRINTF("[%u] isa = %8p %s\n", idx, class_infos[idx].isa, name);
499 // Hash the class name so we don't have to read it.
500 const char *s = name;
505 // be calculated on the mangled name. hash==0 means lldb
506 // will fetch the mangled name and compute the hash in
550 // Lookup the class name.
551 const char *name = class_name_lookup_func(class_infos[idx].isa);
552 DEBUG_PRINTF("[%u] isa = %8p %s\n", idx, class_infos[idx].isa, name);
554 // Hash the class name so we don't have to read it.
555 const char *s = name;
560 // be calculated on the mangled name. hash==0 means lldb
561 // will fetch the mangled name and compute the hash in
613 const char *name = class_name_lookup_func (class_infos[idx].isa);
614 DEBUG_PRINTF ("[%u] isa = %8p %s\n", idx, class_infos[idx].isa, name);
615 // Hash the class name so we don't have to read it
616 const char *s = name;
621 // be calculated on the mangled name. hash==0 means lldb
622 // will fetch the mangled name and compute the hash in
656 const char *name = class_name_lookup_func (class_infos[idx].isa);
657 DEBUG_PRINTF ("[%u] isa = %8p %s\n", idx, class_infos[idx].isa, name);
658 // Hash the class name so we don't have to read it
659 const char *s = name;
664 // be calculated on the mangled name. hash==0 means lldb
665 // will fetch the mangled name and compute the hash in
689 ExtractRuntimeGlobalSymbol(Process *process, ConstString name,
694 if (!process) {
695 error = Status::FromErrorString("no process");
705 byte_size = process->GetAddressByteSize();
707 module_sp->FindFirstSymbolWithNameAndType(name, lldb::eSymbolTypeData);
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);
945 std_out.Printf(" name = %s", class_name);
959 " ivar name = %s type = %s size = %" PRIu64
968 [&std_out](const char *name, const char *type) -> bool {
969 std_out.Printf(" instance method name = %s type = %s\n",
970 name, type);
973 [&std_out](const char *name, const char *type) -> bool {
974 std_out.Printf(" class method name = %s type = %s\n", name,
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");
1167 AppleObjCRuntimeV2::CreateObjectChecker(std::string name,
1190 name.c_str());
1211 name.c_str());
1217 return GetTargetRef().CreateUtilityFunction(check_function_code, name,
1227 // Make the objective C V2 mangled name for the ivar offset from the class
1228 // name and ivar name
1236 // name we created above
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());
1753 std::string name) {
1756 LLDB_LOG(log, "Creating utility function {0}", name);
1764 std::move(code), std::move(name), eLanguageTypeC, exe_ctx);
1867 if (Process *process = m_runtime.GetProcess()) {
1868 if (DynamicLoader *loader = process->GetDynamicLoader()) {
1915 // Substitute in the correct class_getName / class_getNameRaw function name,
1917 // two %s's, so provide the name twice.
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);
2165 LLDB_LOGF(log, "Error evaluating our find class name function.");
2215 // Read the 32 bit hash for the class name
2222 // code to find the class name, but this returns a demangled name for
2224 // their name from the runtime.
2234 ", hash=0x%8.8x, name=%s",
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);
2440 LLDB_LOGF(log, "Error evaluating our find class name function.");
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 "
2699 lldb::addr_t AppleObjCRuntimeV2::LookupRuntimeSymbol(ConstString name) {
2702 const char *name_cstr = name.AsCString();
2726 ivar_name_cstr](const char *name, const char *type,
2729 if (!strcmp(name, ivar_name_cstr)) {
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"),
2951 ConstString name;
2962 name = g_NSAtom;
2965 name = g_NSNumber;
2968 name = g_NSDateTS;
2971 name = g_NSManagedObject;
2974 name = g_NSDate;
2982 name = g_NSNumber;
2985 name = g_NSManagedObject;
2988 name = g_NSDate;
2991 name = g_NSDateTS;
2999 return ClassDescriptorSP(new ClassDescriptorV2Tagged(name, unobfuscated));
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());
3468 static void RegisterObjCExceptionRecognizer(Process *process) {
3474 process->GetTarget().GetFrameRecognizerManager().AddRecognizer(