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

Omair Javaid via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 11 03:31:18 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
----------------
omjavaid wrote:

In my testing  I was able to set and read the registers back successfully however the exception which should be generated as a result of setting those registers do not get triggered. So in theory you are able to set and read hardware breakpoint registers back with correct values. But there is some configuration internal to windows which probably does not happen until we land in user code for generating those exceptions.

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


More information about the lldb-commits mailing list