Lines Matching refs:response

177   StreamString response;  in Handle_qHostInfo()  local
183 response.PutCString("triple:"); in Handle_qHostInfo()
184 response.PutStringAsRawHex8(host_triple.getTriple()); in Handle_qHostInfo()
185 response.Printf(";ptrsize:%u;", host_arch.GetAddressByteSize()); in Handle_qHostInfo()
189 response.PutCString("distribution_id:"); in Handle_qHostInfo()
190 response.PutStringAsRawHex8(distribution_id); in Handle_qHostInfo()
191 response.PutCString(";"); in Handle_qHostInfo()
196 response.PutCString("vendor:apple;"); in Handle_qHostInfo()
202 response.Printf("cputype:%u;", cpu); in Handle_qHostInfo()
204 response.Printf("cpusubtype:%u;", sub); in Handle_qHostInfo()
209 response.PutCString("ostype:tvos;"); in Handle_qHostInfo()
211 response.PutCString("ostype:watchos;"); in Handle_qHostInfo()
213 response.PutCString("ostype:bridgeos;"); in Handle_qHostInfo()
215 response.PutCString("ostype:ios;"); in Handle_qHostInfo()
220 response.PutCString("watchpoint_exceptions_received:before;"); in Handle_qHostInfo()
222 response.PutCString("ostype:macosx;"); in Handle_qHostInfo()
223 response.Printf("watchpoint_exceptions_received:after;"); in Handle_qHostInfo()
232 response.Printf("watchpoint_exceptions_received:before;"); in Handle_qHostInfo()
234 response.Printf("watchpoint_exceptions_received:after;"); in Handle_qHostInfo()
239 response.PutCString("endian:big;"); in Handle_qHostInfo()
242 response.PutCString("endian:little;"); in Handle_qHostInfo()
245 response.PutCString("endian:pdp;"); in Handle_qHostInfo()
248 response.PutCString("endian:unknown;"); in Handle_qHostInfo()
254 response.Format("os_version:{0}", version.getAsString()); in Handle_qHostInfo()
255 response.PutChar(';'); in Handle_qHostInfo()
261 response.Format("maccatalyst_version:{0}", in Handle_qHostInfo()
263 response.PutChar(';'); in Handle_qHostInfo()
269 response.PutCString("os_build:"); in Handle_qHostInfo()
270 response.PutStringAsRawHex8(s); in Handle_qHostInfo()
271 response.PutChar(';'); in Handle_qHostInfo()
274 response.PutCString("os_kernel:"); in Handle_qHostInfo()
275 response.PutStringAsRawHex8(s); in Handle_qHostInfo()
276 response.PutChar(';'); in Handle_qHostInfo()
285 response.PutCString("hostname:"); in Handle_qHostInfo()
286 response.PutStringAsRawHex8("127.0.0.1"); in Handle_qHostInfo()
287 response.PutChar(';'); in Handle_qHostInfo()
290 response.PutCString("hostname:"); in Handle_qHostInfo()
291 response.PutStringAsRawHex8(s); in Handle_qHostInfo()
292 response.PutChar(';'); in Handle_qHostInfo()
298 response.PutCString("hostname:"); in Handle_qHostInfo()
299 response.PutStringAsRawHex8(s); in Handle_qHostInfo()
300 response.PutChar(';'); in Handle_qHostInfo()
305 response.Printf("default_packet_timeout:%u;", g_default_packet_timeout_sec); in Handle_qHostInfo()
307 return SendPacketNoLock(response.GetString()); in Handle_qHostInfo()
319 StreamString response; in Handle_qProcessInfoPID() local
320 CreateProcessInfoResponse(proc_info, response); in Handle_qProcessInfoPID()
321 return SendPacketNoLock(response.GetString()); in Handle_qProcessInfoPID()
414 StreamString response; in Handle_qsProcessInfo() local
415 CreateProcessInfoResponse(m_proc_infos[m_proc_infos_index], response); in Handle_qsProcessInfo()
417 return SendPacketNoLock(response.GetString()); in Handle_qsProcessInfo()
435 StreamString response; in Handle_qUserName() local
436 response.PutStringAsRawHex8(*name); in Handle_qUserName()
437 return SendPacketNoLock(response.GetString()); in Handle_qUserName()
455 StreamString response; in Handle_qGroupName() local
456 response.PutStringAsRawHex8(*name); in Handle_qGroupName()
457 return SendPacketNoLock(response.GetString()); in Handle_qGroupName()
477 StreamString response; in Handle_qSpeedTest() local
479 response.PutCString("data:"); in Handle_qSpeedTest()
482 response.PutCString("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); in Handle_qSpeedTest()
485 response.Printf("%*.*s;", bytes_left, bytes_left, in Handle_qSpeedTest()
490 return SendPacketNoLock(response.GetString()); in Handle_qSpeedTest()
527 StreamString response; in Handle_vFile_Open() local
528 response.PutChar('F'); in Handle_vFile_Open()
529 response.Printf("%i", descriptor); in Handle_vFile_Open()
531 response.Printf(",%i", save_errno); in Handle_vFile_Open()
532 return SendPacketNoLock(response.GetString()); in Handle_vFile_Open()
554 StreamString response; in Handle_vFile_Close() local
555 response.PutChar('F'); in Handle_vFile_Close()
556 response.Printf("%i", err); in Handle_vFile_Close()
558 response.Printf(",%i", save_errno); in Handle_vFile_Close()
559 return SendPacketNoLock(response.GetString()); in Handle_vFile_Close()
565 StreamGDBRemote response; in Handle_vFile_pRead() local
573 response.Printf("F-1:%i", EINVAL); in Handle_vFile_pRead()
574 return SendPacketNoLock(response.GetString()); in Handle_vFile_pRead()
582 response.PutChar('F'); in Handle_vFile_pRead()
583 response.Printf("%zi", bytes_read); in Handle_vFile_pRead()
585 response.Printf(",%i", save_errno); in Handle_vFile_pRead()
587 response.PutChar(';'); in Handle_vFile_pRead()
588 response.PutEscapedBytes(&buffer[0], bytes_read); in Handle_vFile_pRead()
590 return SendPacketNoLock(response.GetString()); in Handle_vFile_pRead()
601 StreamGDBRemote response; in Handle_vFile_pWrite() local
602 response.PutChar('F'); in Handle_vFile_pWrite()
616 response.Printf("%zi", bytes_written); in Handle_vFile_pWrite()
618 response.Printf(",%i", save_errno); in Handle_vFile_pWrite()
620 response.Printf("-1,%i", EINVAL); in Handle_vFile_pWrite()
622 return SendPacketNoLock(response.GetString()); in Handle_vFile_pWrite()
638 StreamString response; in Handle_vFile_Size() local
639 response.PutChar('F'); in Handle_vFile_Size()
640 response.PutHex64(Size); in Handle_vFile_Size()
642 response.PutChar(','); in Handle_vFile_Size()
643 response.PutHex64(Size); // TODO: replace with Host::GetSyswideErrorCode() in Handle_vFile_Size()
645 return SendPacketNoLock(response.GetString()); in Handle_vFile_Size()
661 StreamString response; in Handle_vFile_Mode() local
662 response.Printf("F%u", mode); in Handle_vFile_Mode()
664 response.Printf(",%i", (int)Status(ec).GetError()); in Handle_vFile_Mode()
665 return SendPacketNoLock(response.GetString()); in Handle_vFile_Mode()
678 StreamString response; in Handle_vFile_Exists() local
679 response.PutChar('F'); in Handle_vFile_Exists()
680 response.PutChar(','); in Handle_vFile_Exists()
682 response.PutChar('1'); in Handle_vFile_Exists()
684 response.PutChar('0'); in Handle_vFile_Exists()
685 return SendPacketNoLock(response.GetString()); in Handle_vFile_Exists()
703 StreamString response; in Handle_vFile_symlink() local
704 response.Printf("F%u,%u", error.GetError(), error.GetError()); in Handle_vFile_symlink()
705 return SendPacketNoLock(response.GetString()); in Handle_vFile_symlink()
715 StreamString response; in Handle_vFile_unlink() local
716 response.Printf("F%u,%u", error.GetError(), error.GetError()); in Handle_vFile_unlink()
717 return SendPacketNoLock(response.GetString()); in Handle_vFile_unlink()
740 StreamGDBRemote response; in Handle_qPlatform_shell() local
742 response.PutCString("F,"); in Handle_qPlatform_shell()
743 response.PutHex32(UINT32_MAX); in Handle_qPlatform_shell()
745 response.PutCString("F,"); in Handle_qPlatform_shell()
746 response.PutHex32(status); in Handle_qPlatform_shell()
747 response.PutChar(','); in Handle_qPlatform_shell()
748 response.PutHex32(signo); in Handle_qPlatform_shell()
749 response.PutChar(','); in Handle_qPlatform_shell()
750 response.PutEscapedBytes(output.c_str(), output.size()); in Handle_qPlatform_shell()
752 return SendPacketNoLock(response.GetString()); in Handle_qPlatform_shell()
772 StreamGDBRemote response; in Handle_vFile_MD5() local
775 response.PutCString("F,"); in Handle_vFile_MD5()
776 response.PutCString("x"); in Handle_vFile_MD5()
778 response.PutCString("F,"); in Handle_vFile_MD5()
779 response.PutHex64(Result->low()); in Handle_vFile_MD5()
780 response.PutHex64(Result->high()); in Handle_vFile_MD5()
782 return SendPacketNoLock(response.GetString()); in Handle_vFile_MD5()
797 StreamGDBRemote response; in Handle_qPlatform_mkdir() local
798 response.Printf("F%u", error.GetError()); in Handle_qPlatform_mkdir()
800 return SendPacketNoLock(response.GetString()); in Handle_qPlatform_mkdir()
817 StreamGDBRemote response; in Handle_qPlatform_chmod() local
818 response.Printf("F%u", error.GetError()); in Handle_qPlatform_chmod()
820 return SendPacketNoLock(response.GetString()); in Handle_qPlatform_chmod()
907 StreamString response; in Handle_qLaunchSuccess() local
908 response.PutChar('E'); in Handle_qLaunchSuccess()
909 response.PutCString(m_process_launch_error.AsCString("<unknown error>")); in Handle_qLaunchSuccess()
910 return SendPacketNoLock(response.GetString()); in Handle_qLaunchSuccess()
1057 StreamGDBRemote response; in Handle_qModuleInfo() local
1064 response.PutCString("md5:"); in Handle_qModuleInfo()
1065 response.PutStringAsRawHex8(Result->digest()); in Handle_qModuleInfo()
1067 response.PutCString("uuid:"); in Handle_qModuleInfo()
1068 response.PutStringAsRawHex8(uuid_str); in Handle_qModuleInfo()
1070 response.PutChar(';'); in Handle_qModuleInfo()
1073 response.PutCString("triple:"); in Handle_qModuleInfo()
1074 response.PutStringAsRawHex8(module_arch.GetTriple().getTriple()); in Handle_qModuleInfo()
1075 response.PutChar(';'); in Handle_qModuleInfo()
1077 response.PutCString("file_path:"); in Handle_qModuleInfo()
1078 response.PutStringAsRawHex8(matched_module_spec.GetFileSpec().GetCString()); in Handle_qModuleInfo()
1079 response.PutChar(';'); in Handle_qModuleInfo()
1080 response.PutCString("file_offset:"); in Handle_qModuleInfo()
1081 response.PutHex64(file_offset); in Handle_qModuleInfo()
1082 response.PutChar(';'); in Handle_qModuleInfo()
1083 response.PutCString("file_size:"); in Handle_qModuleInfo()
1084 response.PutHex64(file_size); in Handle_qModuleInfo()
1085 response.PutChar(';'); in Handle_qModuleInfo()
1087 return SendPacketNoLock(response.GetString()); in Handle_qModuleInfo()
1129 json::Object response{{"uuid", uuid_str}, in Handle_jModulesInfo() local
1134 response_array.push_back(std::move(response)); in Handle_jModulesInfo()
1137 StreamString response; in Handle_jModulesInfo() local
1138 response.AsRawOstream() << std::move(response_array); in Handle_jModulesInfo()
1140 escaped_response.PutEscapedBytes(response.GetString().data(), in Handle_jModulesInfo()
1141 response.GetSize()); in Handle_jModulesInfo()
1146 const ProcessInstanceInfo &proc_info, StreamString &response) { in CreateProcessInfoResponse() argument
1147 response.Printf( in CreateProcessInfoResponse()
1152 response.PutCString("name:"); in CreateProcessInfoResponse()
1153 response.PutStringAsRawHex8(proc_info.GetExecutableFile().GetCString()); in CreateProcessInfoResponse()
1155 response.PutChar(';'); in CreateProcessInfoResponse()
1156 response.PutCString("args:"); in CreateProcessInfoResponse()
1157 response.PutStringAsRawHex8(proc_info.GetArg0()); in CreateProcessInfoResponse()
1159 response.PutChar('-'); in CreateProcessInfoResponse()
1160 response.PutStringAsRawHex8(arg.ref()); in CreateProcessInfoResponse()
1163 response.PutChar(';'); in CreateProcessInfoResponse()
1167 response.PutCString("triple:"); in CreateProcessInfoResponse()
1168 response.PutStringAsRawHex8(proc_triple.getTriple()); in CreateProcessInfoResponse()
1169 response.PutChar(';'); in CreateProcessInfoResponse()
1175 const ProcessInstanceInfo &proc_info, StreamString &response) { in CreateProcessInfoResponse_DebugServerStyle() argument
1176 response.Printf("pid:%" PRIx64 ";parent-pid:%" PRIx64 in CreateProcessInfoResponse_DebugServerStyle()
1190 response.Printf("cputype:%" PRIx32 ";", cpu_type); in CreateProcessInfoResponse_DebugServerStyle()
1194 response.Printf("cpusubtype:%" PRIx32 ";", cpu_subtype); in CreateProcessInfoResponse_DebugServerStyle()
1198 response.Printf("vendor:%s;", vendor.c_str()); in CreateProcessInfoResponse_DebugServerStyle()
1201 response.PutCString("triple:"); in CreateProcessInfoResponse_DebugServerStyle()
1202 response.PutStringAsRawHex8(proc_triple.getTriple()); in CreateProcessInfoResponse_DebugServerStyle()
1203 response.PutChar(';'); in CreateProcessInfoResponse_DebugServerStyle()
1220 response.Printf("ostype:%s;", ostype.c_str()); in CreateProcessInfoResponse_DebugServerStyle()
1224 response.PutCString("endian:little;"); in CreateProcessInfoResponse_DebugServerStyle()
1227 response.PutCString("endian:big;"); in CreateProcessInfoResponse_DebugServerStyle()
1230 response.PutCString("endian:pdp;"); in CreateProcessInfoResponse_DebugServerStyle()
1240 response.Printf("elf_abi:%s;", abi.c_str()); in CreateProcessInfoResponse_DebugServerStyle()
1241 response.Printf("ptrsize:%d;", proc_arch.GetAddressByteSize()); in CreateProcessInfoResponse_DebugServerStyle()