Lines Matching defs:exe_scope
63 static size_t ReadBytes(ExecutionContextScope *exe_scope,
65 if (exe_scope == nullptr)
68 TargetSP target_sp(exe_scope->CalculateTarget());
78 static bool GetByteOrderAndAddressSize(ExecutionContextScope *exe_scope,
84 if (exe_scope == nullptr)
87 TargetSP target_sp(exe_scope->CalculateTarget());
103 static uint64_t ReadUIntMax64(ExecutionContextScope *exe_scope,
107 if (exe_scope == nullptr || byte_size > sizeof(uint64_t)) {
113 success = ReadBytes(exe_scope, address, &buf, byte_size) == byte_size;
117 if (GetByteOrderAndAddressSize(exe_scope, address, byte_order, addr_size)) {
127 static bool ReadAddress(ExecutionContextScope *exe_scope,
130 if (exe_scope == nullptr)
134 addr_t deref_addr = ReadUIntMax64(exe_scope, address, pointer_size, success);
137 exe_scope->CalculateExecutionContext(exe_ctx);
163 static bool DumpUInt(ExecutionContextScope *exe_scope, const Address &address,
165 if (exe_scope == nullptr || byte_size == 0)
169 if (ReadBytes(exe_scope, address, &buf[0], buf.size()) == buf.size()) {
172 if (GetByteOrderAndAddressSize(exe_scope, address, byte_order, addr_size)) {
191 static size_t ReadCStringFromMemory(ExecutionContextScope *exe_scope,
193 if (exe_scope == nullptr)
205 while ((bytes_read = ReadBytes(exe_scope, curr_address, buf, k_buf_len)) >
407 bool Address::Dump(Stream *s, ExecutionContextScope *exe_scope, DumpStyle style,
417 ExecutionContext exe_ctx(exe_scope);
461 return Dump(s, exe_scope, fallback_style, DumpStyleInvalid, addr_size);
489 return Dump(s, exe_scope, fallback_style, DumpStyleInvalid, addr_size);
534 ReadCStringFromMemory(exe_scope, *this, s);
538 if (ReadAddress(exe_scope, *this, pointer_size, so_addr)) {
541 so_addr.Dump(s, exe_scope, DumpStyleLoadAddress,
546 ReadCStringFromMemory(exe_scope, so_addr, s);
551 if (ReadAddress(exe_scope, *this, pointer_size, so_addr)) {
560 so_addr.Dump(s, exe_scope, DumpStyleLoadAddress,
567 func_sc.DumpStopContext(s, exe_scope, so_addr, true, true,
569 if (ReadAddress(exe_scope, cstr_addr, pointer_size, so_addr)) {
572 so_addr.Dump(s, exe_scope, DumpStyleLoadAddress,
578 ReadCStringFromMemory(exe_scope, so_addr, s);
594 if (ReadAddress(exe_scope, cfstring_data_addr, pointer_size,
598 cfstring_data_addr.Dump(s, exe_scope, DumpStyleLoadAddress,
604 if (so_addr.Dump(s, exe_scope, DumpStyleResolvedDescription))
613 DumpUInt(exe_scope, *this, 4, s);
620 DumpUInt(exe_scope, *this, 8, s);
627 DumpUInt(exe_scope, *this, 16, s);
632 if (ReadAddress(exe_scope, *this, pointer_size, so_addr)) {
634 so_addr.Dump(s, exe_scope, DumpStyleLoadAddress,
646 pointer_sc.DumpStopContext(s, exe_scope, so_addr, true, false,
685 sc.DumpStopContext(s, exe_scope, *this, show_fullpaths,
693 Dump(s, exe_scope, DumpStyleSectionNameOffset, DumpStyleInvalid,
701 return Dump(s, exe_scope, fallback_style, DumpStyleInvalid, addr_size,
771 return Dump(s, exe_scope, fallback_style, DumpStyleInvalid, addr_size,
790 if (dereferenced_addr.Dump(&strm, exe_scope,
803 return Dump(s, exe_scope, fallback_style, DumpStyleInvalid, addr_size);