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

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 13 19:05:36 PDT 2023


================
@@ -982,6 +982,13 @@ class StopInfoWatchpoint : public StopInfo {
             m_should_stop = false;
           }
         }
+
+        // Don't stop if the watched region value is unmodified, and
+        // this is a Modify-type watchpoint.
+        if (m_should_stop && !wp_sp->WatchedValueReportable(exe_ctx)) {
+          m_should_stop = false;
+        }
----------------
JDevlieghere wrote:

LLVM [says](https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements) don’t use braces on simple single-statement bodies.

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


More information about the lldb-commits mailing list