Lines Matching refs:exe_scope
61 static size_t ReadBytes(ExecutionContextScope *exe_scope, in ReadBytes() argument
63 if (exe_scope == nullptr) in ReadBytes()
66 TargetSP target_sp(exe_scope->CalculateTarget()); in ReadBytes()
76 static bool GetByteOrderAndAddressSize(ExecutionContextScope *exe_scope, in GetByteOrderAndAddressSize() argument
82 if (exe_scope == nullptr) in GetByteOrderAndAddressSize()
85 TargetSP target_sp(exe_scope->CalculateTarget()); in GetByteOrderAndAddressSize()
101 static uint64_t ReadUIntMax64(ExecutionContextScope *exe_scope, in ReadUIntMax64() argument
105 if (exe_scope == nullptr || byte_size > sizeof(uint64_t)) { in ReadUIntMax64()
111 success = ReadBytes(exe_scope, address, &buf, byte_size) == byte_size; in ReadUIntMax64()
115 if (GetByteOrderAndAddressSize(exe_scope, address, byte_order, addr_size)) { in ReadUIntMax64()
125 static bool ReadAddress(ExecutionContextScope *exe_scope, in ReadAddress() argument
128 if (exe_scope == nullptr) in ReadAddress()
132 addr_t deref_addr = ReadUIntMax64(exe_scope, address, pointer_size, success); in ReadAddress()
135 exe_scope->CalculateExecutionContext(exe_ctx); in ReadAddress()
162 static bool DumpUInt(ExecutionContextScope *exe_scope, const Address &address, in DumpUInt() argument
164 if (exe_scope == nullptr || byte_size == 0) in DumpUInt()
168 if (ReadBytes(exe_scope, address, &buf[0], buf.size()) == buf.size()) { in DumpUInt()
171 if (GetByteOrderAndAddressSize(exe_scope, address, byte_order, addr_size)) { in DumpUInt()
190 static size_t ReadCStringFromMemory(ExecutionContextScope *exe_scope, in ReadCStringFromMemory() argument
192 if (exe_scope == nullptr) in ReadCStringFromMemory()
204 while ((bytes_read = ReadBytes(exe_scope, curr_address, buf, k_buf_len)) > in ReadCStringFromMemory()
406 bool Address::Dump(Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, in Dump() argument
415 ExecutionContext exe_ctx(exe_scope); in Dump()
459 return Dump(s, exe_scope, fallback_style, DumpStyleInvalid, addr_size); in Dump()
487 return Dump(s, exe_scope, fallback_style, DumpStyleInvalid, addr_size); in Dump()
533 ReadCStringFromMemory(exe_scope, *this, s); in Dump()
537 if (ReadAddress(exe_scope, *this, pointer_size, so_addr)) { in Dump()
540 so_addr.Dump(s, exe_scope, DumpStyleLoadAddress, in Dump()
545 ReadCStringFromMemory(exe_scope, so_addr, s); in Dump()
550 if (ReadAddress(exe_scope, *this, pointer_size, so_addr)) { in Dump()
559 so_addr.Dump(s, exe_scope, DumpStyleLoadAddress, in Dump()
566 func_sc.DumpStopContext(s, exe_scope, so_addr, true, true, in Dump()
568 if (ReadAddress(exe_scope, cstr_addr, pointer_size, so_addr)) { in Dump()
571 so_addr.Dump(s, exe_scope, DumpStyleLoadAddress, in Dump()
577 ReadCStringFromMemory(exe_scope, so_addr, s); in Dump()
593 if (ReadAddress(exe_scope, cfstring_data_addr, pointer_size, in Dump()
597 cfstring_data_addr.Dump(s, exe_scope, DumpStyleLoadAddress, in Dump()
603 if (so_addr.Dump(s, exe_scope, DumpStyleResolvedDescription)) in Dump()
612 DumpUInt(exe_scope, *this, 4, s); in Dump()
619 DumpUInt(exe_scope, *this, 8, s); in Dump()
626 DumpUInt(exe_scope, *this, 16, s); in Dump()
631 if (ReadAddress(exe_scope, *this, pointer_size, so_addr)) { in Dump()
633 so_addr.Dump(s, exe_scope, DumpStyleLoadAddress, in Dump()
645 pointer_sc.DumpStopContext(s, exe_scope, so_addr, true, false, in Dump()
683 sc.DumpStopContext(s, exe_scope, *this, show_fullpaths, in Dump()
690 Dump(s, exe_scope, DumpStyleSectionNameOffset); in Dump()
697 return Dump(s, exe_scope, fallback_style, DumpStyleInvalid, addr_size); in Dump()
766 return Dump(s, exe_scope, fallback_style, DumpStyleInvalid, addr_size); in Dump()
784 if (dereferenced_addr.Dump(&strm, exe_scope, in Dump()
797 return Dump(s, exe_scope, fallback_style, DumpStyleInvalid, addr_size); in Dump()