LLDB mainline
Public Member Functions | Private Attributes | List of all members
lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::PortMap Class Reference

#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_tm_port_map
 

Detailed Description

Definition at line 28 of file GDBRemoteCommunicationServerPlatform.h.

Constructor & Destructor Documentation

◆ PortMap() [1/2]

lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::PortMap::PortMap ( )
default

◆ PortMap() [2/2]

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.

Member Function Documentation

◆ AllowPort()

void GDBRemoteCommunicationServerPlatform::PortMap::AllowPort ( uint16_t  port)

◆ AssociatePortWithProcess()

bool GDBRemoteCommunicationServerPlatform::PortMap::AssociatePortWithProcess ( uint16_t  port,
lldb::pid_t  pid 
)

◆ empty()

bool GDBRemoteCommunicationServerPlatform::PortMap::empty ( ) const

◆ FreePort()

bool GDBRemoteCommunicationServerPlatform::PortMap::FreePort ( uint16_t  port)

◆ FreePortForProcess()

bool GDBRemoteCommunicationServerPlatform::PortMap::FreePortForProcess ( lldb::pid_t  pid)

◆ GetNextAvailablePort()

llvm::Expected< uint16_t > GDBRemoteCommunicationServerPlatform::PortMap::GetNextAvailablePort ( )

Member Data Documentation

◆ m_port_map

std::map<uint16_t, lldb::pid_t> lldb_private::process_gdb_remote::GDBRemoteCommunicationServerPlatform::PortMap::m_port_map
private

Definition at line 72 of file GDBRemoteCommunicationServerPlatform.h.

Referenced by PortMap().


The documentation for this class was generated from the following files: