Lines Matching full:response
485 StreamGDBRemote response;
486 response.PutChar('E');
487 response.PutHex8(GDBRemoteServerError::eErrorExitStatus);
488 return SendPacketNoLock(response.GetString());
499 StreamGDBRemote response;
500 response.Format("{0:g}", *wait_status);
503 response.Format(";process:{0:x-}", process->GetID());
506 response.GetString());
507 return SendPacketNoLock(response.GetString());
510 static void AppendHexValue(StreamString &response, const uint8_t *buf,
515 response.PutHex8(buf[i]);
518 response.PutHex8(buf[i]);
605 static void CollectRegNums(const uint32_t *reg_num, StreamString &response,
609 response.PutChar(',');
611 response.Printf("%" PRIx32, *reg_num);
613 response.Printf("%" PRIu32, *reg_num);
618 StreamString &response, NativeRegisterContext ®_ctx,
630 AppendHexValue(response, (const uint8_t *)reg_value_p->GetBytes(),
637 AppendHexValue(response, zeros.data(), zeros.size(), false);
805 StreamString response;
809 return response;
818 response.PutChar('T');
827 response.PutHex8(signum & 0xff);
830 response.PutCString("thread:");
831 AppendThreadIDToResponse(response, process.GetID(), thread.GetID());
832 response.PutChar(';');
840 response.PutCString("name:");
841 response.PutCString(thread_name);
844 response.PutCString("hexname:");
845 response.PutStringAsRawHex8(thread_name);
847 response.PutChar(';');
859 response.PutCString("threads:");
864 response.PutChar(',');
865 response.Printf("%" PRIx64, listed_thread.GetID());
868 response.PutChar(';');
880 response.PutCString("jstopinfo:");
883 response.PutStringAsRawHex8(unescaped_response.GetData());
884 response.PutChar(';');
892 response.PutCString("thread-pcs");
912 response.PutChar(delimiter);
914 WriteRegisterValueInHexFixedWidth(response, reg_ctx, *reg_info_p,
918 response.PutChar(';');
938 response.Printf("%.02x:", reg_num);
939 WriteRegisterValueInHexFixedWidth(response, reg_ctx, *reg_info_p,
941 response.PutChar(';');
955 response.Printf("reason:%s;", reason_str);
960 response.PutCString("description:");
961 response.PutStringAsRawHex8(description);
962 response.PutChar(';');
965 response.PutCString("metype:");
966 response.PutHex64(tid_stop_info.details.exception.type);
967 response.PutCString(";mecount:");
968 response.PutHex32(tid_stop_info.details.exception.data_count);
969 response.PutChar(';');
972 response.PutCString("medata:");
973 response.PutHex64(tid_stop_info.details.exception.data[i]);
974 response.PutChar(';');
989 response.Printf("%s:p%" PRIx64 ".%" PRIx64 ";", reason_str,
994 return response;
1005 StreamString response = PrepareStopReplyPacketForThread(*thread);
1006 if (response.Empty())
1011 "Stop", m_stop_notification_queue, response.GetString());
1017 return SendPacketNoLock(response.GetString());
1196 StreamString response;
1197 response.PutChar('O');
1198 response.PutBytesAsRawHex8(buffer, len);
1202 response.GetString());
1203 return SendPacketNoLock(response.GetString());
1371 StreamGDBRemote response;
1372 response.PutEscapedBytes(bytes->data(), bytes->size());
1373 return SendPacketNoLock(response.GetString());
1395 StreamString response;
1396 CreateProcessInfoResponse_DebugServerStyle(proc_info, response);
1397 return SendPacketNoLock(response.GetString());
1416 StreamString response;
1417 response.PutCString("QC");
1418 AppendThreadIDToResponse(response, m_current_process->GetID(),
1421 return SendPacketNoLock(response.GetString());
1445 // The response to kill packet is undefined per the spec. LLDB
1446 // follows the same rules as for continue packets, i.e. no response
1472 // OK response is sent when the process dies.
1503 StreamString response;
1504 response.PutStringAsRawHex8(working_dir.GetPath().c_str());
1505 return SendPacketNoLock(response.GetString());
1632 // otherwise, the response is the stopped/exited message.
1674 StreamString response;
1675 response.Printf("vCont;c;C;s;S;t");
1677 return SendPacketNoLock(response.GetString());
1933 // do not send the OK response yet.
1940 // send the OK response.
2002 // Return the end of registers response if we've iterated one past the end of
2011 // Build the reginfos response.
2012 StreamGDBRemote response;
2014 response.PutCString("name:");
2015 response.PutCString(reg_info->name);
2016 response.PutChar(';');
2019 response.PutCString("alt-name:");
2020 response.PutCString(reg_info->alt_name);
2021 response.PutChar(';');
2024 response.Printf("bitsize:%" PRIu32 ";", reg_info->byte_size * 8);
2027 response.Printf("offset:%" PRIu32 ";", reg_info->byte_offset);
2031 response << "encoding:" << encoding << ';';
2035 response << "format:" << format << ';';
2040 response << "set:" << register_set_name << ';';
2044 response.Printf("ehframe:%" PRIu32 ";",
2048 response.Printf("dwarf:%" PRIu32 ";",
2053 response << "generic:" << kind_generic << ';';
2056 response.PutCString("container-regs:");
2057 CollectRegNums(reg_info->value_regs, response, true);
2058 response.PutChar(';');
2062 response.PutCString("invalidate-regs:");
2063 CollectRegNums(reg_info->invalidate_regs, response, true);
2064 response.PutChar(';');
2067 return SendPacketNoLock(response.GetString());
2071 StreamGDBRemote &response, NativeProcessProtocol &process, bool &had_any) {
2081 response.PutChar(had_any ? ',' : 'm');
2082 AppendThreadIDToResponse(response, pid, thread.GetID());
2095 StreamGDBRemote response;
2098 AddProcessThreads(response, *pid_ptr.second.process_up, had_any);
2102 return SendPacketNoLock(response.GetString());
2161 // Write the response.
2162 StreamGDBRemote response;
2163 response.PutBytesAsRawHex8(regs_buffer.data(), regs_buffer.size());
2165 return SendPacketNoLock(response.GetString());
2194 // Return the end of registers response if we've iterated one past the end of
2213 // Build the reginfos response.
2214 StreamGDBRemote response;
2239 response.PutHex8(data[i]);
2241 return SendPacketNoLock(response.GetString());
2293 // Return the end of registers response if we've iterated one past the end of
2306 // Build the reginfos response.
2307 StreamGDBRemote response;
2472 // No response required from stop all.
2517 // Allocate the response buffer.
2543 StreamGDBRemote response;
2547 response.PutEscapedBytes(buf.data(), byte_count);
2551 response.PutHex8(buf[i]);
2554 return SendPacketNoLock(response.GetString());
2601 StreamGDBRemote response;
2602 response.PutHex64(*addr);
2603 return SendPacketNoLock(response.GetString());
2682 StreamGDBRemote response;
2769 StreamGDBRemote response;
2778 response.PutCString("error:");
2779 response.PutStringAsRawHex8(error.AsCString());
2780 response.PutChar(';');
2783 response.Printf("start:%" PRIx64 ";size:%" PRIx64 ";",
2791 response.PutCString("permissions:");
2794 response.PutChar('r');
2796 response.PutChar('w');
2798 response.PutChar('x');
2800 response.PutChar(';');
2807 response.PutCString("flags:");
2809 response.PutCString("mt");
2811 response.PutChar(';');
2817 response.PutCString("name:");
2818 response.PutStringAsRawHex8(name.GetStringRef());
2819 response.PutChar(';');
2823 return SendPacketNoLock(response.GetString());
3049 // No response here, unless in non-stop mode.
3066 StreamString response;
3068 response.Printf("<?xml version=\"1.0\"?>\n");
3069 response.Printf("<target version=\"1.0\">\n");
3070 response.IndentMore();
3072 response.Indent();
3073 response.Printf("<architecture>%s</architecture>\n",
3080 response.Indent("<feature>\n");
3084 response.IndentMore();
3099 response.IndentMore();
3100 reg_info->flags_type->EnumsToXML(response, field_enums_seen);
3101 reg_info->flags_type->ToXML(response);
3102 response.IndentLess();
3105 response.Indent();
3106 response.Printf("<reg name=\"%s\" bitsize=\"%" PRIu32
3111 response.Printf("offset=\"%" PRIu32 "\" ", reg_info->byte_offset);
3114 response.Printf("altname=\"%s\" ", reg_info->alt_name);
3118 response << "encoding=\"" << encoding << "\" ";
3122 response << "format=\"" << format << "\" ";
3125 response << "type=\"" << reg_info->flags_type->GetID() << "\" ";
3130 response << "group=\"" << register_set_name << "\" ";
3134 response.Printf("ehframe_regnum=\"%" PRIu32 "\" ",
3139 response.Printf("dwarf_regnum=\"%" PRIu32 "\" ",
3144 response << "generic=\"" << kind_generic << "\" ";
3148 response.PutCString("value_regnums=\"");
3149 CollectRegNums(reg_info->value_regs, response, false);
3150 response.Printf("\" ");
3154 response.PutCString("invalidate_regnums=\"");
3155 CollectRegNums(reg_info->invalidate_regs, response, false);
3156 response.Printf("\" ");
3159 response.Printf("/>\n");
3163 response.IndentLess();
3165 response.Indent("</feature>\n");
3166 response.IndentLess();
3167 response.Indent("</target>\n");
3168 return MemoryBuffer::getMemBufferCopy(response.GetString(), "target.xml");
3206 StreamString response;
3207 response.Printf("<library-list-svr4 version=\"1.0\">");
3209 response.Printf("<library name=\"%s\" ",
3211 response.Printf("lm=\"0x%" PRIx64 "\" ", library.link_map);
3212 response.Printf("l_addr=\"0x%" PRIx64 "\" ", library.base_addr);
3213 response.Printf("l_ld=\"0x%" PRIx64 "\" />", library.ld_addr);
3215 response.Printf("</library-list-svr4>");
3216 return MemoryBuffer::getMemBufferCopy(response.GetString(), __FUNCTION__);
3266 // Send back the response
3267 StreamGDBRemote response;
3272 response.PutChar('l');
3277 // Mark the response type according to whether we're reading the remainder
3281 response.PutChar('l');
3285 response.PutChar('m');
3289 response.PutEscapedBytes(buffer.data(), buffer.size());
3295 return SendPacketNoLock(response.GetString());
3340 // Write the response.
3341 StreamGDBRemote response;
3342 response.Printf("%" PRIu32, save_id);
3343 return SendPacketNoLock(response.GetString());
3637 StreamString response;
3648 response.AsRawOstream() << *threads_info;
3650 escaped_response.PutEscapedBytes(response.GetData(), response.GetSize());
3670 StreamGDBRemote response;
3672 response.Printf("num:0;");
3674 response.Printf("num:%d;", hw_debug_cap->second);
3676 return SendPacketNoLock(response.GetString());
3703 StreamGDBRemote response;
3704 response.PutHex64(file_load_address);
3705 return SendPacketNoLock(response.GetString());
3810 StreamGDBRemote response;
3818 response.PutChar('m');
3819 response.PutBytesAsRawHex8(tags.data(), tags.size());
3820 return SendPacketNoLock(response.GetString());
3940 StreamString response;
3941 response.PutCString("core-path:");
3942 response.PutStringAsRawHex8(ret.get());
3943 return SendPacketNoLock(response.GetString());
3974 // If we are stopping anything, defer sending the OK response until we're
3994 // an OK response.
4032 // Otherwise, vCtrlC should issue an OK response (normal interrupts do not).
4281 Stream &response, lldb::pid_t pid, lldb::tid_t tid) {
4284 response.Format("p{0:x-}.", pid);
4285 response.Format("{0:x-}", tid);