[Lldb-commits] [lldb] [lldb-dap] Use protocol types for modules request and events. (PR #146966)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 7 09:05:47 PDT 2025
================
@@ -41,6 +41,21 @@ struct CapabilitiesEventBody {
};
llvm::json::Value toJSON(const CapabilitiesEventBody &);
+/// The event indicates that some information about a module has changed.
+struct ModuleEventBody {
+ enum Reason : unsigned { eReasonNew, eReasonChanged, eReasonRemoved };
+
+ /// The new, changed, or removed module. In case of `removed` only the module
+ /// id is used.
+ Module module;
+
+ /// The reason for the event.
+ /// Values: 'new', 'changed', 'removed'
+ Reason reason;
+};
+llvm::json::Value toJSON(ModuleEventBody::Reason);
----------------
ashgti wrote:
`const &` on the param, I think
https://github.com/llvm/llvm-project/pull/146966
More information about the lldb-commits
mailing list