[Lldb-commits] [lldb] [lldb] [mostly NFC] Large WP foundation: WatchpointResources (PR #68845)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 26 17:19:34 PDT 2023
================
@@ -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
More information about the lldb-commits
mailing list