LLDB mainline
|
#include <GDBRemoteCommunicationServerPlatform.h>
Public Member Functions | |
PortMap ()=default | |
PortMap (uint16_t min_port, uint16_t max_port) | |
void | AllowPort (uint16_t port) |
llvm::Expected< uint16_t > | GetNextAvailablePort () |
bool | AssociatePortWithProcess (uint16_t port, lldb::pid_t pid) |
bool | FreePort (uint16_t port) |
bool | FreePortForProcess (lldb::pid_t pid) |
bool | empty () const |
Private Attributes | |
std::map< uint16_t, lldb::pid_t > | m_port_map |
Definition at line 28 of file GDBRemoteCommunicationServerPlatform.h.
|
default |
GDBRemoteCommunicationServerPlatform::PortMap::PortMap | ( | uint16_t | min_port, |
uint16_t | max_port | ||
) |
Definition at line 47 of file GDBRemoteCommunicationServerPlatform.cpp.
References LLDB_INVALID_PROCESS_ID, and m_port_map.
void GDBRemoteCommunicationServerPlatform::PortMap::AllowPort | ( | uint16_t | port | ) |
bool GDBRemoteCommunicationServerPlatform::PortMap::AssociatePortWithProcess | ( | uint16_t | port, |
lldb::pid_t | pid | ||
) |
Definition at line 76 of file GDBRemoteCommunicationServerPlatform.cpp.
References lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::m_port_map, lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::pid, and lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::port.
Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::LaunchGDBServer().
bool GDBRemoteCommunicationServerPlatform::PortMap::empty | ( | ) | const |
Definition at line 108 of file GDBRemoteCommunicationServerPlatform.cpp.
References empty(), and lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::m_port_map.
Referenced by empty(), FreePortForProcess(), and GetNextAvailablePort().
bool GDBRemoteCommunicationServerPlatform::PortMap::FreePort | ( | uint16_t | port | ) |
Definition at line 86 of file GDBRemoteCommunicationServerPlatform.cpp.
References LLDB_INVALID_PROCESS_ID, lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::m_port_map, and lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::port.
Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::LaunchGDBServer().
bool GDBRemoteCommunicationServerPlatform::PortMap::FreePortForProcess | ( | lldb::pid_t | pid | ) |
Definition at line 95 of file GDBRemoteCommunicationServerPlatform.cpp.
References empty(), LLDB_INVALID_PROCESS_ID, lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::m_port_map, and lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::pid.
Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::DebugserverProcessReaped().
llvm::Expected< uint16_t > GDBRemoteCommunicationServerPlatform::PortMap::GetNextAvailablePort | ( | ) |
Definition at line 61 of file GDBRemoteCommunicationServerPlatform.cpp.
References empty(), LLDB_INVALID_PROCESS_ID, and lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::m_port_map.
Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::LaunchGDBServer().
|
private |
Definition at line 72 of file GDBRemoteCommunicationServerPlatform.h.
Referenced by PortMap().