[Lldb-commits] [lldb] [LLDB][Telemetry]Define DebuggerTelemetryInfo and related methods (PR #127696)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 28 06:24:23 PST 2025


================
@@ -56,13 +58,38 @@ struct LLDBBaseTelemetryInfo : public llvm::telemetry::TelemetryInfo {
   void serialize(llvm::telemetry::Serializer &serializer) const override;
 };
 
+/// Describes the exit status of a debugger.
+struct ExitDescription {
+  int exit_code;
+  std::string description;
+};
+
+struct DebuggerInfo : public LLDBBaseTelemetryInfo {
----------------
labath wrote:

`DebuggerInfo::classof(subclass_of_debugger_info)` should return true, which I guess means changing the implementation to something like `return T->getKind()&LLDBEntryKind::DebuggerInfo == LLDBEntryKind::DebuggerInfo`

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


More information about the lldb-commits mailing list