Lines Matching refs:error
235 …alloc (size_t size, uint8_t alignment, uint32_t permissions, AllocationPolicy policy, Error &error) in Malloc() argument
237 error.Clear(); in Malloc()
254 error.SetErrorToGenericError(); in Malloc()
255 error.SetErrorString("Couldn't malloc: invalid allocation policy"); in Malloc()
261 error.SetErrorToGenericError(); in Malloc()
262 error.SetErrorString("Couldn't malloc: address space is full"); in Malloc()
270 allocation_address = process_sp->AllocateMemory(allocation_size, permissions, error); in Malloc()
271 if (!error.Success()) in Malloc()
280 error.SetErrorToGenericError(); in Malloc()
281 error.SetErrorString("Couldn't malloc: address space is full"); in Malloc()
292 … allocation_address = process_sp->AllocateMemory(allocation_size, permissions, error); in Malloc()
293 if (!error.Success()) in Malloc()
298 error.SetErrorToGenericError(); in Malloc()
299 error.SetErrorString("Couldn't malloc: process doesn't support allocating memory"); in Malloc()
305 error.SetErrorToGenericError(); in Malloc()
306 …error.SetErrorString("Couldn't malloc: process doesn't exist, and this memory must be in the proce… in Malloc()
355 IRMemoryMap::Leak (lldb::addr_t process_address, Error &error) in Leak() argument
357 error.Clear(); in Leak()
363 error.SetErrorToGenericError(); in Leak()
364 error.SetErrorString("Couldn't leak: allocation doesn't exist"); in Leak()
374 IRMemoryMap::Free (lldb::addr_t process_address, Error &error) in Free() argument
376 error.Clear(); in Free()
382 error.SetErrorToGenericError(); in Free()
383 error.SetErrorString("Couldn't free: allocation doesn't exist"); in Free()
424 …oryMap::WriteMemory (lldb::addr_t process_address, const uint8_t *bytes, size_t size, Error &error) in WriteMemory() argument
426 error.Clear(); in WriteMemory()
436 process_sp->WriteMemory(process_address, bytes, size, error); in WriteMemory()
440 error.SetErrorToGenericError(); in WriteMemory()
441 …error.SetErrorString("Couldn't write: no allocation contains the target range and the process does… in WriteMemory()
454 error.SetErrorToGenericError(); in WriteMemory()
455 error.SetErrorString("Couldn't write: invalid allocation policy"); in WriteMemory()
460 error.SetErrorToGenericError(); in WriteMemory()
461 error.SetErrorString("Couldn't write: data buffer is empty"); in WriteMemory()
469 error.SetErrorToGenericError(); in WriteMemory()
470 error.SetErrorString("Couldn't write: data buffer is empty"); in WriteMemory()
477 process_sp->WriteMemory(process_address, bytes, size, error); in WriteMemory()
478 if (!error.Success()) in WriteMemory()
486 process_sp->WriteMemory(process_address, bytes, size, error); in WriteMemory()
487 if (!error.Success()) in WriteMemory()
505 …yMap::WriteScalarToMemory (lldb::addr_t process_address, Scalar &scalar, size_t size, Error &error) in WriteScalarToMemory() argument
507 error.Clear(); in WriteScalarToMemory()
515 const size_t mem_size = scalar.GetAsMemoryData (buf, size, GetByteOrder(), error); in WriteScalarToMemory()
518 return WriteMemory(process_address, buf, mem_size, error); in WriteScalarToMemory()
522 error.SetErrorToGenericError(); in WriteScalarToMemory()
523 error.SetErrorString ("Couldn't write scalar: failed to get scalar as memory data"); in WriteScalarToMemory()
528 error.SetErrorToGenericError(); in WriteScalarToMemory()
529 error.SetErrorString ("Couldn't write scalar: its size was zero"); in WriteScalarToMemory()
535 IRMemoryMap::WritePointerToMemory (lldb::addr_t process_address, lldb::addr_t address, Error &error) in WritePointerToMemory() argument
537 error.Clear(); in WritePointerToMemory()
541 WriteScalarToMemory(process_address, scalar, GetAddressByteSize(), error); in WritePointerToMemory()
545 IRMemoryMap::ReadMemory (uint8_t *bytes, lldb::addr_t process_address, size_t size, Error &error) in ReadMemory() argument
547 error.Clear(); in ReadMemory()
557 process_sp->ReadMemory(process_address, bytes, size, error); in ReadMemory()
566 target_sp->ReadMemory(absolute_address, false, bytes, size, error); in ReadMemory()
570 error.SetErrorToGenericError(); in ReadMemory()
571 …error.SetErrorString("Couldn't read: no allocation contains the target range, and neither the proc… in ReadMemory()
584 error.SetErrorToGenericError(); in ReadMemory()
585 error.SetErrorString("Couldn't read: invalid allocation policy"); in ReadMemory()
590 error.SetErrorToGenericError(); in ReadMemory()
591 error.SetErrorString("Couldn't read: data buffer is empty"); in ReadMemory()
600 process_sp->ReadMemory(process_address, bytes, size, error); in ReadMemory()
601 if (!error.Success()) in ReadMemory()
608 error.SetErrorToGenericError(); in ReadMemory()
609 error.SetErrorString("Couldn't read: data buffer is empty"); in ReadMemory()
619 process_sp->ReadMemory(process_address, bytes, size, error); in ReadMemory()
620 if (!error.Success()) in ReadMemory()
638 …Map::ReadScalarFromMemory (Scalar &scalar, lldb::addr_t process_address, size_t size, Error &error) in ReadScalarFromMemory() argument
640 error.Clear(); in ReadScalarFromMemory()
645 ReadMemory(buf.GetBytes(), process_address, size, error); in ReadScalarFromMemory()
647 if (!error.Success()) in ReadScalarFromMemory()
657 error.SetErrorToGenericError(); in ReadScalarFromMemory()
658 … error.SetErrorStringWithFormat("Couldn't read scalar: unsupported size %" PRIu64, (uint64_t)size); in ReadScalarFromMemory()
668 error.SetErrorToGenericError(); in ReadScalarFromMemory()
669 error.SetErrorString ("Couldn't read scalar: its size was zero"); in ReadScalarFromMemory()
675 …emoryMap::ReadPointerFromMemory (lldb::addr_t *address, lldb::addr_t process_address, Error &error) in ReadPointerFromMemory() argument
677 error.Clear(); in ReadPointerFromMemory()
680 ReadScalarFromMemory(pointer_scalar, process_address, GetAddressByteSize(), error); in ReadPointerFromMemory()
682 if (!error.Success()) in ReadPointerFromMemory()
691 …::GetMemoryData (DataExtractor &extractor, lldb::addr_t process_address, size_t size, Error &error) in GetMemoryData() argument
693 error.Clear(); in GetMemoryData()
701 error.SetErrorToGenericError(); in GetMemoryData()
702 …error.SetErrorStringWithFormat("Couldn't find an allocation containing [0x%" PRIx64 "..0x%" PRIx64… in GetMemoryData()
711 error.SetErrorToGenericError(); in GetMemoryData()
712 error.SetErrorString("Couldn't get memory data: invalid allocation policy"); in GetMemoryData()
715 error.SetErrorToGenericError(); in GetMemoryData()
716 error.SetErrorString("Couldn't get memory data: memory is only in the target"); in GetMemoryData()
724 error.SetErrorToGenericError(); in GetMemoryData()
725 error.SetErrorString("Couldn't get memory data: data buffer is empty"); in GetMemoryData()
730 …(allocation.m_process_start, allocation.m_data.GetBytes(), allocation.m_data.GetByteSize(), error); in GetMemoryData()
731 if (!error.Success()) in GetMemoryData()
741 error.SetErrorToGenericError(); in GetMemoryData()
742 error.SetErrorString("Couldn't get memory data: data buffer is empty"); in GetMemoryData()
752 error.SetErrorToGenericError(); in GetMemoryData()
753 error.SetErrorString ("Couldn't get memory data: its size was zero"); in GetMemoryData()