Lines Matching full: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;");
235 response.Printf("watchpoint_exceptions_received:before;");
237 response.Printf("watchpoint_exceptions_received:after;");
242 response.PutCString("endian:big;");
245 response.PutCString("endian:little;");
248 response.PutCString("endian:pdp;");
251 response.PutCString("endian:unknown;");
257 response.Format("os_version:{0}", version.getAsString());
258 response.PutChar(';');
264 response.Format("maccatalyst_version:{0}",
266 response.PutChar(';');
271 response.PutCString("os_build:");
272 response.PutStringAsRawHex8(*s);
273 response.PutChar(';');
276 response.PutCString("os_kernel:");
277 response.PutStringAsRawHex8(*s);
278 response.PutChar(';');
288 response.PutCString("hostname:");
289 response.PutStringAsRawHex8("127.0.0.1");
290 response.PutChar(';');
293 response.PutCString("hostname:");
294 response.PutStringAsRawHex8(s);
295 response.PutChar(';');
301 response.PutCString("hostname:");
302 response.PutStringAsRawHex8(s);
303 response.PutChar(';');
308 response.Printf("default_packet_timeout:%u;", g_default_packet_timeout_sec);
310 return SendPacketNoLock(response.GetString());
322 StreamString response;
323 CreateProcessInfoResponse(proc_info, response);
324 return SendPacketNoLock(response.GetString());
417 StreamString response;
418 CreateProcessInfoResponse(m_proc_infos[m_proc_infos_index], response);
420 return SendPacketNoLock(response.GetString());
438 StreamString response;
439 response.PutStringAsRawHex8(*name);
440 return SendPacketNoLock(response.GetString());
458 StreamString response;
459 response.PutStringAsRawHex8(*name);
460 return SendPacketNoLock(response.GetString());
480 StreamString response;
482 response.PutCString("data:");
485 response.PutCString("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
488 response.Printf("%*.*s;", bytes_left, bytes_left,
493 return SendPacketNoLock(response.GetString());
515 StreamString response;
516 response.PutChar('F');
521 response.Printf("%x", descriptor);
523 response.PutCString("-1");
526 response.Printf(",%x", code.value());
530 return SendPacketNoLock(response.GetString());
563 StreamString response;
564 response.PutChar('F');
565 response.Printf("%x", err);
567 response.Printf(",%x", system_errno_to_gdb(save_errno));
568 return SendPacketNoLock(response.GetString());
574 StreamGDBRemote response;
582 response.Printf("F-1:%x", EINVAL);
583 return SendPacketNoLock(response.GetString());
590 response.PutChar('F');
592 response.Printf("%zx", count);
593 response.PutChar(';');
594 response.PutEscapedBytes(&buffer[0], count);
596 response.PutCString("-1");
598 response.Printf(",%x", system_errno_to_gdb(save_errno));
600 return SendPacketNoLock(response.GetString());
611 StreamGDBRemote response;
612 response.PutChar('F');
626 response.Printf("%zx", count);
628 response.PutCString("-1");
630 response.Printf(",%x", system_errno_to_gdb(save_errno));
633 response.Printf("-1,%x", EINVAL);
635 return SendPacketNoLock(response.GetString());
651 StreamString response;
652 response.PutChar('F');
653 response.PutHex64(Size);
655 response.PutChar(',');
656 response.PutHex64(Size); // TODO: replace with Host::GetSyswideErrorCode()
658 return SendPacketNoLock(response.GetString());
674 StreamString response;
676 response.Printf("F%x", mode);
678 response.Printf("F-1,%x", (int)Status(ec).GetError());
679 return SendPacketNoLock(response.GetString());
692 StreamString response;
693 response.PutChar('F');
694 response.PutChar(',');
696 response.PutChar('1');
698 response.PutChar('0');
699 return SendPacketNoLock(response.GetString());
717 StreamString response;
718 response.Printf("F%x,%x", error.GetError(), error.GetError());
719 return SendPacketNoLock(response.GetString());
729 StreamString response;
730 response.Printf("F%x,%x", error.GetError(), 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());