Lines Matching defs: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 &reg_ctx,
630 AppendHexValue(response, (const uint8_t *)reg_value_p->GetBytes(),
637 AppendHexValue(response, zeros.data(), zeros.size(), false);
807 StreamString response;
811 return response;
820 response.PutChar('T');
829 response.PutHex8(signum & 0xff);
832 response.PutCString("thread:");
833 AppendThreadIDToResponse(response, process.GetID(), thread.GetID());
834 response.PutChar(';');
842 response.PutCString("name:");
843 response.PutCString(thread_name);
846 response.PutCString("hexname:");
847 response.PutStringAsRawHex8(thread_name);
849 response.PutChar(';');
861 response.PutCString("threads:");
866 response.PutChar(',');
867 response.Printf("%" PRIx64, listed_thread.GetID());
870 response.PutChar(';');
882 response.PutCString("jstopinfo:");
885 response.PutStringAsRawHex8(unescaped_response.GetData());
886 response.PutChar(';');
894 response.PutCString("thread-pcs");
914 response.PutChar(delimiter);
916 WriteRegisterValueInHexFixedWidth(response, reg_ctx, *reg_info_p,
920 response.PutChar(';');
940 response.Printf("%.02x:", reg_num);
941 WriteRegisterValueInHexFixedWidth(response, reg_ctx, *reg_info_p,
943 response.PutChar(';');
957 response.Printf("reason:%s;", reason_str);
962 response.PutCString("description:");
963 response.PutStringAsRawHex8(description);
964 response.PutChar(';');
967 response.PutCString("metype:");
968 response.PutHex64(tid_stop_info.details.exception.type);
969 response.PutCString(";mecount:");
970 response.PutHex32(tid_stop_info.details.exception.data_count);
971 response.PutChar(';');
974 response.PutCString("medata:");
975 response.PutHex64(tid_stop_info.details.exception.data[i]);
976 response.PutChar(';');
991 response.Printf("%s:p%" PRIx64 ".%" PRIx64 ";", reason_str,
996 return response;
1007 StreamString response = PrepareStopReplyPacketForThread(*thread);
1008 if (response.Empty())
1013 "Stop", m_stop_notification_queue, response.GetString());
1019 return SendPacketNoLock(response.GetString());
1198 StreamString response;
1199 response.PutChar('O');
1200 response.PutBytesAsRawHex8(buffer, len);
1204 response.GetString());
1205 return SendPacketNoLock(response.GetString());
1374 StreamGDBRemote response;
1375 response.PutEscapedBytes(bytes->data(), bytes->size());
1376 return SendPacketNoLock(response.GetString());
1398 StreamString response;
1399 CreateProcessInfoResponse_DebugServerStyle(proc_info, response);
1400 return SendPacketNoLock(response.GetString());
1419 StreamString response;
1420 response.PutCString("QC");
1421 AppendThreadIDToResponse(response, m_current_process->GetID(),
1424 return SendPacketNoLock(response.GetString());
1448 // The response to kill packet is undefined per the spec. LLDB
1449 // follows the same rules as for continue packets, i.e. no response
1475 // OK response is sent when the process dies.
1506 StreamString response;
1507 response.PutStringAsRawHex8(working_dir.GetPath().c_str());
1508 return SendPacketNoLock(response.GetString());
1635 // otherwise, the response is the stopped/exited message.
1677 StreamString response;
1678 response.Printf("vCont;c;C;s;S;t");
1680 return SendPacketNoLock(response.GetString());
1936 // do not send the OK response yet.
1943 // send the OK response.
2005 // Return the end of registers response if we've iterated one past the end of
2014 // Build the reginfos response.
2015 StreamGDBRemote response;
2017 response.PutCString("name:");
2018 response.PutCString(reg_info->name);
2019 response.PutChar(';');
2022 response.PutCString("alt-name:");
2023 response.PutCString(reg_info->alt_name);
2024 response.PutChar(';');
2027 response.Printf("bitsize:%" PRIu32 ";", reg_info->byte_size * 8);
2030 response.Printf("offset:%" PRIu32 ";", reg_info->byte_offset);
2034 response << "encoding:" << encoding << ';';
2038 response << "format:" << format << ';';
2043 response << "set:" << register_set_name << ';';
2047 response.Printf("ehframe:%" PRIu32 ";",
2051 response.Printf("dwarf:%" PRIu32 ";",
2056 response << "generic:" << kind_generic << ';';
2059 response.PutCString("container-regs:");
2060 CollectRegNums(reg_info->value_regs, response, true);
2061 response.PutChar(';');
2065 response.PutCString("invalidate-regs:");
2066 CollectRegNums(reg_info->invalidate_regs, response, true);
2067 response.PutChar(';');
2070 return SendPacketNoLock(response.GetString());
2074 StreamGDBRemote &response, NativeProcessProtocol &process, bool &had_any) {
2084 response.PutChar(had_any ? ',' : 'm');
2085 AppendThreadIDToResponse(response, pid, thread.GetID());
2098 StreamGDBRemote response;
2101 AddProcessThreads(response, *pid_ptr.second.process_up, had_any);
2105 return SendPacketNoLock(response.GetString());
2164 // Write the response.
2165 StreamGDBRemote response;
2166 response.PutBytesAsRawHex8(regs_buffer.data(), regs_buffer.size());
2168 return SendPacketNoLock(response.GetString());
2197 // Return the end of registers response if we've iterated one past the end of
2216 // Build the reginfos response.
2217 StreamGDBRemote response;
2242 response.PutHex8(data[i]);
2244 return SendPacketNoLock(response.GetString());
2296 // Return the end of registers response if we've iterated one past the end of
2309 // Build the reginfos response.
2310 StreamGDBRemote response;
2475 // No response required from stop all.
2520 // Allocate the response buffer.
2536 StreamGDBRemote response;
2540 response.PutEscapedBytes(buf.data(), bytes_read);
2544 response.PutHex8(buf[i]);
2547 return SendPacketNoLock(response.GetString());
2594 StreamGDBRemote response;
2595 response.PutHex64(*addr);
2596 return SendPacketNoLock(response.GetString());
2675 StreamGDBRemote response;
2762 StreamGDBRemote response;
2771 response.PutCString("error:");
2772 response.PutStringAsRawHex8(error.AsCString());
2773 response.PutChar(';');
2776 response.Printf("start:%" PRIx64 ";size:%" PRIx64 ";",
2784 response.PutCString("permissions:");
2787 response.PutChar('r');
2789 response.PutChar('w');
2791 response.PutChar('x');
2793 response.PutChar(';');
2804 response.PutCString("flags:");
2807 response.PutCString("mt ");
2809 response.PutCString("ss ");
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());
3638 StreamString response;
3649 response.AsRawOstream() << *threads_info;
3651 escaped_response.PutEscapedBytes(response.GetData(), response.GetSize());
3671 StreamGDBRemote response;
3673 response.Printf("num:0;");
3675 response.Printf("num:%d;", hw_debug_cap->second);
3677 return SendPacketNoLock(response.GetString());
3704 StreamGDBRemote response;
3705 response.PutHex64(file_load_address);
3706 return SendPacketNoLock(response.GetString());
3811 StreamGDBRemote response;
3819 response.PutChar('m');
3820 response.PutBytesAsRawHex8(tags.data(), tags.size());
3821 return SendPacketNoLock(response.GetString());
3942 StreamString response;
3943 response.PutCString("core-path:");
3944 response.PutStringAsRawHex8(ret.get());
3945 return SendPacketNoLock(response.GetString());
3976 // If we are stopping anything, defer sending the OK response until we're
3997 // an OK response.
4037 // Otherwise, vCtrlC should issue an OK response (normal interrupts do not).
4290 Stream &response, lldb::pid_t pid, lldb::tid_t tid) {
4293 response.Format("p{0:x-}.", pid);
4294 response.Format("{0:x-}", tid);