[Lldb-commits] [lldb] [lldb] Add support for large watchpoints in lldb (PR #79962)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 1 06:12:12 PST 2024


================
@@ -352,6 +358,20 @@ void Watchpoint::DumpWithLevel(Stream *s,
       s->Printf("\n    declare @ '%s'", m_decl_str.c_str());
     if (!m_watch_spec_str.empty())
       s->Printf("\n    watchpoint spec = '%s'", m_watch_spec_str.c_str());
+    if (IsEnabled()) {
+      if (ProcessSP process_sp = m_target.GetProcessSP()) {
+        auto &resourcelist = process_sp->GetWatchpointResourceList();
+        size_t idx = 0;
+        s->Printf("\n    watchpoint resources:");
+        for (WatchpointResourceSP &wpres : resourcelist.Sites()) {
----------------
DavidSpickett wrote:

Could `llvm::enumerate` this.

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


More information about the lldb-commits mailing list