Lines Matching refs:error

291                                  bool zero_memory, Status &error) {  in Malloc()  argument
293 error.Clear(); in Malloc()
317 error.SetErrorToGenericError(); in Malloc()
318 error.SetErrorString("Couldn't malloc: invalid allocation policy"); in Malloc()
323 error.SetErrorToGenericError(); in Malloc()
324 error.SetErrorString("Couldn't malloc: address space is full"); in Malloc()
339 process_sp->AllocateMemory(allocation_size, permissions, error); in Malloc()
342 process_sp->CallocateMemory(allocation_size, permissions, error); in Malloc()
344 if (!error.Success()) in Malloc()
354 error.SetErrorToGenericError(); in Malloc()
355 error.SetErrorString("Couldn't malloc: address space is full"); in Malloc()
366 process_sp->AllocateMemory(allocation_size, permissions, error); in Malloc()
369 process_sp->CallocateMemory(allocation_size, permissions, error); in Malloc()
371 if (!error.Success()) in Malloc()
374 error.SetErrorToGenericError(); in Malloc()
375 error.SetErrorString( in Malloc()
380 error.SetErrorToGenericError(); in Malloc()
381 error.SetErrorString("Couldn't malloc: process doesn't exist, and this " in Malloc()
430 void IRMemoryMap::Leak(lldb::addr_t process_address, Status &error) { in Leak() argument
431 error.Clear(); in Leak()
436 error.SetErrorToGenericError(); in Leak()
437 error.SetErrorString("Couldn't leak: allocation doesn't exist"); in Leak()
446 void IRMemoryMap::Free(lldb::addr_t process_address, Status &error) { in Free() argument
447 error.Clear(); in Free()
452 error.SetErrorToGenericError(); in Free()
453 error.SetErrorString("Couldn't free: allocation doesn't exist"); in Free()
514 Status &error) { in WriteMemory() argument
515 error.Clear(); in WriteMemory()
523 process_sp->WriteMemory(process_address, bytes, size, error); in WriteMemory()
527 error.SetErrorToGenericError(); in WriteMemory()
528 error.SetErrorString("Couldn't write: no allocation contains the target " in WriteMemory()
541 error.SetErrorToGenericError(); in WriteMemory()
542 error.SetErrorString("Couldn't write: invalid allocation policy"); in WriteMemory()
546 error.SetErrorToGenericError(); in WriteMemory()
547 error.SetErrorString("Couldn't write: data buffer is empty"); in WriteMemory()
554 error.SetErrorToGenericError(); in WriteMemory()
555 error.SetErrorString("Couldn't write: data buffer is empty"); in WriteMemory()
561 process_sp->WriteMemory(process_address, bytes, size, error); in WriteMemory()
562 if (!error.Success()) in WriteMemory()
569 process_sp->WriteMemory(process_address, bytes, size, error); in WriteMemory()
570 if (!error.Success()) in WriteMemory()
589 Status &error) { in WriteScalarToMemory() argument
590 error.Clear(); in WriteScalarToMemory()
598 scalar.GetAsMemoryData(buf, size, GetByteOrder(), error); in WriteScalarToMemory()
600 return WriteMemory(process_address, buf, mem_size, error); in WriteScalarToMemory()
602 error.SetErrorToGenericError(); in WriteScalarToMemory()
603 error.SetErrorString( in WriteScalarToMemory()
607 error.SetErrorToGenericError(); in WriteScalarToMemory()
608 error.SetErrorString("Couldn't write scalar: its size was zero"); in WriteScalarToMemory()
613 lldb::addr_t address, Status &error) { in WritePointerToMemory() argument
614 error.Clear(); in WritePointerToMemory()
618 WriteScalarToMemory(process_address, scalar, GetAddressByteSize(), error); in WritePointerToMemory()
622 size_t size, Status &error) { in ReadMemory() argument
623 error.Clear(); in ReadMemory()
631 process_sp->ReadMemory(process_address, bytes, size, error); in ReadMemory()
639 target_sp->ReadMemory(absolute_address, bytes, size, error, true); in ReadMemory()
643 error.SetErrorToGenericError(); in ReadMemory()
644 error.SetErrorString("Couldn't read: no allocation contains the target " in ReadMemory()
654 error.SetErrorToGenericError(); in ReadMemory()
655 error.SetErrorString("Couldn't read: data is not in the allocation"); in ReadMemory()
663 error.SetErrorToGenericError(); in ReadMemory()
664 error.SetErrorString("Couldn't read: invalid allocation policy"); in ReadMemory()
668 error.SetErrorToGenericError(); in ReadMemory()
669 error.SetErrorString("Couldn't read: data buffer is empty"); in ReadMemory()
673 error.SetErrorToGenericError(); in ReadMemory()
674 error.SetErrorString("Couldn't read: not enough underlying data"); in ReadMemory()
683 process_sp->ReadMemory(process_address, bytes, size, error); in ReadMemory()
684 if (!error.Success()) in ReadMemory()
688 error.SetErrorToGenericError(); in ReadMemory()
689 error.SetErrorString("Couldn't read: data buffer is empty"); in ReadMemory()
698 process_sp->ReadMemory(process_address, bytes, size, error); in ReadMemory()
699 if (!error.Success()) in ReadMemory()
718 size_t size, Status &error) { in ReadScalarFromMemory() argument
719 error.Clear(); in ReadScalarFromMemory()
723 ReadMemory(buf.GetBytes(), process_address, size, error); in ReadScalarFromMemory()
725 if (!error.Success()) in ReadScalarFromMemory()
735 error.SetErrorToGenericError(); in ReadScalarFromMemory()
736 error.SetErrorStringWithFormat( in ReadScalarFromMemory()
753 error.SetErrorToGenericError(); in ReadScalarFromMemory()
754 error.SetErrorString("Couldn't read scalar: its size was zero"); in ReadScalarFromMemory()
760 Status &error) { in ReadPointerFromMemory() argument
761 error.Clear(); in ReadPointerFromMemory()
765 error); in ReadPointerFromMemory()
767 if (!error.Success()) in ReadPointerFromMemory()
775 Status &error) { in GetMemoryData() argument
776 error.Clear(); in GetMemoryData()
782 error.SetErrorToGenericError(); in GetMemoryData()
783 error.SetErrorStringWithFormat( in GetMemoryData()
794 error.SetErrorToGenericError(); in GetMemoryData()
795 error.SetErrorString( in GetMemoryData()
799 error.SetErrorToGenericError(); in GetMemoryData()
800 error.SetErrorString( in GetMemoryData()
807 error.SetErrorToGenericError(); in GetMemoryData()
808 error.SetErrorString("Couldn't get memory data: data buffer is empty"); in GetMemoryData()
814 allocation.m_data.GetByteSize(), error); in GetMemoryData()
815 if (!error.Success()) in GetMemoryData()
825 error.SetErrorToGenericError(); in GetMemoryData()
826 error.SetErrorString("Couldn't get memory data: data buffer is empty"); in GetMemoryData()
835 error.SetErrorToGenericError(); in GetMemoryData()
836 error.SetErrorString("Couldn't get memory data: its size was zero"); in GetMemoryData()