Lines Matching refs:m_persistent_variable_sp
70 m_persistent_variable_sp(persistent_variable_sp) in EntityPersistentVariable()
85 lldb::addr_t mem = map.Malloc(m_persistent_variable_sp->GetByteSize(), in MakeAllocation()
93 …ngWithFormat("couldn't allocate a memory area to store %s: %s", m_persistent_variable_sp->GetName(… in MakeAllocation()
98 …log->Printf("Allocated %s (0x%" PRIx64 ") sucessfully", m_persistent_variable_sp->GetName().GetCSt… in MakeAllocation()
102 …m_persistent_variable_sp->m_live_sp = ValueObjectConstResult::Create (map.GetBestExecutionContextS… in MakeAllocation()
103 … m_persistent_variable_sp->GetTypeFromUser(), in MakeAllocation()
104 … m_persistent_variable_sp->GetName(), in MakeAllocation()
107 … m_persistent_variable_sp->GetByteSize()); in MakeAllocation()
111 if (m_persistent_variable_sp->m_flags & ClangExpressionVariable::EVKeepInTarget) in MakeAllocation()
115 m_persistent_variable_sp->m_flags &= ~ClangExpressionVariable::EVNeedsAllocation; in MakeAllocation()
123 m_persistent_variable_sp->GetValueBytes(), in MakeAllocation()
124 m_persistent_variable_sp->GetByteSize(), in MakeAllocation()
129 …etErrorStringWithFormat ("couldn't write %s to the target: %s", m_persistent_variable_sp->GetName(… in MakeAllocation()
139 …map.Free((lldb::addr_t)m_persistent_variable_sp->m_live_sp->GetValue().GetScalar().ULongLong(), de… in DestroyAllocation()
141 m_persistent_variable_sp->m_live_sp.reset(); in DestroyAllocation()
145 …ErrorStringWithFormat ("couldn't deallocate memory for %s: %s", m_persistent_variable_sp->GetName(… in DestroyAllocation()
159 m_persistent_variable_sp->GetName().AsCString(), in Materialize()
160 m_persistent_variable_sp->m_flags); in Materialize()
163 if (m_persistent_variable_sp->m_flags & ClangExpressionVariable::EVNeedsAllocation) in Materialize()
166 m_persistent_variable_sp->m_flags |= ClangExpressionVariable::EVIsLLDBAllocated; in Materialize()
172 …if ((m_persistent_variable_sp->m_flags & ClangExpressionVariable::EVIsProgramReference && m_persis… in Materialize()
173 m_persistent_variable_sp->m_flags & ClangExpressionVariable::EVIsLLDBAllocated) in Materialize()
178 m_persistent_variable_sp->m_live_sp->GetValue().GetScalar(), in Materialize()
184 …ngWithFormat("couldn't write the location of %s to memory: %s", m_persistent_variable_sp->GetName(… in Materialize()
189 …ormat("no materialization happened for persistent variable %s", m_persistent_variable_sp->GetName(… in Materialize()
209 m_persistent_variable_sp->GetName().AsCString(), in Dematerialize()
210 m_persistent_variable_sp->m_flags); in Dematerialize()
213 if ((m_persistent_variable_sp->m_flags & ClangExpressionVariable::EVIsLLDBAllocated) || in Dematerialize()
214 (m_persistent_variable_sp->m_flags & ClangExpressionVariable::EVIsProgramReference)) in Dematerialize()
216 if (m_persistent_variable_sp->m_flags & ClangExpressionVariable::EVIsProgramReference && in Dematerialize()
217 !m_persistent_variable_sp->m_live_sp) in Dematerialize()
229 …ouldn't read the address of program-allocated variable %s: %s", m_persistent_variable_sp->GetName(… in Dematerialize()
233 …m_persistent_variable_sp->m_live_sp = ValueObjectConstResult::Create (map.GetBestExecutionContextS… in Dematerialize()
234 … m_persistent_variable_sp->GetTypeFromUser(), in Dematerialize()
235 … m_persistent_variable_sp->GetName(), in Dematerialize()
238 … m_persistent_variable_sp->GetByteSize()); in Dematerialize()
248 m_persistent_variable_sp->m_flags |= ClangExpressionVariable::EVIsLLDBAllocated; in Dematerialize()
249 m_persistent_variable_sp->m_flags |= ClangExpressionVariable::EVNeedsAllocation; in Dematerialize()
250 m_persistent_variable_sp->m_flags |= ClangExpressionVariable::EVNeedsFreezeDry; in Dematerialize()
251 … m_persistent_variable_sp->m_flags &= ~ClangExpressionVariable::EVIsProgramReference; in Dematerialize()
255 … lldb::addr_t mem = m_persistent_variable_sp->m_live_sp->GetValue().GetScalar().ULongLong(); in Dematerialize()
257 if (!m_persistent_variable_sp->m_live_sp) in Dematerialize()
259 …ingWithFormat("couldn't find the memory area used to store %s", m_persistent_variable_sp->GetName(… in Dematerialize()
263 … if (m_persistent_variable_sp->m_live_sp->GetValue().GetValueAddressType() != eAddressTypeLoad) in Dematerialize()
265 …e address of the memory area for %s is in an incorrect format", m_persistent_variable_sp->GetName(… in Dematerialize()
269 if (m_persistent_variable_sp->m_flags & ClangExpressionVariable::EVNeedsFreezeDry || in Dematerialize()
270 m_persistent_variable_sp->m_flags & ClangExpressionVariable::EVKeepInTarget) in Dematerialize()
273 …x64 " (size = %llu)", m_persistent_variable_sp->GetName().GetCString(), (uint64_t)mem, (unsigned l… in Dematerialize()
277 m_persistent_variable_sp->ValueUpdated (); in Dematerialize()
281 map.ReadMemory(m_persistent_variable_sp->GetValueBytes(), in Dematerialize()
283 m_persistent_variable_sp->GetByteSize(), in Dematerialize()
288 …WithFormat ("couldn't read the contents of %s from memory: %s", m_persistent_variable_sp->GetName(… in Dematerialize()
292 m_persistent_variable_sp->m_flags &= ~ClangExpressionVariable::EVNeedsFreezeDry; in Dematerialize()
297 …mat("no dematerialization happened for persistent variable %s", m_persistent_variable_sp->GetName(… in Dematerialize()
307 m_persistent_variable_sp->m_flags |= ClangExpressionVariable::EVNeedsAllocation; in Dematerialize()
313 else if (m_persistent_variable_sp->m_flags & ClangExpressionVariable::EVNeedsAllocation && in Dematerialize()
314 !(m_persistent_variable_sp->m_flags & ClangExpressionVariable::EVKeepInTarget)) in Dematerialize()
330 …tf("0x%" PRIx64 ": EntityPersistentVariable (%s)\n", load_addr, m_persistent_variable_sp->GetName(… in DumpToLog()
366 DataBufferHeap data (m_persistent_variable_sp->GetByteSize(), 0); in DumpToLog()
368 … map.ReadMemory(data.GetBytes(), target_address, m_persistent_variable_sp->GetByteSize(), err); in DumpToLog()
392 lldb::ClangExpressionVariableSP m_persistent_variable_sp; member in EntityPersistentVariable