reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
  280     m_gdb_comm.SetHistoryStream(provider.GetHistoryStream());
  282     provider.SetCallback([&]() { m_gdb_comm.SetHistoryStream(nullptr); });
  302           &m_gdb_comm, gdb_event_mask) != gdb_event_mask) {
  311     m_gdb_comm.SetPacketTimeout(std::chrono::seconds(timeout_seconds));
  440   const auto host_packet_timeout = m_gdb_comm.GetHostDefaultPacketTimeout();
  470   const ArchSpec &remote_host_arch = m_gdb_comm.GetHostArchitecture();
  471   const ArchSpec &remote_process_arch = m_gdb_comm.GetProcessArchitecture();
  497     if (m_gdb_comm.SendPacketAndWaitForResponse(packet, response, false) ==
  680   lldb::pid_t pid = m_gdb_comm.GetCurrentProcessID();
  690     if (m_gdb_comm.GetStopReply(response)) {
  699         if (m_gdb_comm.GetProcessArchitecture().IsValid()) {
  700           target.SetArchitecture(m_gdb_comm.GetProcessArchitecture());
  702           if (m_gdb_comm.GetHostArchitecture().IsValid()) {
  703             target.SetArchitecture(m_gdb_comm.GetHostArchitecture());
  731             m_gdb_comm.GetHostArchitecture().IsValid() ? "true" : "false");
  734       m_gdb_comm.GetHostArchitecture().IsValid()) {
  737     if (m_gdb_comm.GetProcessArchitecture().IsValid())
  738       GetTarget().SetArchitecture(m_gdb_comm.GetProcessArchitecture());
  740       GetTarget().SetArchitecture(m_gdb_comm.GetHostArchitecture());
  883         m_gdb_comm.SetSTDIN(stdin_file_spec);
  885         m_gdb_comm.SetSTDOUT(stdout_file_spec);
  887         m_gdb_comm.SetSTDERR(stderr_file_spec);
  889       m_gdb_comm.SetDisableASLR(launch_flags & eLaunchFlagDisableASLR);
  890       m_gdb_comm.SetDetachOnError(launch_flags & eLaunchFlagDetachOnError);
  892       m_gdb_comm.SendLaunchArchPacket(
  897         m_gdb_comm.SendLaunchEventDataPacket(launch_event_data);
  900         m_gdb_comm.SetWorkingDir(working_dir);
  904       m_gdb_comm.SendEnvironment(launch_info.GetEnvironment());
  908         GDBRemoteCommunication::ScopedTimeout timeout(m_gdb_comm,
  911         int arg_packet_err = m_gdb_comm.SendArgumentsPacket(launch_info);
  914           if (m_gdb_comm.GetLaunchSuccess(error_str)) {
  915             SetID(m_gdb_comm.GetCurrentProcessID());
  933       if (m_gdb_comm.GetStopReply(response)) {
  939         const ArchSpec &process_arch = m_gdb_comm.GetProcessArchitecture();
  944           const ArchSpec &host_arch = m_gdb_comm.GetHostArchitecture();
  983       while (!m_gdb_comm.IsConnected()) {
  985           m_gdb_comm.SetConnection(conn_up.release());
 1002   if (!m_gdb_comm.IsConnected()) {
 1011     m_gdb_comm.StartReadThread();
 1017   if (!m_gdb_comm.HandshakeWithServer(&error)) {
 1018     m_gdb_comm.Disconnect();
 1026     GetTarget().SetNonStopModeEnabled(m_gdb_comm.SetNonStopMode(true));
 1028   m_gdb_comm.GetEchoSupported();
 1029   m_gdb_comm.GetThreadSuffixSupported();
 1030   m_gdb_comm.GetListThreadsInStopReplySupported();
 1031   m_gdb_comm.GetHostInfo();
 1032   m_gdb_comm.GetVContSupported('c');
 1033   m_gdb_comm.GetVAttachOrWaitSupported();
 1034   m_gdb_comm.EnableErrorStringInPacket();
 1038     m_gdb_comm.GetDefaultThreadId(m_initial_tid);
 1043     m_gdb_comm.SendPacketAndWaitForResponse(
 1061     const ArchSpec &remote_process_arch = m_gdb_comm.GetProcessArchitecture();
 1075       process_arch = m_gdb_comm.GetHostArchitecture();
 1164         m_gdb_comm.GetSupportedStructuredDataPlugins();
 1187       m_gdb_comm.SetDetachOnError(attach_info.GetDetachOnError());
 1213       m_gdb_comm.SetDetachOnError(attach_info.GetDetachOnError());
 1216         if (!m_gdb_comm.GetVAttachOrWaitSupported()) {
 1243   return m_gdb_comm.SendStartTracePacket(options, error);
 1247   return m_gdb_comm.SendStopTracePacket(uid, thread_id);
 1253   return m_gdb_comm.SendGetDataPacket(uid, thread_id, buffer, offset);
 1259   return m_gdb_comm.SendGetMetaDataPacket(uid, thread_id, buffer, offset);
 1264   return m_gdb_comm.SendGetTraceConfigPacket(uid, options);
 1269   m_gdb_comm.Disconnect();
 1296           &m_gdb_comm, GDBRemoteCommunication::eBroadcastBitRunPacketSent)) {
 1305     if (m_gdb_comm.HasAnyVContSupport()) {
 1316           if (m_gdb_comm.GetVContSupported('c')) {
 1327           if (m_gdb_comm.GetVContSupported('C')) {
 1339           if (m_gdb_comm.GetVContSupported('s')) {
 1350           if (m_gdb_comm.GetVContSupported('S')) {
 1378           m_gdb_comm.SetCurrentThreadForRun(-1);
 1384           m_gdb_comm.SetCurrentThreadForRun(m_continue_c_tids.front());
 1409               m_gdb_comm.SetCurrentThreadForRun(-1);
 1413             m_gdb_comm.SetCurrentThreadForRun(m_continue_C_tids.front().first);
 1425           m_gdb_comm.SetCurrentThreadForRun(-1);
 1429             if (m_gdb_comm.GetVContSupported('s'))
 1440           m_gdb_comm.SetCurrentThreadForRun(m_continue_s_tids.front());
 1459             m_gdb_comm.SetCurrentThreadForRun(-1);
 1465           m_gdb_comm.SetCurrentThreadForRun(m_continue_S_tids.front().first);
 1509     m_gdb_comm.SendPacketAndWaitForResponse("vStopped", response, false);
 1632   m_gdb_comm.GetCurrentThreadIDs(m_thread_ids, sequence_mutex_unavailable);
 2175         lldb::pid_t pid = m_gdb_comm.GetCurrentProcessID();
 2424     m_gdb_comm.Disconnect();
 2426     caused_stop = m_gdb_comm.Interrupt();
 2435   error = m_gdb_comm.Detach(keep_stopped);
 2484   if (!m_gdb_comm.GetThreadSuffixSupported() &&
 2572   if (m_gdb_comm.IsConnected()) {
 2576       GDBRemoteCommunication::ScopedTimeout(m_gdb_comm,
 2579       if (m_gdb_comm.SendPacketAndWaitForResponse("k", response, send_async) ==
 2649     m_gdb_comm.ResetDiscoverableSettings(did_exec);
 2675   return m_gdb_comm.IsConnected() && Process::IsAlive();
 2680   lldb::addr_t addr = m_gdb_comm.GetShlibInfoAddr();
 2702   m_jthreadsinfo_sp = m_gdb_comm.GetThreadsInfo();
 2724   bool binary_memory_read = m_gdb_comm.GetxPacketSupported();
 2743   if (m_gdb_comm.SendPacketAndWaitForResponse(packet, response, true) ==
 2868   if (m_gdb_comm.SendPacketAndWaitForResponse(packet.GetString(), response,
 2898   if (m_gdb_comm.SendPacketAndWaitForResponse("vFlashDone", response, true) ==
 2958   if (m_gdb_comm.SendPacketAndWaitForResponse(packet.GetString(), response,
 2988   if (m_gdb_comm.SupportsAllocDeallocMemory() != eLazyBoolNo) {
 2989     allocated_addr = m_gdb_comm.AllocateMemory(size, permissions);
 2991         m_gdb_comm.SupportsAllocDeallocMemory() == eLazyBoolYes)
 2995   if (m_gdb_comm.SupportsAllocDeallocMemory() == eLazyBoolNo) {
 3030   Status error(m_gdb_comm.GetMemoryRegionInfo(load_addr, region_info));
 3036   Status error(m_gdb_comm.GetWatchpointSupportInfo(num));
 3041   Status error(m_gdb_comm.GetWatchpointSupportInfo(
 3048   LazyBool supported = m_gdb_comm.SupportsAllocDeallocMemory();
 3059     if (!m_gdb_comm.DeallocateMemory(addr))
 3088     m_gdb_comm.SendStdinNotification(src, src_len);
 3131   if (m_gdb_comm.SupportsGDBStoppointPacket(eBreakpointSoftware) &&
 3134     uint8_t error_no = m_gdb_comm.SendGDBStoppointTypePacket(
 3151     if (m_gdb_comm.SupportsGDBStoppointPacket(eBreakpointSoftware)) {
 3172   if (m_gdb_comm.SupportsGDBStoppointPacket(eBreakpointHardware)) {
 3174     uint8_t error_no = m_gdb_comm.SendGDBStoppointTypePacket(
 3185     if (m_gdb_comm.SupportsGDBStoppointPacket(eBreakpointHardware)) {
 3238       if (m_gdb_comm.SendGDBStoppointTypePacket(eBreakpointHardware, false,
 3250       if (m_gdb_comm.SendGDBStoppointTypePacket(stoppoint_type, false, addr,
 3305     if (m_gdb_comm.SupportsGDBStoppointPacket(type)) {
 3306       if (m_gdb_comm.SendGDBStoppointTypePacket(type, true, addr,
 3352       if (m_gdb_comm.SendGDBStoppointTypePacket(type, false, addr,
 3378   if (!m_gdb_comm.SendAsyncSignal(signo))
 3401   if (auto error = GDBRemoteCommunication::ConnectLocally(m_gdb_comm,
 3418   if (m_gdb_comm.IsConnected())
 3493     error = m_gdb_comm.StartDebugserverProcess(
 3507       m_gdb_comm.SetConnection(new ConnectionFileDescriptor(our_socket, true));
 3520     if (m_gdb_comm.IsConnected()) {
 3589   m_gdb_comm.Disconnect();
 3655     m_gdb_comm.Disconnect(); // Disconnect from the debug server.
 3834       } else if (event_sp->BroadcasterIs(&process->m_gdb_comm)) {
 3915   if (!m_gdb_comm.GetQPassSignalsSupported())
 3932   Status error = m_gdb_comm.SendSignalsToIgnore(signals_to_ignore);
 3995   return_value = m_gdb_comm.SendLaunchEventDataPacket(data, &was_supported);
 4008   if (m_gdb_comm.GetQXferAuxvReadSupported()) {
 4010     if (m_gdb_comm.SendPacketsAndConcatenateResponses("qXfer:auxv:read::",
 4023   if (m_gdb_comm.GetThreadExtendedInfoSupported()) {
 4044     if (m_gdb_comm.SendPacketAndWaitForResponse(packet.GetString(), response,
 4098   if (m_gdb_comm.GetLoadedDynamicLibrariesInfosSupported()) {
 4100     GDBRemoteCommunication::ScopedTimeout timeout(m_gdb_comm,
 4116     if (m_gdb_comm.SendPacketAndWaitForResponse(packet.GetString(), response,
 4135   if (m_gdb_comm.GetSharedCacheInfoSupported()) {
 4149     if (m_gdb_comm.SendPacketAndWaitForResponse(packet.GetString(), response,
 4166   return m_gdb_comm.ConfigureRemoteStructuredData(type_name, config_sp);
 4183     uint64_t stub_max_size = m_gdb_comm.GetRemoteMaxPacketSize();
 4250   if (!m_gdb_comm.GetModuleInfo(module_file_spec, arch, module_spec)) {
 4271   auto module_specs = m_gdb_comm.GetModulesInfo(module_file_specs, triple);
 4283   return m_gdb_comm.GetOSVersion();
 4287   return m_gdb_comm.GetMacCatalystVersion();
 4499   if (!m_gdb_comm.ReadExtFeature(ConstString("features"),
 4621   if (!m_gdb_comm.GetQXferFeaturesReadSupported())
 4642   GDBRemoteCommunicationClient &comm = m_gdb_comm;
 4911   if (m_gdb_comm.SendPacketAndWaitForResponse(packet.GetString(), response,
 4945   m_gdb_comm.ServeSymbolLookups(this);
 5061     lldb::pid_t pid = m_gdb_comm.GetCurrentProcessID();
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
  186   GDBRemoteCommunicationClient &GetGDBRemote() { return m_gdb_comm; }