[Lldb-commits] [lldb] [lldb] Add 'modify' type watchpoints, make it default (PR #66308)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 15 14:30:57 PDT 2023


================
@@ -46,7 +46,9 @@ def test_unaligned_watchpoint(self):
         a_bytebuf_6 = frame.GetValueForVariablePath("a.bytebuf[6]")
         a_bytebuf_6_addr = a_bytebuf_6.GetAddress().GetLoadAddress(target)
         err = lldb.SBError()
-        wp = target.WatchAddress(a_bytebuf_6_addr, 4, False, True, err)
+        wp_opts = lldb.SBWatchpointOptions()
+        wp_opts.SetWatchpointTypeModify(True)
+        wp = target.WatchpointCreateByAddress(a_bytebuf_6_addr, 4, wp_opts, err)
         self.assertTrue(err.Success())
----------------
clayborg wrote:

No need to change this test if it still uses the old API. Revert?

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


More information about the lldb-commits mailing list