[Lldb-commits] [lldb] [lldb] Adding A new Binding helper for JSONTransport. (PR #159160)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 18 11:18:59 PDT 2025


================
@@ -50,17 +56,88 @@ class TransportUnhandledContentsError
   std::string m_unhandled_contents;
 };
 
+class InvalidParams : public llvm::ErrorInfo<InvalidParams> {
+public:
+  static char ID;
+
+  explicit InvalidParams(std::string method, std::string context)
+      : m_method(std::move(method)), m_context(std::move(context)) {}
+
+  void log(llvm::raw_ostream &OS) const override;
+  std::error_code convertToErrorCode() const override;
+
+private:
+  std::string m_method;
----------------
JDevlieghere wrote:

Similar comment, what does method refer to here? Is this meant as a generalization of a MCP tool? If so, can we keep  this more concrete at a lower layer? 

https://github.com/llvm/llvm-project/pull/159160


More information about the lldb-commits mailing list