|
LLDB mainline
|
Information about this instance of lldb's MCP server for lldb-mcp to use to coordinate connecting an lldb-mcp client. More...
#include <Server.h>
Static Public Member Functions | |
| static llvm::Expected< ServerInfoHandle > | Write (const ServerInfo &) |
| Writes the server info into a unique file in ~/.lldb. | |
| static llvm::Expected< std::vector< ServerInfo > > | Load () |
| Loads any server info saved in ~/.lldb. | |
Public Attributes | |
| std::string | connection_uri |
| lldb::pid_t | pid = LLDB_INVALID_PROCESS_ID |
| Process id of the lldb instance hosting this server, used as its stable identity. | |
Information about this instance of lldb's MCP server for lldb-mcp to use to coordinate connecting an lldb-mcp client.
|
static |
Loads any server info saved in ~/.lldb.
Definition at line 93 of file Server.cpp.
References lldb_private::FileSystem::CreateDataBuffer(), lldb_private::FileSystem::DirBegin(), and lldb_private::FileSystem::Instance().
|
static |
Writes the server info into a unique file in ~/.lldb.
Definition at line 63 of file Server.cpp.
References lldb_private::FileSpec::CopyByAppendingPathComponent(), lldb_private::File::eOpenOptionCanCreate, lldb_private::File::eOpenOptionTruncate, lldb_private::File::eOpenOptionWriteOnly, error(), lldb_private::FileSpec::GetPath(), lldb_private::FileSystem::Instance(), lldb_private::FileSystem::Open(), pid, and lldb_protocol::mcp::toJSON().
Referenced by lldb_private::mcp::ProtocolServerMCP::Start().
| std::string lldb_protocol::mcp::ServerInfo::connection_uri |
Definition at line 90 of file Server.h.
Referenced by lldb_protocol::mcp::toJSON().
| lldb::pid_t lldb_protocol::mcp::ServerInfo::pid = LLDB_INVALID_PROCESS_ID |
Process id of the lldb instance hosting this server, used as its stable identity.
Definition at line 93 of file Server.h.
Referenced by lldb_protocol::mcp::toJSON(), and Write().