[Lldb-commits] [lldb] [lldb][AArch64] Fix arm64 hardware breakpoint/watchpoint to arm32 process. (PR #147198)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 21 02:39:36 PDT 2025


================
@@ -102,18 +105,8 @@ class NativeRegisterContextLinux_arm : public NativeRegisterContextLinux {
   uint32_t m_gpr_arm[k_num_gpr_registers_arm];
   RegisterInfoPOSIX_arm::FPU m_fpr;
 
-  // Debug register info for hardware breakpoints and watchpoints management.
-  struct DREG {
-    lldb::addr_t address;  // Breakpoint/watchpoint address value.
-    lldb::addr_t hit_addr; // Address at which last watchpoint trigger exception
-                           // occurred.
-    lldb::addr_t real_addr; // Address value that should cause target to stop.
-    uint32_t control;       // Breakpoint/watchpoint control value.
-    uint32_t refcount;      // Serves as enable/disable and reference counter.
----------------
DavidSpickett wrote:

Switching to the other definition removes `refcount` which appears to be unused anyway.

Send a separate PR to remove that field from all definitions so the bots can test that assertion in isolation.

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


More information about the lldb-commits mailing list