Lines Matching refs:response
189 StreamString response; in Handle_qHostInfo() local
195 response.PutCString("triple:"); in Handle_qHostInfo()
196 response.PutCStringAsRawHex8(host_triple.getTriple().c_str()); in Handle_qHostInfo()
197 response.Printf(";ptrsize:%u;", host_arch.GetAddressByteSize()); in Handle_qHostInfo()
201 response.PutCString("distribution_id:"); in Handle_qHostInfo()
202 response.PutCStringAsRawHex8(distribution_id); in Handle_qHostInfo()
203 response.PutCString(";"); in Handle_qHostInfo()
208 response.PutCString("vendor:apple;"); in Handle_qHostInfo()
214 response.Printf("cputype:%u;", cpu); in Handle_qHostInfo()
216 response.Printf("cpusubtype:%u;", sub); in Handle_qHostInfo()
222 response.PutCString("ostype:tvos;"); in Handle_qHostInfo()
224 response.PutCString("ostype:watchos;"); in Handle_qHostInfo()
226 response.PutCString("ostype:bridgeos;"); in Handle_qHostInfo()
228 response.PutCString("ostype:ios;"); in Handle_qHostInfo()
233 response.PutCString("watchpoint_exceptions_received:before;"); in Handle_qHostInfo()
235 response.PutCString("ostype:macosx;"); in Handle_qHostInfo()
236 response.Printf("watchpoint_exceptions_received:after;"); in Handle_qHostInfo()
248 response.Printf("watchpoint_exceptions_received:before;"); in Handle_qHostInfo()
250 response.Printf("watchpoint_exceptions_received:after;"); in Handle_qHostInfo()
255 response.PutCString("endian:big;"); in Handle_qHostInfo()
258 response.PutCString("endian:little;"); in Handle_qHostInfo()
261 response.PutCString("endian:pdp;"); in Handle_qHostInfo()
264 response.PutCString("endian:unknown;"); in Handle_qHostInfo()
270 response.Format("os_version:{0}", version.getAsString()); in Handle_qHostInfo()
271 response.PutChar(';'); in Handle_qHostInfo()
276 response.PutCString("os_build:"); in Handle_qHostInfo()
277 response.PutCStringAsRawHex8(s.c_str()); in Handle_qHostInfo()
278 response.PutChar(';'); in Handle_qHostInfo()
281 response.PutCString("os_kernel:"); in Handle_qHostInfo()
282 response.PutCStringAsRawHex8(s.c_str()); in Handle_qHostInfo()
283 response.PutChar(';'); in Handle_qHostInfo()
292 response.PutCString("hostname:"); in Handle_qHostInfo()
293 response.PutCStringAsRawHex8("127.0.0.1"); in Handle_qHostInfo()
294 response.PutChar(';'); in Handle_qHostInfo()
297 response.PutCString("hostname:"); in Handle_qHostInfo()
298 response.PutCStringAsRawHex8(s.c_str()); in Handle_qHostInfo()
299 response.PutChar(';'); in Handle_qHostInfo()
305 response.PutCString("hostname:"); in Handle_qHostInfo()
306 response.PutCStringAsRawHex8(s.c_str()); in Handle_qHostInfo()
307 response.PutChar(';'); in Handle_qHostInfo()
312 response.Printf("default_packet_timeout:%u;", g_default_packet_timeout_sec); in Handle_qHostInfo()
314 return SendPacketNoLock(response.GetString()); in Handle_qHostInfo()
326 StreamString response; in Handle_qProcessInfoPID() local
327 CreateProcessInfoResponse(proc_info, response); in Handle_qProcessInfoPID()
328 return SendPacketNoLock(response.GetString()); in Handle_qProcessInfoPID()
421 StreamString response; in Handle_qsProcessInfo() local
423 m_proc_infos.GetProcessInfoAtIndex(m_proc_infos_index), response); in Handle_qsProcessInfo()
425 return SendPacketNoLock(response.GetString()); in Handle_qsProcessInfo()
444 StreamString response; in Handle_qUserName() local
445 response.PutCStringAsRawHex8(name.c_str()); in Handle_qUserName()
446 return SendPacketNoLock(response.GetString()); in Handle_qUserName()
465 StreamString response; in Handle_qGroupName() local
466 response.PutCStringAsRawHex8(name.c_str()); in Handle_qGroupName()
467 return SendPacketNoLock(response.GetString()); in Handle_qGroupName()
487 StreamString response; in Handle_qSpeedTest() local
489 response.PutCString("data:"); in Handle_qSpeedTest()
492 response.PutCString("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); in Handle_qSpeedTest()
495 response.Printf("%*.*s;", bytes_left, bytes_left, in Handle_qSpeedTest()
500 return SendPacketNoLock(response.GetString()); in Handle_qSpeedTest()
523 StreamString response; in Handle_vFile_Open() local
524 response.PutChar('F'); in Handle_vFile_Open()
525 response.Printf("%i", fd); in Handle_vFile_Open()
527 response.Printf(",%i", save_errno); in Handle_vFile_Open()
528 return SendPacketNoLock(response.GetString()); in Handle_vFile_Open()
549 StreamString response; in Handle_vFile_Close() local
550 response.PutChar('F'); in Handle_vFile_Close()
551 response.Printf("%i", err); in Handle_vFile_Close()
553 response.Printf(",%i", save_errno); in Handle_vFile_Close()
554 return SendPacketNoLock(response.GetString()); in Handle_vFile_Close()
565 StreamGDBRemote response; in Handle_vFile_pRead()
573 response.Printf("F-1:%i", EINVAL); in Handle_vFile_pRead()
574 return SendPacketNoLock(response.GetString()); in Handle_vFile_pRead()
580 response.PutChar('F'); in Handle_vFile_pRead()
581 response.Printf("%zi", bytes_read); in Handle_vFile_pRead()
583 response.Printf(",%i", save_errno); in Handle_vFile_pRead()
585 response.PutChar(';'); in Handle_vFile_pRead()
586 response.PutEscapedBytes(&buffer[0], bytes_read); in Handle_vFile_pRead()
588 return SendPacketNoLock(response.GetString()); in Handle_vFile_pRead()
605 StreamGDBRemote response; in Handle_vFile_pWrite()
606 response.PutChar('F'); in Handle_vFile_pWrite()
617 response.Printf("%zi", bytes_written); in Handle_vFile_pWrite()
619 response.Printf(",%i", save_errno); in Handle_vFile_pWrite()
621 response.Printf("-1,%i", EINVAL); in Handle_vFile_pWrite()
623 return SendPacketNoLock(response.GetString()); in Handle_vFile_pWrite()
640 StreamString response; in Handle_vFile_Size() local
641 response.PutChar('F'); in Handle_vFile_Size()
642 response.PutHex64(Size); in Handle_vFile_Size()
644 response.PutChar(','); in Handle_vFile_Size()
645 response.PutHex64(Size); // TODO: replace with Host::GetSyswideErrorCode() in Handle_vFile_Size()
647 return SendPacketNoLock(response.GetString()); in Handle_vFile_Size()
663 StreamString response; in Handle_vFile_Mode() local
664 response.Printf("F%u", mode); in Handle_vFile_Mode()
666 response.Printf(",%i", (int)Status(ec).GetError()); in Handle_vFile_Mode()
667 return SendPacketNoLock(response.GetString()); in Handle_vFile_Mode()
680 StreamString response; in Handle_vFile_Exists() local
681 response.PutChar('F'); in Handle_vFile_Exists()
682 response.PutChar(','); in Handle_vFile_Exists()
684 response.PutChar('1'); in Handle_vFile_Exists()
686 response.PutChar('0'); in Handle_vFile_Exists()
687 return SendPacketNoLock(response.GetString()); in Handle_vFile_Exists()
705 StreamString response; in Handle_vFile_symlink() local
706 response.Printf("F%u,%u", error.GetError(), error.GetError()); in Handle_vFile_symlink()
707 return SendPacketNoLock(response.GetString()); in Handle_vFile_symlink()
717 StreamString response; in Handle_vFile_unlink() local
718 response.Printf("F%u,%u", error.GetError(), error.GetError()); in Handle_vFile_unlink()
719 return SendPacketNoLock(response.GetString()); in Handle_vFile_unlink()
742 StreamGDBRemote response; in Handle_qPlatform_shell() local
744 response.PutCString("F,"); in Handle_qPlatform_shell()
745 response.PutHex32(UINT32_MAX); in Handle_qPlatform_shell()
747 response.PutCString("F,"); in Handle_qPlatform_shell()
748 response.PutHex32(status); in Handle_qPlatform_shell()
749 response.PutChar(','); in Handle_qPlatform_shell()
750 response.PutHex32(signo); in Handle_qPlatform_shell()
751 response.PutChar(','); in Handle_qPlatform_shell()
752 response.PutEscapedBytes(output.c_str(), output.size()); in Handle_qPlatform_shell()
754 return SendPacketNoLock(response.GetString()); in Handle_qPlatform_shell()
774 StreamGDBRemote response; in Handle_vFile_MD5() local
777 response.PutCString("F,"); in Handle_vFile_MD5()
778 response.PutCString("x"); in Handle_vFile_MD5()
780 response.PutCString("F,"); in Handle_vFile_MD5()
781 response.PutHex64(Result->low()); in Handle_vFile_MD5()
782 response.PutHex64(Result->high()); in Handle_vFile_MD5()
784 return SendPacketNoLock(response.GetString()); in Handle_vFile_MD5()
799 StreamGDBRemote response; in Handle_qPlatform_mkdir() local
800 response.Printf("F%u", error.GetError()); in Handle_qPlatform_mkdir()
802 return SendPacketNoLock(response.GetString()); in Handle_qPlatform_mkdir()
819 StreamGDBRemote response; in Handle_qPlatform_chmod() local
820 response.Printf("F%u", error.GetError()); in Handle_qPlatform_chmod()
822 return SendPacketNoLock(response.GetString()); in Handle_qPlatform_chmod()
830 StreamGDBRemote response; in Handle_qSupported() local
835 response.Printf("PacketSize=%x", max_packet_size); in Handle_qSupported()
837 response.PutCString(";QStartNoAckMode+"); in Handle_qSupported()
838 response.PutCString(";QThreadSuffixSupported+"); in Handle_qSupported()
839 response.PutCString(";QListThreadsInStopReply+"); in Handle_qSupported()
840 response.PutCString(";qEcho+"); in Handle_qSupported()
842 response.PutCString(";QPassSignals+"); in Handle_qSupported()
843 response.PutCString(";qXfer:auxv:read+"); in Handle_qSupported()
846 return SendPacketNoLock(response.GetString()); in Handle_qSupported()
936 StreamString response; in Handle_qLaunchSuccess() local
937 response.PutChar('E'); in Handle_qLaunchSuccess()
938 response.PutCString(m_process_launch_error.AsCString("<unknown error>")); in Handle_qLaunchSuccess()
939 return SendPacketNoLock(response.GetString()); in Handle_qLaunchSuccess()
1086 StreamGDBRemote response; in Handle_qModuleInfo() local
1092 response.PutCString("md5:"); in Handle_qModuleInfo()
1093 response.PutCStringAsRawHex8(Result->digest().c_str()); in Handle_qModuleInfo()
1095 response.PutCString("uuid:"); in Handle_qModuleInfo()
1096 response.PutCStringAsRawHex8(uuid_str.c_str()); in Handle_qModuleInfo()
1098 response.PutChar(';'); in Handle_qModuleInfo()
1101 response.PutCString("triple:"); in Handle_qModuleInfo()
1102 response.PutCStringAsRawHex8(module_arch.GetTriple().getTriple().c_str()); in Handle_qModuleInfo()
1103 response.PutChar(';'); in Handle_qModuleInfo()
1105 response.PutCString("file_path:"); in Handle_qModuleInfo()
1106 response.PutCStringAsRawHex8(matched_module_spec.GetFileSpec().GetCString()); in Handle_qModuleInfo()
1107 response.PutChar(';'); in Handle_qModuleInfo()
1108 response.PutCString("file_offset:"); in Handle_qModuleInfo()
1109 response.PutHex64(file_offset); in Handle_qModuleInfo()
1110 response.PutChar(';'); in Handle_qModuleInfo()
1111 response.PutCString("file_size:"); in Handle_qModuleInfo()
1112 response.PutHex64(file_size); in Handle_qModuleInfo()
1113 response.PutChar(';'); in Handle_qModuleInfo()
1115 return SendPacketNoLock(response.GetString()); in Handle_qModuleInfo()
1153 JSONObject::SP response = std::make_shared<JSONObject>(); in Handle_jModulesInfo() local
1154 response_array_sp->AppendObject(response); in Handle_jModulesInfo()
1155 response->SetObject("uuid", std::make_shared<JSONString>(uuid_str)); in Handle_jModulesInfo()
1156 response->SetObject( in Handle_jModulesInfo()
1160 response->SetObject("file_path", in Handle_jModulesInfo()
1163 response->SetObject("file_offset", in Handle_jModulesInfo()
1165 response->SetObject("file_size", std::make_shared<JSONNumber>(file_size)); in Handle_jModulesInfo()
1168 StreamString response; in Handle_jModulesInfo() local
1169 response_array_sp->Write(response); in Handle_jModulesInfo()
1171 escaped_response.PutEscapedBytes(response.GetString().data(), in Handle_jModulesInfo()
1172 response.GetSize()); in Handle_jModulesInfo()
1177 const ProcessInstanceInfo &proc_info, StreamString &response) { in CreateProcessInfoResponse() argument
1178 response.Printf( in CreateProcessInfoResponse()
1183 response.PutCString("name:"); in CreateProcessInfoResponse()
1184 response.PutCStringAsRawHex8(proc_info.GetExecutableFile().GetCString()); in CreateProcessInfoResponse()
1185 response.PutChar(';'); in CreateProcessInfoResponse()
1189 response.PutCString("triple:"); in CreateProcessInfoResponse()
1190 response.PutCStringAsRawHex8(proc_triple.getTriple().c_str()); in CreateProcessInfoResponse()
1191 response.PutChar(';'); in CreateProcessInfoResponse()
1197 const ProcessInstanceInfo &proc_info, StreamString &response) { in CreateProcessInfoResponse_DebugServerStyle() argument
1198 response.Printf("pid:%" PRIx64 ";parent-pid:%" PRIx64 in CreateProcessInfoResponse_DebugServerStyle()
1212 response.Printf("cputype:%" PRIx32 ";", cpu_type); in CreateProcessInfoResponse_DebugServerStyle()
1216 response.Printf("cpusubtype:%" PRIx32 ";", cpu_subtype); in CreateProcessInfoResponse_DebugServerStyle()
1220 response.Printf("vendor:%s;", vendor.c_str()); in CreateProcessInfoResponse_DebugServerStyle()
1223 response.PutCString("triple:"); in CreateProcessInfoResponse_DebugServerStyle()
1224 response.PutCStringAsRawHex8(proc_triple.getTriple().c_str()); in CreateProcessInfoResponse_DebugServerStyle()
1225 response.PutChar(';'); in CreateProcessInfoResponse_DebugServerStyle()
1241 response.Printf("ostype:%s;", ostype.c_str()); in CreateProcessInfoResponse_DebugServerStyle()
1245 response.PutCString("endian:little;"); in CreateProcessInfoResponse_DebugServerStyle()
1248 response.PutCString("endian:big;"); in CreateProcessInfoResponse_DebugServerStyle()
1251 response.PutCString("endian:pdp;"); in CreateProcessInfoResponse_DebugServerStyle()
1261 response.Printf("elf_abi:%s;", abi.c_str()); in CreateProcessInfoResponse_DebugServerStyle()
1262 response.Printf("ptrsize:%d;", proc_arch.GetAddressByteSize()); in CreateProcessInfoResponse_DebugServerStyle()