[Lldb-commits] [lldb] [lldb] When re-enabling a watchpoint, save the current bytes (PR #218819)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 26 03:09:45 PDT 2026


================
@@ -0,0 +1,6 @@
+static int arr[] = {1, 2, 0, 3, 4, 0x55555555};
----------------
DavidSpickett wrote:

> If the user then re-enables that watchpoint in the next Process launch, we need to collect the current values again for the Watchpoint at that point.

It doesn't seem like you change the values in `arr` between runs, is that intentional?

One way to do it would be in the first run, break on line 3, and on the second on line 4.

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


More information about the lldb-commits mailing list