Lines Matching defs:response
180 StreamString response;
186 response.PutCString("triple:");
187 response.PutStringAsRawHex8(host_triple.getTriple());
188 response.Printf(";ptrsize:%u;", host_arch.GetAddressByteSize());
192 response.PutCString("distribution_id:");
193 response.PutStringAsRawHex8(distribution_id);
194 response.PutCString(";");
199 response.PutCString("vendor:apple;");
205 response.Printf("cputype:%u;", cpu);
207 response.Printf("cpusubtype:%u;", sub);
212 response.PutCString("ostype:tvos;");
214 response.PutCString("ostype:watchos;");
216 response.PutCString("ostype:bridgeos;");
218 response.PutCString("ostype:ios;");
223 response.PutCString("watchpoint_exceptions_received:before;");
225 response.PutCString("ostype:macosx;");
226 response.Printf("watchpoint_exceptions_received:after;");
236 response.Printf("watchpoint_exceptions_received:before;");
238 response.Printf("watchpoint_exceptions_received:after;");
243 response.PutCString("endian:big;");
246 response.PutCString("endian:little;");
249 response.PutCString("endian:pdp;");
252 response.PutCString("endian:unknown;");
258 response.Format("os_version:{0}", version.getAsString());
259 response.PutChar(';');
265 response.Format("maccatalyst_version:{0}",
267 response.PutChar(';');
272 response.PutCString("os_build:");
273 response.PutStringAsRawHex8(*s);
274 response.PutChar(';');
277 response.PutCString("os_kernel:");
278 response.PutStringAsRawHex8(*s);
279 response.PutChar(';');
289 response.PutCString("hostname:");
290 response.PutStringAsRawHex8("127.0.0.1");
291 response.PutChar(';');
294 response.PutCString("hostname:");
295 response.PutStringAsRawHex8(s);
296 response.PutChar(';');
302 response.PutCString("hostname:");
303 response.PutStringAsRawHex8(s);
304 response.PutChar(';');
309 response.Printf("default_packet_timeout:%u;", g_default_packet_timeout_sec);
311 return SendPacketNoLock(response.GetString());
323 StreamString response;
324 CreateProcessInfoResponse(proc_info, response);
325 return SendPacketNoLock(response.GetString());
418 StreamString response;
419 CreateProcessInfoResponse(m_proc_infos[m_proc_infos_index], response);
421 return SendPacketNoLock(response.GetString());
439 StreamString response;
440 response.PutStringAsRawHex8(*name);
441 return SendPacketNoLock(response.GetString());
459 StreamString response;
460 response.PutStringAsRawHex8(*name);
461 return SendPacketNoLock(response.GetString());
481 StreamString response;
483 response.PutCString("data:");
486 response.PutCString("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
489 response.Printf("%*.*s;", bytes_left, bytes_left,
494 return SendPacketNoLock(response.GetString());
527 StreamString response;
528 response.PutChar('F');
533 response.Printf("%x", descriptor);
535 response.PutCString("-1");
537 response.Printf(",%x", system_errno_to_gdb(code.value()));
540 return SendPacketNoLock(response.GetString());
562 StreamString response;
563 response.PutChar('F');
564 response.Printf("%x", err);
566 response.Printf(",%x", system_errno_to_gdb(save_errno));
567 return SendPacketNoLock(response.GetString());
573 StreamGDBRemote response;
581 response.Printf("F-1:%x", EINVAL);
582 return SendPacketNoLock(response.GetString());
589 response.PutChar('F');
591 response.Printf("%zx", count);
592 response.PutChar(';');
593 response.PutEscapedBytes(&buffer[0], count);
595 response.PutCString("-1");
597 response.Printf(",%x", system_errno_to_gdb(save_errno));
599 return SendPacketNoLock(response.GetString());
610 StreamGDBRemote response;
611 response.PutChar('F');
625 response.Printf("%zx", count);
627 response.PutCString("-1");
629 response.Printf(",%x", system_errno_to_gdb(save_errno));
632 response.Printf("-1,%x", EINVAL);
634 return SendPacketNoLock(response.GetString());
650 StreamString response;
651 response.PutChar('F');
652 response.PutHex64(Size);
654 response.PutChar(',');
655 response.PutHex64(Size); // TODO: replace with Host::GetSyswideErrorCode()
657 return SendPacketNoLock(response.GetString());
673 StreamString response;
675 response.Printf("F%x", mode);
677 response.Printf("F-1,%x", (int)Status(ec).GetError());
678 return SendPacketNoLock(response.GetString());
691 StreamString response;
692 response.PutChar('F');
693 response.PutChar(',');
695 response.PutChar('1');
697 response.PutChar('0');
698 return SendPacketNoLock(response.GetString());
716 StreamString response;
717 response.Printf("F%x,%x", error.GetError(), error.GetError());
718 return SendPacketNoLock(response.GetString());
728 StreamString response;
729 response.Printf("F%x,%x", error.GetError(),
731 return SendPacketNoLock(response.GetString());
754 StreamGDBRemote response;
756 response.PutCString("F,");
757 response.PutHex32(UINT32_MAX);
759 response.PutCString("F,");
760 response.PutHex32(status);
761 response.PutChar(',');
762 response.PutHex32(signo);
763 response.PutChar(',');
764 response.PutEscapedBytes(output.c_str(), output.size());
766 return SendPacketNoLock(response.GetString());
784 StreamGDBRemote response;
791 response.Printf("F-1,%x", system_errno_to_gdb(save_errno));
792 return SendPacketNoLock(response.GetString());
815 response.Printf("F%zx;", sizeof(data));
816 response.PutEscapedBytes(&data, sizeof(data));
817 return SendPacketNoLock(response.GetString());
834 StreamGDBRemote response;
837 response.PutCString("F,");
838 response.PutCString("x");
840 response.PutCString("F,");
841 response.PutHex64(Result->low());
842 response.PutHex64(Result->high());
844 return SendPacketNoLock(response.GetString());
859 StreamGDBRemote response;
860 response.Printf("F%x", error.GetError());
862 return SendPacketNoLock(response.GetString());
879 StreamGDBRemote response;
880 response.Printf("F%x", error.GetError());
882 return SendPacketNoLock(response.GetString());
910 // Send response first before changing m_send_acks to we ack this packet
969 StreamString response;
970 response.PutChar('E');
971 response.PutCString(m_process_launch_error.AsCString("<unknown error>"));
972 return SendPacketNoLock(response.GetString());
1119 StreamGDBRemote response;
1126 response.PutCString("md5:");
1127 response.PutStringAsRawHex8(Result->digest());
1129 response.PutCString("uuid:");
1130 response.PutStringAsRawHex8(uuid_str);
1132 response.PutChar(';');
1135 response.PutCString("triple:");
1136 response.PutStringAsRawHex8(module_arch.GetTriple().getTriple());
1137 response.PutChar(';');
1139 response.PutCString("file_path:");
1140 response.PutStringAsRawHex8(
1142 response.PutChar(';');
1143 response.PutCString("file_offset:");
1144 response.PutHex64(file_offset);
1145 response.PutChar(';');
1146 response.PutCString("file_size:");
1147 response.PutHex64(file_size);
1148 response.PutChar(';');
1150 return SendPacketNoLock(response.GetString());
1192 json::Object response{{"uuid", uuid_str},
1197 response_array.push_back(std::move(response));
1200 StreamString response;
1201 response.AsRawOstream() << std::move(response_array);
1203 escaped_response.PutEscapedBytes(response.GetString().data(),
1204 response.GetSize());
1209 const ProcessInstanceInfo &proc_info, StreamString &response) {
1210 response.Printf(
1215 response.PutCString("name:");
1216 response.PutStringAsRawHex8(proc_info.GetExecutableFile().GetPath().c_str());
1218 response.PutChar(';');
1219 response.PutCString("args:");
1220 response.PutStringAsRawHex8(proc_info.GetArg0());
1222 response.PutChar('-');
1223 response.PutStringAsRawHex8(arg.ref());
1226 response.PutChar(';');
1230 response.PutCString("triple:");
1231 response.PutStringAsRawHex8(proc_triple.getTriple());
1232 response.PutChar(';');
1238 const ProcessInstanceInfo &proc_info, StreamString &response) {
1239 response.Printf("pid:%" PRIx64 ";parent-pid:%" PRIx64
1253 response.Printf("cputype:%" PRIx32 ";", cpu_type);
1257 response.Printf("cpusubtype:%" PRIx32 ";", cpu_subtype);
1261 response.Printf("vendor:%s;", vendor.c_str());
1264 response.PutCString("triple:");
1265 response.PutStringAsRawHex8(proc_triple.getTriple());
1266 response.PutChar(';');
1283 response.Printf("ostype:%s;", ostype.c_str());
1287 response.PutCString("endian:little;");
1290 response.PutCString("endian:big;");
1293 response.PutCString("endian:pdp;");
1303 response.Printf("elf_abi:%s;", abi.c_str());
1304 response.Printf("ptrsize:%d;", proc_arch.GetAddressByteSize());