Lines Matching defs:response

379     StreamString response;
385 response.PutCString("triple:");
386 response.PutCStringAsRawHex8(host_triple.getTriple().c_str());
387 response.Printf (";ptrsize:%u;",host_arch.GetAddressByteSize());
392 response.PutCString("distribution_id:");
393 response.PutCStringAsRawHex8(distribution_id);
394 response.PutCString(";");
400 response.Printf ("cputype:%u;", cpu);
402 response.Printf ("cpusubtype:%u;", sub);
405 response.Printf("watchpoint_exceptions_received:before;"); // On armv7 we use "synchronous" watchpoints which means the exception is delivered before the instruction executes.
407 response.Printf("watchpoint_exceptions_received:after;");
411 case eByteOrderBig: response.PutCString ("endian:big;"); break;
412 case eByteOrderLittle: response.PutCString ("endian:little;"); break;
413 case eByteOrderPDP: response.PutCString ("endian:pdp;"); break;
414 default: response.PutCString ("endian:unknown;"); break;
424 response.Printf("os_version:%u", major);
427 response.Printf(".%u", minor);
429 response.Printf(".%u", update);
431 response.PutChar(';');
438 response.PutCString ("os_build:");
439 response.PutCStringAsRawHex8(s.c_str());
440 response.PutChar(';');
444 response.PutCString ("os_kernel:");
445 response.PutCStringAsRawHex8(s.c_str());
446 response.PutChar(';');
454 response.PutCString ("hostname:");
455 response.PutCStringAsRawHex8("localhost");
456 response.PutChar(';');
460 response.PutCString ("hostname:");
461 response.PutCStringAsRawHex8(s.c_str());
462 response.PutChar(';');
470 response.PutCString ("hostname:");
471 response.PutCStringAsRawHex8(s.c_str());
472 response.PutChar(';');
476 return SendPacketNoLock (response.GetData(), response.GetSize());
480 CreateProcessInfoResponse (const ProcessInstanceInfo &proc_info, StreamString &response)
482 response.Printf ("pid:%" PRIu64 ";ppid:%" PRIu64 ";uid:%i;gid:%i;euid:%i;egid:%i;",
489 response.PutCString ("name:");
490 response.PutCStringAsRawHex8(proc_info.GetName());
491 response.PutChar(';');
496 response.PutCString("triple:");
497 response.PutCStringAsRawHex8(proc_triple.getTriple().c_str());
498 response.PutChar(';');
513 StreamString response;
514 CreateProcessInfoResponse (proc_info, response);
515 return SendPacketNoLock (response.GetData(), response.GetSize());
627 StreamString response;
628 CreateProcessInfoResponse (m_proc_infos.GetProcessInfoAtIndex(m_proc_infos_index), response);
630 return SendPacketNoLock (response.GetData(), response.GetSize());
646 StreamString response;
647 response.PutCStringAsRawHex8 (name.c_str());
648 return SendPacketNoLock (response.GetData(), response.GetSize());
666 StreamString response;
667 response.PutCStringAsRawHex8 (name.c_str());
668 return SendPacketNoLock (response.GetData(), response.GetSize());
689 StreamString response;
691 response.PutCString("data:");
696 response.PutCString("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
701 response.Printf ("%*.*s;", bytes_left, bytes_left, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
705 return SendPacketNoLock (response.GetData(), response.GetSize());
850 StreamString response;
851 response.Printf("QC%" PRIx64, pid);
867 return SendPacketNoLock (response.GetData(), response.GetSize());
978 char response[256];
979 const int response_len = ::snprintf (response, sizeof(response), "pid:%" PRIu64 ";port:%u;", debugserver_pid, port + m_port_offset);
980 assert (response_len < sizeof(response));
981 PacketResult packet_result = SendPacketNoLock (response, response_len);
1119 StreamString response;
1120 response.PutChar('E');
1121 response.PutCString(m_process_launch_error.AsCString("<unknown error>"));
1122 return SendPacketNoLock (response.GetData(), response.GetSize());
1191 StreamString response;
1203 response.PutBytesAsRawHex8(cwd, strlen(cwd));
1204 return SendPacketNoLock(response.GetData(), response.GetSize());
1212 response.PutBytesAsRawHex8(working_dir, strlen(working_dir));
1213 return SendPacketNoLock(response.GetData(), response.GetSize());
1276 // Send response first before changing m_send_acks to we ack this packet
1336 StreamString response;
1337 response.PutChar('F');
1338 response.Printf("%i", fd);
1340 response.Printf(",%i", save_errno);
1341 return SendPacketNoLock(response.GetData(), response.GetSize());
1365 StreamString response;
1366 response.PutChar('F');
1367 response.Printf("%i", err);
1369 response.Printf(",%i", save_errno);
1370 return SendPacketNoLock(response.GetData(), response.GetSize());
1380 StreamGDBRemote response;
1391 response.Printf("F-1:%i", EINVAL);
1392 return SendPacketNoLock(response.GetData(), response.GetSize());
1398 response.PutChar('F');
1399 response.Printf("%zi", bytes_read);
1401 response.Printf(",%i", save_errno);
1404 response.PutChar(';');
1405 response.PutEscapedBytes(&buffer[0], bytes_read);
1407 return SendPacketNoLock(response.GetData(), response.GetSize());
1423 StreamGDBRemote response;
1424 response.PutChar('F');
1437 response.Printf("%zi", bytes_written);
1439 response.Printf(",%i", save_errno);
1443 response.Printf ("-1,%i", EINVAL);
1445 return SendPacketNoLock(response.GetData(), response.GetSize());
1461 StreamString response;
1462 response.PutChar('F');
1463 response.PutHex64(retcode);
1466 response.PutChar(',');
1467 response.PutHex64(retcode); // TODO: replace with Host::GetSyswideErrorCode()
1469 return SendPacketNoLock(response.GetData(), response.GetSize());
1484 StreamString response;
1485 response.Printf("F%u", mode);
1487 response.Printf(",%i", (int)error.GetError());
1488 return SendPacketNoLock(response.GetData(), response.GetSize());
1502 StreamString response;
1503 response.PutChar('F');
1504 response.PutChar(',');
1506 response.PutChar('1');
1508 response.PutChar('0');
1509 return SendPacketNoLock(response.GetData(), response.GetSize());
1523 StreamString response;
1524 response.Printf("F%u,%u", error.GetError(), error.GetError());
1525 return SendPacketNoLock(response.GetData(), response.GetSize());
1535 StreamString response;
1536 response.Printf("F%u,%u", error.GetError(), error.GetError());
1537 return SendPacketNoLock(response.GetData(), response.GetSize());
1561 StreamGDBRemote response;
1564 response.PutCString("F,");
1565 response.PutHex32(UINT32_MAX);
1569 response.PutCString("F,");
1570 response.PutHex32(status);
1571 response.PutChar(',');
1572 response.PutHex32(signo);
1573 response.PutChar(',');
1574 response.PutEscapedBytes(output.c_str(), output.size());
1576 return SendPacketNoLock(response.GetData(), response.GetSize());
1597 StreamGDBRemote response;
1600 response.PutCString("F,");
1601 response.PutCString("x");
1605 response.PutCString("F,");
1606 response.PutHex64(a);
1607 response.PutHex64(b);
1609 return SendPacketNoLock(response.GetData(), response.GetSize());