[Lldb-commits] [lldb] [lldb] Make MCP server instance global (PR #145616)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 25 09:16:01 PDT 2025
================
@@ -37,20 +37,26 @@ class Tool {
std::string m_description;
};
-class LLDBCommandTool : public mcp::Tool {
+class CommandTool : public mcp::Tool {
public:
- LLDBCommandTool(std::string name, std::string description,
- Debugger &debugger);
- ~LLDBCommandTool() = default;
+ using mcp::Tool::Tool;
+ ~CommandTool() = default;
virtual llvm::Expected<protocol::TextResult>
- Call(const llvm::json::Value &args) override;
+ Call(const llvm::json::Value *args) override;
----------------
JDevlieghere wrote:
Correct, I can use a `std::variant` with `std::monostate` if you prefer.
https://github.com/llvm/llvm-project/pull/145616
More information about the lldb-commits
mailing list