[Lldb-commits] [lldb] [lldb][Windows] WoA HW Break and Watchpoint support in LLDB (PR #108072)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 11 03:12:42 PDT 2024


================
@@ -143,8 +142,14 @@ NativeRegisterContextWindows::CreateHostNativeRegisterContextWindows(
 
 NativeRegisterContextWindows_arm64::NativeRegisterContextWindows_arm64(
     const ArchSpec &target_arch, NativeThreadProtocol &native_thread)
-    : NativeRegisterContextWindows(native_thread,
-                                   CreateRegisterInfoInterface(target_arch)) {}
+    : NativeRegisterContextRegisterInfo(
+          native_thread, CreateRegisterInfoInterface(target_arch)) {
+  // Currently, there is no API to query the maximum supported hardware
+  // breakpoints and watchpoints on Windows. The values set below are based
----------------
labath wrote:

In principle, there's nothing stopping you from launching a dummy process just for the purpose of testing the debug API. I noticed that this is what linux `strace` does when it tries to determine the host kernel capabilities. Windows makes this slightly trickier as you can't just call `fork` -- you need an actual executable -- but the same principle holds. (I'm not saying we need to do this here, I'm just throwing the idea out there.)

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


More information about the lldb-commits mailing list