Lines Matching +defs:error +defs:target

159 Platform::LocateExecutableScriptingResources(Target *target, Module &module,
175 Status error(eErrorTypeGeneric);
183 error = ModuleList::GetSharedModule(resolved_spec, module_sp,
189 if (!error.Success()) {
191 error = ModuleList::GetSharedModule(resolved_spec, module_sp,
195 if (error.Success() && module_sp)
197 return error;
352 Target *target, std::vector<std::string> &options) {
380 Status error;
401 Status error = rc_baton->platform_ptr->MakeDirectory(
403 if (error.Fail()) {
404 rc_baton->error.SetErrorStringWithFormat(
407 return FileSystem::eEnumerateDirectoryResultQuit; // got an error, bail out
421 if (rc_baton2.error.Fail()) {
422 rc_baton->error.SetErrorString(rc_baton2.error.AsCString());
423 return FileSystem::eEnumerateDirectoryResultQuit; // got an error, bail out
436 rc_baton->error = FileSystem::Instance().Readlink(src, src_resolved);
438 if (rc_baton->error.Fail())
439 return FileSystem::eEnumerateDirectoryResultQuit; // got an error, bail out
441 rc_baton->error =
444 if (rc_baton->error.Fail())
445 return FileSystem::eEnumerateDirectoryResultQuit; // got an error, bail out
457 rc_baton->error.SetErrorString(err.AsCString());
458 return FileSystem::eEnumerateDirectoryResultQuit; // got an error, bail out
464 rc_baton->error.SetErrorStringWithFormat(
466 return FileSystem::eEnumerateDirectoryResultQuit; // got an error, bail out
473 Status error;
502 error.SetErrorStringWithFormat(
505 return error;
512 error.SetErrorStringWithFormat(
515 return error;
522 error.SetErrorStringWithFormat("platform working directory must be valid "
524 return error;
533 error = PutFile(src, dst);
542 error = MakeDirectory(fixed_dst, permissions);
543 if (error.Success()) {
552 return baton.error;
558 error = PutFile(src, fixed_dst);
564 error = FileSystem::Instance().Readlink(src, src_resolved);
565 if (error.Success())
566 error = CreateSymlink(dst, src_resolved);
569 error.SetErrorString("platform install doesn't handle pipes");
572 error.SetErrorString("platform install doesn't handle sockets");
575 error.SetErrorString(
580 return error;
588 LLDB_LOG(log, "error: {0}", ec.message());
603 Status error;
604 error.SetErrorStringWithFormatv("remote platform {0} doesn't support {1}",
606 return error;
618 Status error;
619 error.SetErrorStringWithFormatv("remote platform {0} doesn't support {1}",
621 return error;
631 Status error;
632 error.SetErrorStringWithFormatv("remote platform {0} doesn't support {1}",
634 return error;
640 Status &error) {
642 return FileCache::GetInstance().OpenFile(file_spec, flags, mode, error);
646 bool Platform::CloseFile(user_id_t fd, Status &error) {
648 return FileCache::GetInstance().CloseFile(fd, error);
663 uint64_t dst_len, Status &error) {
665 return FileCache::GetInstance().ReadFile(fd, offset, dst, dst_len, error);
666 error.SetErrorStringWithFormatv(
673 const void *src, uint64_t src_len, Status &error) {
675 return FileCache::GetInstance().WriteFile(fd, offset, src, src_len, error);
676 error.SetErrorStringWithFormatv(
715 // We have a remote platform, allow setting the target OS version if we
750 Status error =
755 return error;
764 Status error;
767 error =
770 if (error.Success()) {
773 error.SetErrorToGenericError();
779 if (exe_module_sp && error.Success())
796 Status Platform::ResolveSymbolFile(Target &target, const ModuleSpec &sym_spec,
798 Status error;
802 error.SetErrorString("unable to resolve symbol file");
803 return error;
877 Status error;
879 error.SetErrorStringWithFormatv(
884 error.SetErrorStringWithFormatv(
886 return error;
890 Status error;
892 error.SetErrorStringWithFormatv(
897 error.SetErrorStringWithFormatv(
900 return error;
931 Status error;
955 error, will_debug, first_arg_is_full_shell_command, num_resumes))
956 return error;
958 error = ShellExpandArguments(launch_info);
959 if (error.Fail()) {
960 error.SetErrorStringWithFormat("shell expansion failed (reason: %s). "
963 error.AsCString("unknown"));
964 return error;
971 error = Host::LaunchProcess(launch_info);
973 error.SetErrorString(
975 return error;
997 Debugger &debugger, Target &target,
998 Status &error) {
1000 LLDB_LOG(log, "target = {0}", &target);
1007 // worry about the target getting them as well.
1022 error = (*filter_callback)(launch_info, &target);
1023 if (!error.Success()) {
1033 error = LaunchProcess(launch_info);
1034 if (error.Success()) {
1040 process_sp = Attach(attach_info, debugger, &target, error);
1062 error.AsCString());
1072 error.AsCString());
1092 /// architecture and the target triple contained within.
1129 Status error;
1153 return error;
1156 uint32_t permissions = source_file.get()->GetPermissions(error);
1163 permissions, error);
1166 if (error.Fail())
1167 return error;
1169 return Status("unable to open target file");
1174 error = source_file.get()->Read(buffer_sp->GetBytes(), bytes_read);
1175 if (error.Fail() || bytes_read == 0)
1179 WriteFile(dest_file, offset, buffer_sp->GetBytes(), bytes_read, error);
1180 if (error.Fail())
1190 CloseFile(dest_file, error);
1193 return error;
1197 return error;
1201 Status error("unimplemented");
1202 return error;
1332 Status error;
1352 error.SetErrorStringWithFormat("unrecognized option '%c'", short_option);
1356 return error;
1360 Platform::SetThreadCreationBreakpoint(lldb_private::Target &target) {
1378 Status error;
1390 error.SetErrorStringWithFormat("unrecognized option '%c'", short_option);
1394 return error;
1409 Status error;
1417 error.SetErrorStringWithFormat("unrecognized option '%c'", short_option);
1421 return error;
1446 Status error = GetRemoteSharedModule(
1453 if (error.Success()) {
1458 return error;
1466 // Get module information from a target.
1484 Status error;
1491 error = ModuleList::GetSharedModule(arch_module_spec, module_sp, nullptr,
1494 if (error.Success() && module_sp)
1504 // Get module information from a target.
1560 const Status error = module_resolver(resolved_module_spec);
1561 if (error.Success()) {
1567 return error;
1593 Status error =
1596 // Locate module callback is set and called. Check the error.
1598 if (error.Fail()) {
1600 LLVM_PRETTY_FUNCTION, error.AsCString());
1631 // Clear symbol_file_spec for the error.
1642 // Clear symbol_file_spec for the error.
1670 error = ModuleList::GetSharedModule(cached_module_spec, module_sp, nullptr,
1672 if (error.Success() && module_sp) {
1683 // Clear module_sp and symbol_file_spec for the error.
1699 auto error = m_module_cache->GetAndPut(
1713 if (error.Success())
1718 error.AsCString());
1726 Status error;
1731 error.SetErrorStringWithFormat("unable to open destination file: %s",
1733 return error;
1737 lldb::eFilePermissionsFileDefault, error);
1739 if (error.Fail()) {
1740 error.SetErrorStringWithFormat("unable to open source file: %s",
1741 error.AsCString());
1742 return error;
1752 ReadFile(src_fd, offset, &buffer[0], to_read, error);
1753 if (error.Fail())
1756 error.SetErrorString("read 0 bytes");
1765 CloseFile(src_fd, close_error); // Ignoring close error.
1767 return error;
1798 lldb_private::Status &error) {
1803 error = Install(local_file, remote_file);
1804 if (error.Fail())
1807 return DoLoadImage(process, remote_file, nullptr, error);
1816 error = Install(local_file, target_file);
1817 if (error.Fail())
1820 return DoLoadImage(process, target_file, nullptr, error);
1825 return DoLoadImage(process, remote_file, nullptr, error);
1828 error.SetErrorString("Neither local nor remote file was specified");
1835 lldb_private::Status &error,
1837 error.SetErrorString("LoadImage is not supported on the current platform");
1844 lldb_private::Status &error,
1855 return DoLoadImage(process, file_to_use, &paths, error, loaded_path);
1865 Debugger &debugger, Target *target,
1866 Status &error) {
1867 return DoConnectProcess(connect_url, plugin_name, debugger, nullptr, target,
1868 error);
1873 Debugger &debugger, Stream &stream, Target *target, Status &error) {
1874 return DoConnectProcess(connect_url, plugin_name, debugger, &stream, target,
1875 error);
1881 Target *target, Status &error) {
1882 error.Clear();
1884 if (!target) {
1891 error = debugger.GetTargetList().CreateTarget(
1894 target = new_target_sp.get();
1895 if (!target || error.Fail()) {
1901 target->CreateProcess(debugger.GetListener(), plugin_name, nullptr, true);
1914 error = process_sp->ConnectRemote(connect_url);
1915 if (error.Fail()) {
1936 lldb_private::Status &error) {
1937 error.Clear();
1941 size_t Platform::GetSoftwareBreakpointTrapOpcode(Target &target,
1943 ArchSpec arch = target.GetArchitecture();
2106 Status &error) {
2157 Status error;
2159 return GetOrCreate(arch, process_host_arch, platform_arch_ptr, error);