Lines Matching full:allocation
203 IRMemoryMap::Allocation::Allocation (lldb::addr_t process_alloc,
255 error.SetErrorString("Couldn't malloc: invalid allocation policy");
316 m_allocations[aligned_address] = Allocation(allocation_address,
364 error.SetErrorString("Couldn't leak: allocation doesn't exist");
368 Allocation &allocation = iter->second;
370 allocation.m_leak = true;
383 error.SetErrorString("Couldn't free: allocation doesn't exist");
387 Allocation &allocation = iter->second;
389 switch (allocation.m_policy)
398 process_sp->DeallocateMemory(allocation.m_process_alloc); // FindSpace allocated this for real
408 process_sp->DeallocateMemory(allocation.m_process_alloc);
441 error.SetErrorString("Couldn't write: no allocation contains the target range and the process doesn't exist");
445 Allocation &allocation = iter->second;
447 uint64_t offset = process_address - allocation.m_process_start;
451 switch (allocation.m_policy)
455 error.SetErrorString("Couldn't write: invalid allocation policy");
458 if (!allocation.m_data.GetByteSize())
464 ::memcpy (allocation.m_data.GetBytes() + offset, bytes, size);
467 if (!allocation.m_data.GetByteSize())
473 ::memcpy (allocation.m_data.GetBytes() + offset, bytes, size);
499 (uint64_t)allocation.m_process_start,
500 (uint64_t)allocation.m_process_start + (uint64_t)allocation.m_size);
571 error.SetErrorString("Couldn't read: no allocation contains the target range, and neither the process nor the target exist");
575 Allocation &allocation = iter->second;
577 uint64_t offset = process_address - allocation.m_process_start;
581 switch (allocation.m_policy)
585 error.SetErrorString("Couldn't read: invalid allocation policy");
588 if (!allocation.m_data.GetByteSize())
594 ::memcpy (bytes, allocation.m_data.GetBytes() + offset, size);
606 if (!allocation.m_data.GetByteSize())
612 ::memcpy (bytes, allocation.m_data.GetBytes() + offset, size);
632 (uint64_t)allocation.m_process_start,
633 (uint64_t)allocation.m_process_start + (uint64_t)allocation.m_size);
702 error.SetErrorStringWithFormat("Couldn't find an allocation containing [0x%" PRIx64 "..0x%" PRIx64 ")", process_address, process_address + size);
706 Allocation &allocation = iter->second;
708 switch (allocation.m_policy)
712 error.SetErrorString("Couldn't get memory data: invalid allocation policy");
722 if (!allocation.m_data.GetByteSize())
730 process_sp->ReadMemory(allocation.m_process_start, allocation.m_data.GetBytes(), allocation.m_data.GetByteSize(), error);
733 uint64_t offset = process_address - allocation.m_process_start;
734 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, GetByteOrder(), GetAddressByteSize());
739 if (!allocation.m_data.GetByteSize())
745 uint64_t offset = process_address - allocation.m_process_start;
746 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, GetByteOrder(), GetAddressByteSize());