[Lldb-commits] [lldb] [lldb] Add support for large watchpoints in lldb (PR #79962)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 30 20:00:59 PST 2024


================
@@ -448,6 +448,32 @@ enum WatchpointWriteType {
   eWatchpointWriteTypeOnModify
 };
 
+/// The hardware and native stub capabilities for a given target,
+/// for translating a user's watchpoint request into hardware
+/// capable watchpoint resources.
+FLAGS_ENUM(WatchpointHardwareFeature){
+    /// lldb will fall back to a default that assumes the target
+    /// can watch up to pointer-size power-of-2 regions, aligned to
+    /// power-of-2.
+    eWatchpointHardwareFeatureUnknown = (1u << 0),
+
+    /// Intel systems can watch 1, 2, 4, or 8 bytes (in 64-bit targets),
+    /// aligned naturally.
+    eWatchpointHardwareX86 = (1u << 1),
+    ///
----------------
JDevlieghere wrote:

I suppose this is meant to be a newline? 

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


More information about the lldb-commits mailing list