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

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 11 02:46:07 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
----------------
DavidSpickett wrote:

Does Windows reject writes to the other breakpoints or just silently accepts them and only later you find out they don't work?

I'm wondering if we can read/modify/write the registers and see what sticks.

Of course the timing of that is interesting. We'd need a live process to do those writes in, and perhaps by that time we already needed to know the max breakpoint number for something else to work.

(last time I did this sort of thing it was a jtag debugger so we could inspect registers regardless of the debugee's state)

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


More information about the lldb-commits mailing list