================ @@ -331,6 +373,16 @@ void Watchpoint::DumpWithLevel(Stream *s, bool Watchpoint::IsEnabled() const { return m_enabled; } +uint32_t Watchpoint::GetHardwareIndex() const { + if (IsEnabled()) + return m_target.GetProcessSP() + ->GetWatchpointResourceList() + .FindByWatchpoint(this) + ->GetID(); + else + return UINT32_MAX; ---------------- JDevlieghere wrote:
+1 https://github.com/llvm/llvm-project/pull/68845 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits