Lines Matching full:allocation

113   // adequate space for our allocation.  in FindSpace()
148 // default if this is our first allocation. in FindSpace()
153 lldbassert(0 && "The allocation address for expression evaluation must " in FindSpace()
295 IRMemoryMap::Allocation::Allocation(lldb::addr_t process_alloc, in Allocation() function in IRMemoryMap::Allocation
343 error.SetErrorString("Couldn't malloc: invalid allocation policy"); in Malloc()
462 error.SetErrorString("Couldn't leak: allocation doesn't exist"); in Leak()
466 Allocation &allocation = iter->second; in Leak() local
468 allocation.m_leak = true; in Leak()
478 error.SetErrorString("Couldn't free: allocation doesn't exist"); in Free()
482 Allocation &allocation = iter->second; in Free() local
484 switch (allocation.m_policy) { in Free()
491 allocation.m_process_alloc); // FindSpace allocated this for real in Free()
500 process_sp->DeallocateMemory(allocation.m_process_alloc); in Free()
520 Allocation &al = iter->second; in GetAllocSize()
553 error.SetErrorString("Couldn't write: no allocation contains the target " in WriteMemory()
558 Allocation &allocation = iter->second; in WriteMemory() local
560 uint64_t offset = process_address - allocation.m_process_start; in WriteMemory()
564 switch (allocation.m_policy) { in WriteMemory()
567 error.SetErrorString("Couldn't write: invalid allocation policy"); in WriteMemory()
570 if (!allocation.m_data.GetByteSize()) { in WriteMemory()
575 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
578 if (!allocation.m_data.GetByteSize()) { in WriteMemory()
583 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
606 (uint64_t)allocation.m_process_start, in WriteMemory()
607 (uint64_t)allocation.m_process_start + in WriteMemory()
608 (uint64_t)allocation.m_size); in WriteMemory()
669 error.SetErrorString("Couldn't read: no allocation contains the target " in ReadMemory()
674 Allocation &allocation = iter->second; in ReadMemory() local
676 uint64_t offset = process_address - allocation.m_process_start; in ReadMemory()
678 if (offset > allocation.m_size) { in ReadMemory()
680 error.SetErrorString("Couldn't read: data is not in the allocation"); in ReadMemory()
686 switch (allocation.m_policy) { in ReadMemory()
689 error.SetErrorString("Couldn't read: invalid allocation policy"); in ReadMemory()
692 if (!allocation.m_data.GetByteSize()) { in ReadMemory()
697 if (allocation.m_data.GetByteSize() < offset + size) { in ReadMemory()
703 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
712 if (!allocation.m_data.GetByteSize()) { in ReadMemory()
717 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
735 (uint64_t)allocation.m_process_start, in ReadMemory()
736 (uint64_t)allocation.m_process_start + in ReadMemory()
737 (uint64_t)allocation.m_size); in ReadMemory()
809 "Couldn't find an allocation containing [0x%" PRIx64 "..0x%" PRIx64 in GetMemoryData()
815 Allocation &allocation = iter->second; in GetMemoryData() local
817 switch (allocation.m_policy) { in GetMemoryData()
821 "Couldn't get memory data: invalid allocation policy"); in GetMemoryData()
831 if (!allocation.m_data.GetByteSize()) { in GetMemoryData()
837 process_sp->ReadMemory(allocation.m_process_start, in GetMemoryData()
838 allocation.m_data.GetBytes(), in GetMemoryData()
839 allocation.m_data.GetByteSize(), error); in GetMemoryData()
842 uint64_t offset = process_address - allocation.m_process_start; in GetMemoryData()
843 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()
849 if (!allocation.m_data.GetByteSize()) { in GetMemoryData()
854 uint64_t offset = process_address - allocation.m_process_start; in GetMemoryData()
855 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()