LLDB mainline
|
#include <GDBRemoteCommunicationServerLLGS.h>
Classes | |
struct | DebuggedProcess |
Public Member Functions | |
GDBRemoteCommunicationServerLLGS (MainLoop &mainloop, NativeProcessProtocol::Manager &process_manager) | |
void | SetLaunchInfo (const ProcessLaunchInfo &info) |
Status | LaunchProcess () override |
Launch a process with the current launch settings. | |
Status | AttachToProcess (lldb::pid_t pid) |
Attach to a process. | |
Status | AttachWaitProcess (llvm::StringRef process_name, bool include_existing) |
Wait to attach to a process with a given name. | |
void | InitializeDelegate (NativeProcessProtocol *process) override |
void | ProcessStateChanged (NativeProcessProtocol *process, lldb::StateType state) override |
void | DidExec (NativeProcessProtocol *process) override |
void | NewSubprocess (NativeProcessProtocol *parent_process, std::unique_ptr< NativeProcessProtocol > child_process) override |
Status | InitializeConnection (std::unique_ptr< Connection > connection) |
Public Member Functions inherited from lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon | |
GDBRemoteCommunicationServerCommon () | |
~GDBRemoteCommunicationServerCommon () override | |
Public Member Functions inherited from lldb_private::process_gdb_remote::GDBRemoteCommunicationServer | |
GDBRemoteCommunicationServer () | |
~GDBRemoteCommunicationServer () override | |
void | RegisterPacketHandler (StringExtractorGDBRemote::ServerPacketType packet_type, PacketHandler handler) |
PacketResult | GetPacketAndSendResponse (Timeout< std::micro > timeout, Status &error, bool &interrupt, bool &quit) |
Public Member Functions inherited from lldb_private::process_gdb_remote::GDBRemoteCommunication | |
GDBRemoteCommunication () | |
~GDBRemoteCommunication () override | |
PacketResult | GetAck () |
size_t | SendAck () |
size_t | SendNack () |
char | CalculcateChecksum (llvm::StringRef payload) |
PacketType | CheckForPacket (const uint8_t *src, size_t src_len, StringExtractorGDBRemote &packet) |
bool | GetSendAcks () |
std::chrono::seconds | SetPacketTimeout (std::chrono::seconds packet_timeout) |
std::chrono::seconds | GetPacketTimeout () const |
Status | StartDebugserverProcess (const char *url, Platform *platform, ProcessLaunchInfo &launch_info, uint16_t *port, const Args *inferior_args, int pass_comm_fd) |
void | DumpHistory (Stream &strm) |
void | SetPacketRecorder (repro::PacketRecorder *recorder) |
Public Member Functions inherited from lldb_private::Communication | |
Communication () | |
Construct the Communication object. | |
virtual | ~Communication () |
Destructor. | |
virtual void | Clear () |
lldb::ConnectionStatus | Connect (const char *url, Status *error_ptr) |
Connect using the current connection by passing url to its connect function. | |
virtual lldb::ConnectionStatus | Disconnect (Status *error_ptr=nullptr) |
Disconnect the communications connection if one is currently connected. | |
bool | IsConnected () const |
Check if the connection is valid. | |
bool | HasConnection () const |
lldb_private::Connection * | GetConnection () |
virtual size_t | Read (void *dst, size_t dst_len, const Timeout< std::micro > &timeout, lldb::ConnectionStatus &status, Status *error_ptr) |
Read bytes from the current connection. | |
size_t | Write (const void *src, size_t src_len, lldb::ConnectionStatus &status, Status *error_ptr) |
The actual write function that attempts to write to the communications protocol. | |
size_t | WriteAll (const void *src, size_t src_len, lldb::ConnectionStatus &status, Status *error_ptr) |
Repeatedly attempt writing until either src_len bytes are written or a permanent failure occurs. | |
virtual void | SetConnection (std::unique_ptr< Connection > connection) |
Sets the connection that it to be used by this class. | |
bool | GetCloseOnEOF () const |
void | SetCloseOnEOF (bool b) |
Public Member Functions inherited from lldb_private::NativeProcessProtocol::NativeDelegate | |
virtual | ~NativeDelegate ()=default |
virtual void | InitializeDelegate (NativeProcessProtocol *process)=0 |
virtual void | ProcessStateChanged (NativeProcessProtocol *process, lldb::StateType state)=0 |
virtual void | DidExec (NativeProcessProtocol *process)=0 |
virtual void | NewSubprocess (NativeProcessProtocol *parent_process, std::unique_ptr< NativeProcessProtocol > child_process)=0 |
Static Protected Member Functions | |
static std::string | XMLEncodeAttributeValue (llvm::StringRef value) |
Static Protected Member Functions inherited from lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon | |
static void | CreateProcessInfoResponse (const ProcessInstanceInfo &proc_info, StreamString &response) |
static void | CreateProcessInfoResponse_DebugServerStyle (const ProcessInstanceInfo &proc_info, StreamString &response) |
Private Member Functions | |
llvm::Expected< std::unique_ptr< llvm::MemoryBuffer > > | BuildTargetXml () |
void | HandleInferiorState_Exited (NativeProcessProtocol *process) |
void | HandleInferiorState_Stopped (NativeProcessProtocol *process) |
NativeThreadProtocol * | GetThreadFromSuffix (StringExtractorGDBRemote &packet) |
uint32_t | GetNextSavedRegistersID () |
void | MaybeCloseInferiorTerminalConnection () |
void | ClearProcessSpecificData () |
void | RegisterPacketHandlers () |
void | DataAvailableCallback () |
void | SendProcessOutput () |
void | StartSTDIOForwarding () |
void | StopSTDIOForwarding () |
void | SetEnabledExtensions (NativeProcessProtocol &process) |
GDBRemoteCommunicationServerLLGS (const GDBRemoteCommunicationServerLLGS &)=delete | |
const GDBRemoteCommunicationServerLLGS & | operator= (const GDBRemoteCommunicationServerLLGS &)=delete |
Definition at line 32 of file GDBRemoteCommunicationServerLLGS.h.
GDBRemoteCommunicationServerLLGS::GDBRemoteCommunicationServerLLGS | ( | MainLoop & | mainloop, |
NativeProcessProtocol::Manager & | process_manager | ||
) |
Definition at line 70 of file GDBRemoteCommunicationServerLLGS.cpp.
References RegisterPacketHandlers().
|
privatedelete |
|
protected |
Definition at line 2072 of file GDBRemoteCommunicationServerLLGS.cpp.
References AppendThreadIDToResponse(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), LLDB_INVALID_PROCESS_ID, LLDB_LOG, lldb_private::Stream::PutChar(), lldb_private::Thread, and lldb_private::NativeProcessProtocol::Threads().
Referenced by Handle_qfThreadInfo().
|
protected |
Definition at line 4286 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::Stream::Format(), m_extensions_supported, and lldb_private::NativeProcessProtocol::multiprocess.
Referenced by AddProcessThreads(), Handle_qC(), and PrepareStopReplyPacketForThread().
Status GDBRemoteCommunicationServerLLGS::AttachToProcess | ( | lldb::pid_t | pid | ) |
Attach to a process.
This method supports attaching llgs to a process accessible via the configured Platform.
Definition at line 343 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::NativeProcessProtocol::Manager::Attach(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), LLDB_LOGF, m_continue_process, m_current_process, m_debugged_processes, m_process_manager, and lldb_private::Process.
Referenced by AttachWaitProcess(), and Handle_vAttach().
Status GDBRemoteCommunicationServerLLGS::AttachWaitProcess | ( | llvm::StringRef | process_name, |
bool | include_existing | ||
) |
Wait to attach to a process with a given name.
This method supports waiting for the next instance of a process with a given name and attaching llgs to that via the configured Platform.
Definition at line 391 of file GDBRemoteCommunicationServerLLGS.cpp.
References AttachToProcess(), lldb_private::Equals, error(), lldb_private::Host::FindProcesses(), lldb_private::Stream::Format(), lldb_private::ProcessInfo::GetExecutableFile(), lldb_private::GetLog(), lldb_private::ProcessInstanceInfoMatch::GetProcessInfo(), lldb_private::StreamString::GetString(), LLDB_LOG, lldb_private::Process, lldb_private::FileSpec::SetFile(), and lldb_private::ProcessInstanceInfoMatch::SetNameMatchType().
Referenced by Handle_vAttachOrWait(), and Handle_vAttachWait().
|
private |
Definition at line 3057 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::RegisterInfo::alt_name, lldb_private::RegisterInfo::byte_offset, lldb_private::RegisterInfo::byte_size, CollectRegNums(), lldb_private::RegisterFlags::EnumsToXML(), lldb_private::RegisterInfo::flags_type, lldb_private::NativeProcessProtocol::GetArchitecture(), GetEncodingNameOrEmpty(), GetFormatNameOrEmpty(), lldb_private::RegisterFlags::GetID(), GetKindGenericOrEmpty(), lldb_private::GetLog(), lldb_private::NativeThreadProtocol::GetRegisterContext(), lldb_private::NativeRegisterContext::GetRegisterInfoAtIndex(), lldb_private::NativeRegisterContext::GetRegisterSetNameForRegisterAtIndex(), lldb_private::StreamString::GetString(), lldb_private::NativeProcessProtocol::GetThreadAtIndex(), lldb_private::ArchSpec::GetTriple(), lldb_private::NativeRegisterContext::GetUserRegisterCount(), lldb_private::Stream::Indent(), lldb_private::Stream::IndentLess(), lldb_private::Stream::IndentMore(), lldb_private::RegisterInfo::invalidate_regs, lldb_private::RegisterInfo::kinds, LLDB_INVALID_REGNUM, LLDB_LOGF, m_current_process, lldb_private::RegisterInfo::name, lldb_private::Stream::Printf(), lldb_private::Process, lldb_private::Stream::PutCString(), lldb_private::NativeRegisterContext::RegisterOffsetIsDynamic(), lldb_private::Thread, lldb_private::RegisterFlags::ToXML(), and lldb_private::RegisterInfo::value_regs.
Referenced by ReadXferObject().
|
private |
Definition at line 4163 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::GetLog(), LLDB_LOG, m_xfer_buffer_map, and lldb_private::Process.
Referenced by DidExec().
|
private |
Definition at line 1155 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::process_gdb_remote::Comm, error(), lldb_private::process_gdb_remote::GDBRemoteCommunication::ErrorReplyTimeout, lldb_private::GetLog(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::GetPacketAndSendResponse(), LLDB_LOGF, m_mainloop, lldb_private::MainLoopBase::RequestTermination(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::Success.
Referenced by InitializeConnection().
|
overridevirtual |
Implements lldb_private::NativeProcessProtocol::NativeDelegate.
Definition at line 1140 of file GDBRemoteCommunicationServerLLGS.cpp.
References ClearProcessSpecificData().
|
protected |
Definition at line 1022 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::StreamString::Empty(), lldb_private::StreamString::GetString(), m_current_process, m_non_stop, m_stop_notification_queue, PrepareStopReplyPacketForThread(), and lldb_private::NativeProcessProtocol::Threads().
Referenced by Handle_stop_reason(), and SendStopReplyPacketForThread().
|
overrideprotectedvirtual |
Reimplemented from lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon.
Definition at line 4171 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::FindModuleFile(), lldb_private::FileSystem::Instance(), and m_current_process.
|
inlineprotected |
Definition at line 280 of file GDBRemoteCommunicationServerLLGS.h.
References m_continue_tid.
Referenced by Handle_C(), and Handle_s().
|
protected |
Definition at line 4145 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::NativeProcessProtocol::GetCurrentThreadID(), LLDB_INVALID_THREAD_ID, m_current_process, and m_current_tid.
Referenced by GetThreadFromSuffix(), and Handle_s().
|
private |
Definition at line 4158 of file GDBRemoteCommunicationServerLLGS.cpp.
References m_next_saved_registers_id, and m_saved_registers_mutex.
Referenced by Handle_QSaveRegisterState().
|
private |
Definition at line 4093 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), GetCurrentThreadID(), StringExtractor::GetFilePos(), StringExtractor::GetHexMaxU64(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), StringExtractor::GetStringRef(), lldb_private::NativeProcessProtocol::GetThreadAtIndex(), lldb_private::NativeProcessProtocol::GetThreadByID(), LLDB_INVALID_PROCESS_ID, LLDB_INVALID_THREAD_ID, LLDB_LOGF, m_current_process, m_thread_suffix_supported, StringExtractor::Peek(), StringExtractor::SetFilePos(), and lldb_private::Thread.
Referenced by Handle_g(), Handle_p(), Handle_P(), Handle_QRestoreRegisterState(), and Handle_QSaveRegisterState().
|
protected |
Definition at line 2560 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::NativeProcessProtocol::AllocateMemory(), StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), StringExtractor::GetHexMaxU64(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), lldb_private::StreamString::GetString(), LLDB_INVALID_ADDRESS, LLDB_INVALID_PROCESS_ID, LLDB_LOGF, m_current_process, lldb_private::Process, lldb_private::Stream::PutHex64(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), and StringExtractor::SetFilePos().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2609 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::NativeProcessProtocol::DeallocateMemory(), StringExtractor::GetBytesLeft(), StringExtractor::GetHexMaxU64(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), LLDB_INVALID_ADDRESS, LLDB_INVALID_PROCESS_ID, LLDB_LOGF, m_current_process, lldb_private::Process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), and StringExtractor::SetFilePos().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1552 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::ResumeActionList::Append(), lldb_private::NativeProcessProtocol::CanResume(), error(), StringExtractor::GetBytesLeft(), GetContinueThreadID(), StringExtractor::GetHexMaxU32(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), lldb_private::NativeProcessProtocol::GetState(), StringExtractor::GetStringRef(), LLDB_INVALID_SIGNAL_NUMBER, LLDB_INVALID_THREAD_ID, LLDB_LOG, LLDB_LOGF, m_continue_process, StringExtractor::Peek(), lldb_private::Process, ResumeProcess(), SendContinueSuccessResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendUnimplementedResponse(), StringExtractor::SetFilePos(), lldb_private::NativeProcessProtocol::Signal(), lldb_private::process_gdb_remote::GDBRemoteCommunication::Success, and lldb_private::Thread.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1639 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractor::GetBytesLeft(), StringExtractor::GetFilePos(), lldb_private::GetLog(), StringExtractor::GetStringRef(), LLDB_INVALID_SIGNAL_NUMBER, LLDB_LOG, LLDB_LOGF, m_continue_process, StringExtractor::Peek(), lldb_private::Process, ResumeProcess(), SendContinueSuccessResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendUnimplementedResponse(), StringExtractor::SetFilePos(), lldb_private::process_gdb_remote::GDBRemoteCommunication::Success, and lldb_private::Thread.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3555 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), lldb_private::GetLog(), StringExtractor::GetU32(), LLDB_INVALID_PROCESS_ID, LLDB_LOGF, m_continue_process, m_current_process, m_debugged_processes, m_non_stop, lldb_private::Process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), StringExtractor::SetFilePos(), and StopSTDIOForwarding().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2116 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::RegisterInfo::byte_offset, lldb_private::RegisterInfo::byte_size, error(), lldb_private::RegisterValue::GetBytes(), lldb_private::GetLog(), lldb_private::NativeThreadProtocol::GetRegisterContext(), lldb_private::NativeRegisterContext::GetRegisterInfoAtIndex(), lldb_private::StreamString::GetString(), GetThreadFromSuffix(), lldb_private::NativeRegisterContext::GetUserRegisterCount(), LLDB_LOG, lldb_private::Stream::PutBytesAsRawHex8(), lldb_private::NativeRegisterContext::ReadRegister(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), StringExtractor::SetFilePos(), lldb_private::Thread, and lldb_private::RegisterInfo::value_regs.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2326 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractorGDBRemote::AllProcesses, StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), StringExtractorGDBRemote::GetPidTid(), LLDB_INVALID_PROCESS_ID, LLDB_INVALID_THREAD_ID, LLDB_LOGF, m_continue_process, m_current_process, m_debugged_processes, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendUnimplementedResponse(), SetContinueThreadID(), SetCurrentThreadID(), StringExtractor::SetFilePos(), and lldb_private::Thread.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2418 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), StringExtractor::GetHexBytesAvail(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), LLDB_INVALID_PROCESS_ID, LLDB_LOGF, m_current_process, m_stdio_communication, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), StringExtractor::SetFilePos(), lldb_private::Thread, and lldb_private::Communication::WriteAll().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2453 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), lldb_private::NativeProcessProtocol::Interrupt(), LLDB_INVALID_PROCESS_ID, LLDB_LOG, m_current_process, lldb_private::Process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::Success, and lldb_private::Thread.
Referenced by Handle_vCtrlC(), and RegisterPacketHandlers().
|
protected |
Definition at line 1356 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractor::ConsumeFront(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::StreamString::GetString(), LLDB_INVALID_PROCESS_ID, m_current_process, StringExtractor::Peek(), lldb_private::StreamGDBRemote::PutEscapedBytes(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), and lldb_private::NativeProcessProtocol::TraceGetBinaryData().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1338 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractor::ConsumeFront(), lldb_private::NativeProcessProtocol::GetID(), LLDB_INVALID_PROCESS_ID, m_current_process, StringExtractor::Peek(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendJSONResponse(), and lldb_private::NativeProcessProtocol::TraceGetState().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1317 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractor::ConsumeFront(), lldb_private::NativeProcessProtocol::GetID(), LLDB_INVALID_PROCESS_ID, m_current_process, StringExtractor::Peek(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), and lldb_private::NativeProcessProtocol::TraceStart().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1297 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractor::ConsumeFront(), lldb_private::NativeProcessProtocol::GetID(), LLDB_INVALID_PROCESS_ID, m_current_process, StringExtractor::Peek(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), and lldb_private::NativeProcessProtocol::TraceStop().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1285 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::NativeProcessProtocol::GetID(), LLDB_INVALID_PROCESS_ID, m_current_process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendJSONResponse(), and lldb_private::NativeProcessProtocol::TraceSupported().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3629 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::Stream::AsRawOstream(), lldb_private::StreamString::GetData(), lldb_private::NativeProcessProtocol::GetID(), GetJSONThreadsInfo(), lldb_private::GetLog(), lldb_private::StreamString::GetSize(), lldb_private::StreamString::GetString(), LLDB_INVALID_PROCESS_ID, LLDB_LOG, LLDB_LOG_ERROR, m_current_process, lldb_private::Process, lldb_private::StreamGDBRemote::PutEscapedBytes(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), and lldb_private::Thread.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1427 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), lldb_private::GetLog(), LLDB_LOG, m_debugged_processes, m_non_stop, lldb_private::Process, SendContinueSuccessResponse(), StopSTDIOForwarding(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::Success.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2637 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), StringExtractor::GetHexBytes(), StringExtractor::GetHexMaxU64(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), LLDB_INVALID_PROCESS_ID, LLDB_LOG, LLDB_LOGF, m_current_process, lldb_private::Process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), StringExtractor::SetFilePos(), lldb_private::process_gdb_remote::GDBRemoteCommunication::Success, and lldb_private::NativeProcessProtocol::WriteMemory().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2479 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), StringExtractor::GetHexMaxU64(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), lldb_private::StreamString::GetString(), LLDB_INVALID_PROCESS_ID, LLDB_LOGF, m_current_process, lldb_private::Process, lldb_private::StreamGDBRemote::PutEscapedBytes(), lldb_private::Stream::PutHex8(), lldb_private::NativeProcessProtocol::ReadMemoryWithoutTrap(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), and StringExtractor::SetFilePos().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2171 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), lldb_private::RegisterValue::GetBytes(), lldb_private::RegisterValue::GetByteSize(), StringExtractor::GetHexMaxU32(), lldb_private::GetLog(), lldb_private::NativeThreadProtocol::GetRegisterContext(), lldb_private::NativeRegisterContext::GetRegisterInfoAtIndex(), lldb_private::StreamString::GetString(), StringExtractor::GetStringRef(), GetThreadFromSuffix(), lldb_private::NativeRegisterContext::GetUserRegisterCount(), LLDB_LOG, LLDB_LOGF, lldb_private::RegisterInfo::name, lldb_private::Stream::PutHex8(), lldb_private::NativeRegisterContext::ReadRegister(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), StringExtractor::SetFilePos(), and lldb_private::Thread.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2247 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::RegisterInfo::byte_size, error(), lldb_private::NativeProcessProtocol::GetArchitecture(), lldb_private::ArchSpec::GetByteOrder(), StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), StringExtractor::GetHexBytesAvail(), StringExtractor::GetHexMaxU32(), lldb_private::GetLog(), lldb_private::NativeThreadProtocol::GetRegisterContext(), lldb_private::NativeRegisterContext::GetRegisterInfoAtIndex(), StringExtractor::GetStringRef(), GetThreadFromSuffix(), lldb_private::NativeRegisterContext::GetUserRegisterCount(), LLDB_LOGF, m_current_process, m_reg_bytes, lldb_private::RegisterInfo::name, reg_size, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), StringExtractor::SetFilePos(), lldb_private::Thread, and lldb_private::NativeRegisterContext::WriteRegister().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1403 of file GDBRemoteCommunicationServerLLGS.cpp.
References AppendThreadIDToResponse(), lldb_private::NativeProcessProtocol::GetCurrentThread(), lldb_private::NativeProcessProtocol::GetCurrentThreadID(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::NativeThreadProtocol::GetID(), lldb_private::StreamString::GetString(), LLDB_INVALID_PROCESS_ID, m_current_process, lldb_private::Stream::PutCString(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), and SetCurrentThreadID().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3682 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), StringExtractor::GetBytesLeft(), lldb_private::NativeProcessProtocol::GetFileLoadAddress(), StringExtractor::GetHexByteString(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::StreamString::GetString(), LLDB_INVALID_ADDRESS, LLDB_INVALID_PROCESS_ID, m_current_process, lldb_private::Stream::PutHex64(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), and StringExtractor::SetFilePos().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2090 of file GDBRemoteCommunicationServerLLGS.cpp.
References AddProcessThreads(), lldb_private::StreamString::GetString(), m_debugged_processes, m_extensions_supported, lldb_private::NativeProcessProtocol::multiprocess, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1501 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::StreamString::GetString(), lldb_private::ProcessLaunchInfo::GetWorkingDirectory(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::m_process_launch_info, lldb_private::Stream::PutStringAsRawHex8(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1521 of file GDBRemoteCommunicationServerLLGS.cpp.
References m_list_threads_in_stop_reply, and lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2749 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::MemoryRegionInfo::eDontKnow, error(), lldb_private::MemoryRegionInfo::eYes, lldb_private::Range< B, S >::GetByteSize(), StringExtractor::GetBytesLeft(), lldb_private::MemoryRegionInfo::GetExecutable(), StringExtractor::GetHexMaxU64(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), lldb_private::NativeProcessProtocol::GetMemoryRegionInfo(), lldb_private::MemoryRegionInfo::GetMemoryTagged(), lldb_private::MemoryRegionInfo::GetName(), lldb_private::MemoryRegionInfo::GetRange(), lldb_private::Range< B, S >::GetRangeBase(), lldb_private::MemoryRegionInfo::GetReadable(), lldb_private::StreamString::GetString(), lldb_private::ConstString::GetStringRef(), lldb_private::MemoryRegionInfo::GetWritable(), LLDB_INVALID_PROCESS_ID, LLDB_LOGF, m_current_process, lldb_private::Stream::Printf(), lldb_private::Process, lldb_private::Stream::PutChar(), lldb_private::Stream::PutCString(), lldb_private::Stream::PutStringAsRawHex8(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), and StringExtractor::SetFilePos().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2716 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), lldb_private::NativeProcessProtocol::GetMemoryRegionInfo(), LLDB_INVALID_PROCESS_ID, LLDB_LOGF, m_current_process, lldb_private::Process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), and lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendUnimplementedResponse().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3745 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), StringExtractor::GetHexMaxU64(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), lldb_private::StreamString::GetString(), StringExtractor::GetU64(), LLDB_INVALID_PROCESS_ID, LLDB_LOGF, m_current_process, StringExtractor::Peek(), lldb_private::Process, lldb_private::Stream::PutBytesAsRawHex8(), lldb_private::Stream::PutChar(), lldb_private::NativeProcessProtocol::ReadMemoryTags(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), and StringExtractor::SetFilePos().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3826 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), StringExtractor::GetHexBytes(), StringExtractor::GetHexMaxU64(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), StringExtractor::GetU64(), LLDB_INVALID_PROCESS_ID, LLDB_LOGF, m_current_process, StringExtractor::Peek(), lldb_private::Process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), StringExtractor::SetFilePos(), lldb_private::Status::Success(), and lldb_private::NativeProcessProtocol::WriteMemoryTags().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3949 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), lldb_private::GetLog(), StringExtractor::GetStringRef(), LLDB_LOG, m_debugged_processes, m_disabling_non_stop, m_non_stop, m_stdio_notification_queue, m_stop_notification_queue, lldb_private::Process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), StartSTDIOForwarding(), StopSTDIOForwarding(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::Success.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3711 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), StringExtractor::GetS32(), lldb_private::NativeProcessProtocol::IgnoreSignals(), m_current_process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), StringExtractor::SetFilePos(), and StringExtractor::SkipSpaces().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1381 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::CreateProcessInfoResponse_DebugServerStyle(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::Host::GetProcessInfo(), lldb_private::StreamString::GetString(), LLDB_INVALID_PROCESS_ID, m_current_process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1982 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::RegisterInfo::alt_name, lldb_private::RegisterInfo::byte_offset, lldb_private::RegisterInfo::byte_size, CollectRegNums(), GetEncodingNameOrEmpty(), GetFormatNameOrEmpty(), StringExtractor::GetHexMaxU32(), lldb_private::NativeProcessProtocol::GetID(), GetKindGenericOrEmpty(), lldb_private::NativeThreadProtocol::GetRegisterContext(), lldb_private::NativeRegisterContext::GetRegisterInfoAtIndex(), lldb_private::NativeRegisterContext::GetRegisterSetNameForRegisterAtIndex(), lldb_private::StreamString::GetString(), lldb_private::NativeProcessProtocol::GetThreadAtIndex(), lldb_private::NativeRegisterContext::GetUserRegisterCount(), lldb_private::RegisterInfo::invalidate_regs, lldb_private::RegisterInfo::kinds, LLDB_INVALID_PROCESS_ID, LLDB_INVALID_REGNUM, m_current_process, lldb_private::RegisterInfo::name, lldb_private::Stream::Printf(), lldb_private::Stream::PutChar(), lldb_private::Stream::PutCString(), lldb_private::NativeRegisterContext::RegisterOffsetIsDynamic(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), StringExtractor::SetFilePos(), and lldb_private::RegisterInfo::value_regs.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3349 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), StringExtractor::GetBytesLeft(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), lldb_private::NativeThreadProtocol::GetRegisterContext(), GetThreadFromSuffix(), StringExtractor::GetU32(), LLDB_LOG, m_current_process, m_saved_registers_map, m_saved_registers_mutex, m_thread_suffix_supported, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), StringExtractor::SetFilePos(), lldb_private::Thread, and lldb_private::NativeRegisterContext::WriteAllRegisterValues().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3918 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractor::GetHexByteString(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::StreamString::GetString(), StringExtractor::GetStringRef(), LLDB_INVALID_PROCESS_ID, m_current_process, lldb_private::Stream::PutCString(), lldb_private::Stream::PutStringAsRawHex8(), lldb_private::NativeProcessProtocol::SaveCore(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3301 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), GetNextSavedRegistersID(), lldb_private::NativeThreadProtocol::GetRegisterContext(), lldb_private::StreamString::GetString(), GetThreadFromSuffix(), LLDB_LOG, m_current_process, m_saved_registers_map, m_saved_registers_mutex, m_thread_suffix_supported, lldb_private::Stream::Printf(), lldb_private::NativeRegisterContext::ReadAllRegisterValues(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), StringExtractor::SetFilePos(), and lldb_private::Thread.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1480 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::Flags::Clear(), lldb_private::ProcessLaunchInfo::GetFlags(), StringExtractor::GetU32(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::m_process_launch_info, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), lldb_private::Flags::Set(), and StringExtractor::SetFilePos().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1491 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractor::GetHexByteString(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::m_process_launch_info, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), StringExtractor::SetFilePos(), and lldb_private::ProcessLaunchInfo::SetWorkingDirectory().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2108 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3607 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractor::GetHexMaxU64(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), StringExtractor::GetStringRef(), LLDB_INVALID_PROCESS_ID, LLDB_INVALID_THREAD_ID, LLDB_LOGF, m_current_process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), SendStopReplyPacketForThread(), StringExtractor::SetFilePos(), and lldb_private::Thread.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1514 of file GDBRemoteCommunicationServerLLGS.cpp.
References m_thread_suffix_supported, and lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3482 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3657 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), lldb_private::NativeProcessProtocol::GetHardwareDebugSupportInfo(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::StreamString::GetString(), LLDB_INVALID_PROCESS_ID, m_current_process, lldb_private::Stream::Printf(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), and StringExtractor::SetFilePos().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3228 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractor::GetChar(), StringExtractor::GetHexMaxU64(), lldb_private::StreamString::GetString(), StringExtractor::GetStringRef(), m_xfer_buffer_map, lldb_private::Stream::PutChar(), lldb_private::StreamGDBRemote::PutEscapedBytes(), ReadXferObject(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), and lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendUnimplementedResponse().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3010 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::ResumeActionList::Append(), lldb::eStateStepping, lldb::eStateStopped, GetContinueThreadID(), GetCurrentThreadID(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), lldb_private::NativeProcessProtocol::GetThreadByID(), LLDB_INVALID_PROCESS_ID, LLDB_INVALID_SIGNAL_NUMBER, LLDB_INVALID_THREAD_ID, LLDB_LOGF, m_continue_process, lldb_private::Process, ResumeProcess(), SendContinueSuccessResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::ResumeActionList::SetDefaultThreadActionIfNeeded(), lldb_private::process_gdb_remote::GDBRemoteCommunication::Success, and lldb_private::Thread.
Referenced by Handle_vCont(), and RegisterPacketHandlers().
|
protected |
Definition at line 1885 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::StreamString::Empty(), EnqueueStopReplyPackets(), lldb_private::NativeProcessProtocol::GetCurrentThread(), lldb_private::NativeThreadProtocol::GetID(), lldb_private::NativeProcessProtocol::GetState(), lldb_private::StreamString::GetString(), LLDB_INVALID_THREAD_ID, m_current_process, m_non_stop, m_stop_notification_queue, PrepareStopReplyPacketForThread(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), and SendStopReasonForState().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 4039 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::NativeProcessProtocol::GetID(), StringExtractorGDBRemote::GetPidTid(), LLDB_INVALID_PROCESS_ID, m_current_process, m_debugged_processes, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), and StringExtractor::SetFilePos().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3410 of file GDBRemoteCommunicationServerLLGS.cpp.
References AttachToProcess(), error(), StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), lldb_private::GetLog(), lldb_private::NativeProcessProtocol::GetState(), StringExtractor::GetU32(), LLDB_INVALID_PROCESS_ID, LLDB_LOGF, m_current_process, lldb_private::Process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), SendStopReasonForState(), and StringExtractor::SetFilePos().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3488 of file GDBRemoteCommunicationServerLLGS.cpp.
References AttachWaitProcess(), error(), StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), StringExtractor::GetHexByteString(), lldb_private::GetLog(), lldb_private::NativeProcessProtocol::GetState(), LLDB_LOG, m_current_process, lldb_private::Process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), SendStopReasonForState(), and StringExtractor::SetFilePos().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3449 of file GDBRemoteCommunicationServerLLGS.cpp.
References AttachWaitProcess(), error(), StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), StringExtractor::GetHexByteString(), lldb_private::GetLog(), lldb_private::NativeProcessProtocol::GetState(), LLDB_LOG, m_current_process, lldb_private::Process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), SendStopReasonForState(), and StringExtractor::SetFilePos().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1695 of file GDBRemoteCommunicationServerLLGS.cpp.
References StringExtractorGDBRemote::AllProcesses, StringExtractorGDBRemote::AllThreads, error(), lldb::eStateInvalid, lldb::eStateRunning, lldb::eStateStepping, lldb::eStateSuspended, StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), StringExtractor::GetFilePos(), StringExtractor::GetHexMaxU32(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), StringExtractorGDBRemote::GetPidTid(), Handle_s(), LLDB_INVALID_PROCESS_ID, LLDB_INVALID_SIGNAL_NUMBER, LLDB_INVALID_THREAD_ID, LLDB_LOG, LLDB_LOGF, m_continue_process, m_debugged_processes, m_non_stop, StringExtractor::Peek(), lldb_private::Process, ResumeActionListStopsAllThreads(), ResumeProcess(), SendContinueSuccessResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), StringExtractor::SetFilePos(), lldb_private::ResumeAction::signal, lldb_private::ResumeAction::state, lldb_private::process_gdb_remote::GDBRemoteCommunication::Success, and lldb_private::ResumeAction::tid.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1674 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::StreamString::GetString(), lldb_private::Stream::Printf(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 4025 of file GDBRemoteCommunicationServerLLGS.cpp.
References Handle_interrupt(), m_non_stop, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::Success.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 1455 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), StringExtractor::GetU32(), LLDB_INVALID_PROCESS_ID, m_debugged_processes, m_non_stop, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), StringExtractor::SetFilePos(), StopSTDIOForwarding(), lldb_private::process_gdb_remote::GDBRemoteCommunication::Success, and lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::DebuggedProcess::vkilled.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 3521 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::Args::AppendArgument(), lldb_private::Status::Fail(), lldb_private::ProcessInfo::GetArguments(), lldb_private::ProcessInfo::GetExecutableFile(), StringExtractor::GetHexByteString(), lldb_private::GetLog(), lldb_private::NativeProcessProtocol::GetState(), StringExtractor::GetStringRef(), LaunchProcess(), LLDB_LOGF, m_current_process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::m_process_launch_error, lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::m_process_launch_info, lldb_private::Process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), SendStopReasonForState(), and lldb_private::FileSpec::SetFile().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 4006 of file GDBRemoteCommunicationServerLLGS.cpp.
References HandleNotificationAck(), and m_stdio_notification_queue.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 4012 of file GDBRemoteCommunicationServerLLGS.cpp.
References HandleNotificationAck(), m_debugged_processes, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::m_exit_now, m_mainloop, m_stop_notification_queue, and lldb_private::MainLoopBase::RequestTermination().
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2829 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::Breakpoints, lldb_private::process_gdb_remote::eBreakpointHardware, lldb_private::process_gdb_remote::eBreakpointSoftware, error(), lldb_private::process_gdb_remote::eStoppointInvalid, lldb_private::process_gdb_remote::eWatchpointRead, lldb_private::process_gdb_remote::eWatchpointReadWrite, lldb_private::process_gdb_remote::eWatchpointWrite, StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), StringExtractor::GetHexMaxU32(), StringExtractor::GetHexMaxU64(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), StringExtractor::GetS32(), LLDB_INVALID_PROCESS_ID, LLDB_LOG, m_current_process, lldb_private::Process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), lldb_private::NativeProcessProtocol::SetBreakpoint(), StringExtractor::SetFilePos(), lldb_private::NativeProcessProtocol::SetWatchpoint(), and lldb_private::Watchpoints.
Referenced by RegisterPacketHandlers().
|
protected |
Definition at line 2923 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::Breakpoints, lldb_private::process_gdb_remote::eBreakpointHardware, lldb_private::process_gdb_remote::eBreakpointSoftware, error(), lldb_private::process_gdb_remote::eStoppointInvalid, lldb_private::process_gdb_remote::eWatchpointRead, lldb_private::process_gdb_remote::eWatchpointReadWrite, lldb_private::process_gdb_remote::eWatchpointWrite, StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), StringExtractor::GetHexMaxU64(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), StringExtractor::GetS32(), LLDB_INVALID_PROCESS_ID, LLDB_LOG, m_current_process, lldb_private::Process, lldb_private::NativeProcessProtocol::RemoveBreakpoint(), lldb_private::NativeProcessProtocol::RemoveWatchpoint(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendIllFormedResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), StringExtractor::SetFilePos(), and lldb_private::Watchpoints.
Referenced by RegisterPacketHandlers().
|
overrideprotectedvirtual |
Reimplemented from lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon.
Definition at line 4211 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::NativeProcessProtocol::Manager::GetSupportedExtensions(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::HandleFeatures(), m_debugged_processes, m_extensions_supported, m_process_manager, and SetEnabledExtensions().
|
private |
Definition at line 1036 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::MainLoopBase::AddPendingCallback(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), LLDB_LOGF, m_continue_process, m_current_process, m_debugged_processes, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::m_exit_now, m_mainloop, m_non_stop, MaybeCloseInferiorTerminalConnection(), lldb_private::Process, lldb_private::MainLoopBase::RequestTermination(), SendStopReasonForState(), lldb_private::process_gdb_remote::GDBRemoteCommunication::Success, and lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::DebuggedProcess::vkilled.
Referenced by ProcessStateChanged().
|
private |
Definition at line 1078 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), LLDB_LOGF, lldb_private::Process, SendStopReasonForState(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::Success.
Referenced by ProcessStateChanged().
|
protected |
Definition at line 3990 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock().
Referenced by Handle_vStdio(), and Handle_vStopped().
Status GDBRemoteCommunicationServerLLGS::InitializeConnection | ( | std::unique_ptr< Connection > | connection | ) |
Definition at line 1178 of file GDBRemoteCommunicationServerLLGS.cpp.
References DataAvailableCallback(), error(), m_mainloop, m_network_handle_up, lldb_private::MainLoopPosix::RegisterReadObject(), and lldb_private::Communication::SetConnection().
|
overridevirtual |
Implements lldb_private::NativeProcessProtocol::NativeDelegate.
Definition at line 460 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), lldb_private::NativeProcessProtocol::GetState(), LLDB_LOGF, lldb_private::Process, and lldb_private::StateAsCString().
|
overridevirtual |
Launch a process with the current launch settings.
This method supports running an lldb-gdbserver or similar server in a situation where the startup code has been provided with all the information for a child process to be launched.
Implements lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon.
Definition at line 260 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::Args::GetArgumentCount(), lldb_private::ProcessInfo::GetArguments(), lldb_private::ProcessLaunchInfo::GetFileActionForFD(), lldb_private::ProcessLaunchInfo::GetFlags(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), lldb_private::NativeProcessProtocol::Manager::Launch(), m_continue_process, m_current_process, m_debugged_process_mutex, m_debugged_processes, lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::m_process_launch_info, m_process_manager, lldb_private::Process, lldb_private::Flags::Set(), lldb_private::ProcessLaunchInfo::SetLaunchInSeparateProcessGroup(), and lldb_private::ProcessLaunchInfo::SetUpPtyRedirection().
Referenced by Handle_vRun().
|
private |
Definition at line 4068 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), lldb_private::Communication::GetConnection(), lldb_private::GetLog(), lldb_private::Communication::IsConnected(), LLDB_LOGF, m_stdio_communication, and lldb_private::Process.
Referenced by HandleInferiorState_Exited().
|
overridevirtual |
Implements lldb_private::NativeProcessProtocol::NativeDelegate.
Definition at line 1144 of file GDBRemoteCommunicationServerLLGS.cpp.
References LLDB_INVALID_PROCESS_ID, and m_debugged_processes.
|
privatedelete |
|
protected |
Definition at line 797 of file GDBRemoteCommunicationServerLLGS.cpp.
References AppendThreadIDToResponse(), lldb_private::Stream::AsRawOstream(), lldb_private::ThreadStopInfo::child_pid, lldb_private::ThreadStopInfo::child_tid, lldb_private::NativeRegisterContext::ConvertRegisterKindToRegisterNumber(), lldb_private::ThreadStopInfo::data, lldb_private::ThreadStopInfo::data_count, lldb_private::ThreadStopInfo::details, lldb::eByteOrderBig, lldb::eRegisterKindGeneric, error(), lldb::eStopReasonException, lldb::eStopReasonFork, lldb::eStopReasonVFork, lldb_private::ThreadStopInfo::exception, lldb_private::NativeProcessProtocol::fork, lldb_private::ThreadStopInfo::fork, lldb_private::Full, lldb_private::StreamString::GetData(), lldb_private::NativeRegisterContext::GetExpeditedRegisters(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::NativeThreadProtocol::GetID(), GetJSONThreadsInfo(), lldb_private::GetLog(), lldb_private::NativeThreadProtocol::GetName(), lldb_private::NativeThreadProtocol::GetProcess(), lldb_private::NativeThreadProtocol::GetRegisterContext(), lldb_private::NativeRegisterContext::GetRegisterInfoAtIndex(), lldb_private::NativeThreadProtocol::GetStopReason(), GetStopReasonString(), lldb_private::endian::InlHostByteOrder(), LLDB_LOG, LLDB_LOG_ERROR, LLDB_LOGF, LLDB_REGNUM_GENERIC_PC, m_current_process, m_extensions_supported, m_list_threads_in_stop_reply, lldb_private::NativeProcessProtocol::multiprocess, lldb_private::RegisterInfo::name, lldb_private::Stream::Printf(), lldb_private::Process, lldb_private::Stream::PutChar(), lldb_private::Stream::PutCString(), lldb_private::Stream::PutHex32(), lldb_private::Stream::PutHex64(), lldb_private::Stream::PutHex8(), lldb_private::Stream::PutStringAsRawHex8(), lldb_private::NativeRegisterContext::ReadRegister(), lldb_private::ThreadStopInfo::reason, lldb_private::ThreadStopInfo::signo, lldb_private::Thread, lldb_private::NativeProcessProtocol::Threads(), lldb_private::ThreadStopInfo::type, lldb_private::RegisterInfo::value_regs, lldb_private::NativeProcessProtocol::vfork, and WriteRegisterValueInHexFixedWidth().
Referenced by EnqueueStopReplyPackets(), Handle_stop_reason(), and SendStopReplyPacketForThread().
|
overridevirtual |
Implements lldb_private::NativeProcessProtocol::NativeDelegate.
Definition at line 1095 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), HandleInferiorState_Exited(), HandleInferiorState_Stopped(), LLDB_LOGF, m_non_stop, lldb_private::Process, SendProcessOutput(), lldb_private::StateAsCString(), and StopSTDIOForwarding().
|
protected |
Definition at line 3174 of file GDBRemoteCommunicationServerLLGS.cpp.
References BuildTargetXml(), lldb_private::NativeProcessProtocol::GetAuxvData(), lldb_private::NativeProcessProtocol::GetCurrentThread(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::NativeProcessProtocol::GetLoadedSVR4Libraries(), lldb_private::NativeThreadProtocol::GetSiginfo(), lldb_private::StreamString::GetString(), LLDB_INVALID_PROCESS_ID, m_current_process, lldb_private::Stream::Printf(), and XMLEncodeAttributeValue().
Referenced by Handle_qXfer().
|
private |
Definition at line 78 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), StringExtractorGDBRemote::eServerPacketType__M, StringExtractorGDBRemote::eServerPacketType__m, StringExtractorGDBRemote::eServerPacketType_c, StringExtractorGDBRemote::eServerPacketType_C, StringExtractorGDBRemote::eServerPacketType_D, StringExtractorGDBRemote::eServerPacketType_g, StringExtractorGDBRemote::eServerPacketType_H, StringExtractorGDBRemote::eServerPacketType_I, StringExtractorGDBRemote::eServerPacketType_interrupt, StringExtractorGDBRemote::eServerPacketType_jLLDBTraceGetBinaryData, StringExtractorGDBRemote::eServerPacketType_jLLDBTraceGetState, StringExtractorGDBRemote::eServerPacketType_jLLDBTraceStart, StringExtractorGDBRemote::eServerPacketType_jLLDBTraceStop, StringExtractorGDBRemote::eServerPacketType_jLLDBTraceSupported, StringExtractorGDBRemote::eServerPacketType_jThreadsInfo, StringExtractorGDBRemote::eServerPacketType_k, StringExtractorGDBRemote::eServerPacketType_m, StringExtractorGDBRemote::eServerPacketType_M, StringExtractorGDBRemote::eServerPacketType_p, StringExtractorGDBRemote::eServerPacketType_P, StringExtractorGDBRemote::eServerPacketType_qC, StringExtractorGDBRemote::eServerPacketType_qFileLoadAddress, StringExtractorGDBRemote::eServerPacketType_qfThreadInfo, StringExtractorGDBRemote::eServerPacketType_qGetWorkingDir, StringExtractorGDBRemote::eServerPacketType_QListThreadsInStopReply, StringExtractorGDBRemote::eServerPacketType_qLLDBSaveCore, StringExtractorGDBRemote::eServerPacketType_qMemoryRegionInfo, StringExtractorGDBRemote::eServerPacketType_qMemoryRegionInfoSupported, StringExtractorGDBRemote::eServerPacketType_qMemTags, StringExtractorGDBRemote::eServerPacketType_QMemTags, StringExtractorGDBRemote::eServerPacketType_QNonStop, StringExtractorGDBRemote::eServerPacketType_QPassSignals, StringExtractorGDBRemote::eServerPacketType_qProcessInfo, StringExtractorGDBRemote::eServerPacketType_qRegisterInfo, StringExtractorGDBRemote::eServerPacketType_QRestoreRegisterState, StringExtractorGDBRemote::eServerPacketType_QSaveRegisterState, StringExtractorGDBRemote::eServerPacketType_QSetDisableASLR, StringExtractorGDBRemote::eServerPacketType_QSetWorkingDir, StringExtractorGDBRemote::eServerPacketType_qsThreadInfo, StringExtractorGDBRemote::eServerPacketType_qThreadStopInfo, StringExtractorGDBRemote::eServerPacketType_QThreadSuffixSupported, StringExtractorGDBRemote::eServerPacketType_qVAttachOrWaitSupported, StringExtractorGDBRemote::eServerPacketType_qWatchpointSupportInfo, StringExtractorGDBRemote::eServerPacketType_qXfer, StringExtractorGDBRemote::eServerPacketType_s, StringExtractorGDBRemote::eServerPacketType_stop_reason, StringExtractorGDBRemote::eServerPacketType_T, StringExtractorGDBRemote::eServerPacketType_vAttach, StringExtractorGDBRemote::eServerPacketType_vAttachOrWait, StringExtractorGDBRemote::eServerPacketType_vAttachWait, StringExtractorGDBRemote::eServerPacketType_vCont, StringExtractorGDBRemote::eServerPacketType_vCont_actions, StringExtractorGDBRemote::eServerPacketType_vCtrlC, StringExtractorGDBRemote::eServerPacketType_vKill, StringExtractorGDBRemote::eServerPacketType_vRun, StringExtractorGDBRemote::eServerPacketType_vStdio, StringExtractorGDBRemote::eServerPacketType_vStopped, StringExtractorGDBRemote::eServerPacketType_x, StringExtractorGDBRemote::eServerPacketType_Z, StringExtractorGDBRemote::eServerPacketType_z, Handle__M(), Handle__m(), Handle_C(), Handle_c(), Handle_D(), Handle_g(), Handle_H(), Handle_I(), Handle_interrupt(), Handle_jLLDBTraceGetBinaryData(), Handle_jLLDBTraceGetState(), Handle_jLLDBTraceStart(), Handle_jLLDBTraceStop(), Handle_jLLDBTraceSupported(), Handle_jThreadsInfo(), Handle_k(), Handle_M(), Handle_memory_read(), Handle_p(), Handle_P(), Handle_qC(), Handle_qFileLoadAddress(), Handle_qfThreadInfo(), Handle_qGetWorkingDir(), Handle_QListThreadsInStopReply(), Handle_qMemoryRegionInfo(), Handle_qMemoryRegionInfoSupported(), Handle_qMemTags(), Handle_QMemTags(), Handle_QNonStop(), Handle_QPassSignals(), Handle_qProcessInfo(), Handle_qRegisterInfo(), Handle_QRestoreRegisterState(), Handle_qSaveCore(), Handle_QSaveRegisterState(), Handle_QSetDisableASLR(), Handle_QSetWorkingDir(), Handle_qsThreadInfo(), Handle_qThreadStopInfo(), Handle_QThreadSuffixSupported(), Handle_qVAttachOrWaitSupported(), Handle_qWatchpointSupportInfo(), Handle_qXfer(), Handle_s(), Handle_stop_reason(), Handle_T(), Handle_vAttach(), Handle_vAttachOrWait(), Handle_vAttachWait(), Handle_vCont(), Handle_vCont_actions(), Handle_vCtrlC(), Handle_vKill(), Handle_vRun(), Handle_vStdio(), Handle_vStopped(), Handle_Z(), Handle_z(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::RegisterMemberFunctionHandler(), and lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::RegisterPacketHandler().
Referenced by GDBRemoteCommunicationServerLLGS().
|
protected |
Definition at line 1528 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::NativeProcessProtocol::CanResume(), error(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), lldb_private::NativeProcessProtocol::GetState(), LLDB_LOG, lldb_private::Process, lldb_private::NativeProcessProtocol::Resume(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::Success, and lldb_private::Thread.
Referenced by Handle_C(), Handle_c(), Handle_s(), and Handle_vCont().
|
protected |
Definition at line 4279 of file GDBRemoteCommunicationServerLLGS.cpp.
References m_non_stop, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), StartSTDIOForwarding(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::Success.
Referenced by Handle_C(), Handle_c(), Handle_k(), Handle_s(), and Handle_vCont().
|
protected |
Definition at line 1191 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::StreamString::GetString(), m_non_stop, m_stdio_notification_queue, lldb_private::Stream::PutBytesAsRawHex8(), lldb_private::Stream::PutChar(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendNotificationPacketNoLock(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::Success.
Referenced by SendProcessOutput().
|
private |
Definition at line 1253 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb::eConnectionStatusEndOfFile, lldb::eConnectionStatusError, lldb::eConnectionStatusInterrupted, lldb::eConnectionStatusLostConnection, lldb::eConnectionStatusNoConnection, lldb::eConnectionStatusSuccess, lldb::eConnectionStatusTimedOut, error(), lldb_private::GetLog(), LLDB_LOGF, m_stdio_communication, m_stdio_handle_up, lldb_private::Process, lldb_private::Communication::Read(), and SendONotification().
Referenced by ProcessStateChanged().
|
protected |
Definition at line 1928 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb::eStateAttaching, lldb::eStateCrashed, lldb::eStateDetached, lldb::eStateExited, lldb::eStateInvalid, lldb::eStateLaunching, lldb::eStateRunning, lldb::eStateStepping, lldb::eStateStopped, lldb::eStateSuspended, lldb::eStateUnloaded, lldb_private::NativeProcessProtocol::GetCurrentThreadID(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), LLDB_LOG, m_debugged_processes, m_disabling_non_stop, lldb_private::Process, lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), SendStopReplyPacketForThread(), SendWResponse(), SetCurrentThreadID(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::Success.
Referenced by Handle_stop_reason(), Handle_vAttach(), Handle_vAttachOrWait(), Handle_vAttachWait(), Handle_vRun(), HandleInferiorState_Exited(), and HandleInferiorState_Stopped().
|
protected |
Definition at line 1000 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::StreamString::Empty(), EnqueueStopReplyPackets(), lldb_private::StreamString::GetString(), lldb_private::NativeProcessProtocol::GetThreadByID(), m_non_stop, m_stop_notification_queue, PrepareStopReplyPacketForThread(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendErrorResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendNotificationPacketNoLock(), and lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock().
Referenced by Handle_qThreadStopInfo(), and SendStopReasonForState().
|
protected |
Definition at line 474 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::Stream::Format(), lldb_private::NativeProcessProtocol::GetExitStatus(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), lldb_private::StreamString::GetString(), LLDB_LOG, m_debugged_processes, m_extensions_supported, m_non_stop, m_stop_notification_queue, lldb_private::NativeProcessProtocol::multiprocess, lldb_private::Process, lldb_private::Stream::PutChar(), lldb_private::Stream::PutHex8(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendNotificationPacketNoLock(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::SendOKResponse(), lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock(), and lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::DebuggedProcess::vkilled.
Referenced by SendStopReasonForState().
|
protected |
Definition at line 1877 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::GetLog(), LLDB_LOG, m_continue_tid, and lldb_private::Thread.
Referenced by Handle_H().
|
protected |
Definition at line 1868 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::GetLog(), LLDB_LOG, m_current_process, m_current_tid, lldb_private::NativeProcessProtocol::SetCurrentThreadID(), and lldb_private::Thread.
Referenced by Handle_H(), Handle_qC(), and SendStopReasonForState().
|
private |
Definition at line 4271 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::NativeProcessProtocol::Manager::GetSupportedExtensions(), m_extensions_supported, m_process_manager, and lldb_private::NativeProcessProtocol::SetEnabledExtensions().
Referenced by HandleFeatures().
void GDBRemoteCommunicationServerLLGS::SetLaunchInfo | ( | const ProcessLaunchInfo & | info | ) |
Definition at line 256 of file GDBRemoteCommunicationServerLLGS.cpp.
References lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::m_process_launch_info.
|
protected |
Definition at line 1208 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), lldb_private::Communication::IsConnected(), m_stdio_communication, lldb_private::Communication::SetCloseOnEOF(), and lldb_private::Communication::SetConnection().
|
private |
Definition at line 1230 of file GDBRemoteCommunicationServerLLGS.cpp.
References error(), lldb_private::Communication::GetConnection(), lldb_private::GetLog(), lldb_private::Connection::GetReadObject(), lldb_private::Communication::IsConnected(), LLDB_LOG, m_mainloop, m_stdio_communication, m_stdio_handle_up, lldb_private::Process, and lldb_private::MainLoopPosix::RegisterReadObject().
Referenced by Handle_QNonStop(), and SendContinueSuccessResponse().
|
private |
Definition at line 1249 of file GDBRemoteCommunicationServerLLGS.cpp.
References m_stdio_handle_up.
Referenced by Handle_D(), Handle_k(), Handle_QNonStop(), Handle_vKill(), and ProcessStateChanged().
|
staticprotected |
Definition at line 4186 of file GDBRemoteCommunicationServerLLGS.cpp.
Referenced by ReadXferObject().
|
protected |
Definition at line 107 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by AttachToProcess(), Handle_C(), Handle_c(), Handle_D(), Handle_H(), Handle_s(), Handle_vCont(), HandleInferiorState_Exited(), and LaunchProcess().
|
protected |
Definition at line 105 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by GetContinueThreadID(), and SetContinueThreadID().
|
protected |
Definition at line 106 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by AttachToProcess(), BuildTargetXml(), EnqueueStopReplyPackets(), FindModuleFile(), GetCurrentThreadID(), GetThreadFromSuffix(), Handle__M(), Handle__m(), Handle_D(), Handle_H(), Handle_I(), Handle_interrupt(), Handle_jLLDBTraceGetBinaryData(), Handle_jLLDBTraceGetState(), Handle_jLLDBTraceStart(), Handle_jLLDBTraceStop(), Handle_jLLDBTraceSupported(), Handle_jThreadsInfo(), Handle_M(), Handle_memory_read(), Handle_P(), Handle_qC(), Handle_qFileLoadAddress(), Handle_qMemoryRegionInfo(), Handle_qMemoryRegionInfoSupported(), Handle_qMemTags(), Handle_QMemTags(), Handle_QPassSignals(), Handle_qProcessInfo(), Handle_qRegisterInfo(), Handle_QRestoreRegisterState(), Handle_qSaveCore(), Handle_QSaveRegisterState(), Handle_qThreadStopInfo(), Handle_qWatchpointSupportInfo(), Handle_stop_reason(), Handle_T(), Handle_vAttach(), Handle_vAttachOrWait(), Handle_vAttachWait(), Handle_vRun(), Handle_Z(), Handle_z(), HandleInferiorState_Exited(), LaunchProcess(), PrepareStopReplyPacketForThread(), ReadXferObject(), and SetCurrentThreadID().
|
protected |
Definition at line 104 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by GetCurrentThreadID(), and SetCurrentThreadID().
|
protected |
Definition at line 108 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by LaunchProcess().
|
protected |
Definition at line 109 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by AttachToProcess(), Handle_D(), Handle_H(), Handle_k(), Handle_qfThreadInfo(), Handle_QNonStop(), Handle_T(), Handle_vCont(), Handle_vKill(), Handle_vStopped(), HandleFeatures(), HandleInferiorState_Exited(), LaunchProcess(), NewSubprocess(), SendStopReasonForState(), and SendWResponse().
|
protected |
Definition at line 121 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by Handle_QNonStop(), and SendStopReasonForState().
|
protected |
Definition at line 125 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by AppendThreadIDToResponse(), Handle_qfThreadInfo(), HandleFeatures(), PrepareStopReplyPacketForThread(), SendWResponse(), and SetEnabledExtensions().
|
protected |
Definition at line 119 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by Handle_QListThreadsInStopReply(), and PrepareStopReplyPacketForThread().
|
protected |
Definition at line 101 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by DataAvailableCallback(), Handle_vStopped(), HandleInferiorState_Exited(), InitializeConnection(), and StartSTDIOForwarding().
|
protected |
Definition at line 102 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by InitializeConnection().
|
protected |
Definition at line 117 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by GetNextSavedRegistersID().
|
protected |
Definition at line 120 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by EnqueueStopReplyPackets(), Handle_D(), Handle_k(), Handle_QNonStop(), Handle_stop_reason(), Handle_vCont(), Handle_vCtrlC(), Handle_vKill(), HandleInferiorState_Exited(), ProcessStateChanged(), SendContinueSuccessResponse(), SendONotification(), SendStopReplyPacketForThread(), and SendWResponse().
|
protected |
Definition at line 103 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by AttachToProcess(), HandleFeatures(), LaunchProcess(), and SetEnabledExtensions().
|
protected |
Definition at line 130 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by Handle_P().
|
protected |
Definition at line 116 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by Handle_QRestoreRegisterState(), and Handle_QSaveRegisterState().
|
protected |
Definition at line 115 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by GetNextSavedRegistersID(), Handle_QRestoreRegisterState(), and Handle_QSaveRegisterState().
|
protected |
Definition at line 111 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by Handle_I(), MaybeCloseInferiorTerminalConnection(), SendProcessOutput(), SetSTDIOFileDescriptor(), and StartSTDIOForwarding().
|
protected |
Definition at line 112 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by SendProcessOutput(), StartSTDIOForwarding(), and StopSTDIOForwarding().
|
protected |
Definition at line 122 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by Handle_QNonStop(), Handle_vStdio(), and SendONotification().
|
protected |
Definition at line 123 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by EnqueueStopReplyPackets(), Handle_QNonStop(), Handle_stop_reason(), Handle_vStopped(), SendStopReplyPacketForThread(), and SendWResponse().
|
protected |
Definition at line 118 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by GetThreadFromSuffix(), Handle_QRestoreRegisterState(), Handle_QSaveRegisterState(), and Handle_QThreadSuffixSupported().
|
protected |
Definition at line 114 of file GDBRemoteCommunicationServerLLGS.h.
Referenced by ClearProcessSpecificData(), and Handle_qXfer().