[Lldb-commits] [lldb] LLDB: WatchAddress ignores modify option (PR #124847)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 28 15:22:03 PST 2025


https://github.com/jasonmolenda approved this pull request.

This looks good to me, thanks for fixing this.  This method used to take two bools, `read`, and `write`, I redefined the second to `modified` when I changed the default watchpoints to be modify-style.  The method previously had a block doing
```
-    uint32_t watch_type = 0;
-    if (read)
-      watch_type |= LLDB_WATCH_TYPE_READ;
-    if (write)
-      watch_type |= LLDB_WATCH_TYPE_WRITE;
```

and in rewriting this to set an SBWatchpointOptions object, I didn't update it correctly to allow someone to request a read-only watchpoint.  The test cases look good, thanks for taking the time to write those.  I'd address the nit Jonas pointed out.

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


More information about the lldb-commits mailing list