[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


================
@@ -211,6 +212,35 @@ bool Watchpoint::CaptureWatchedValue(const ExecutionContext &exe_ctx) {
   return (m_new_value_sp && m_new_value_sp->GetError().Success());
 }
 
+bool Watchpoint::WatchedValueReportable(const ExecutionContext &exe_ctx) {
+  if (!m_watch_modify)
+    return true;
+  if (!m_type.IsValid())
+    return true;
+
+  ConstString watch_name("$__lldb__watch_value");
----------------
JDevlieghere wrote:

Seems like you can pass this directly to `ValueObjectMemory::Create` as a string literal and make @bulbazord happy?

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


More information about the lldb-commits mailing list