================ @@ -754,6 +760,7 @@ class Debugger : public std::enable_shared_from_this<Debugger>, uint32_t m_interrupt_requested = 0; ///< Tracks interrupt requests std::mutex m_interrupt_mutex; + std::shared_ptr<LldbTelemeter> m_telemeter; ---------------- oontvoo wrote:
The use of "shared_ptr" here is to ensure the object can be "shared" with different parts of the code - and not so much about the telemter outliving its debugger. But I suppose we can make it a unique_ptr and just share the raw pointer around, if you prefer? https://github.com/llvm/llvm-project/pull/98528 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits