[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 28 01:21:19 PDT 2025


================
@@ -74,8 +75,10 @@ class NativeRegisterContextLinux_arm : public NativeRegisterContextLinux {
 
   bool WatchpointIsEnabled(uint32_t wp_index);
 
-  // Debug register type select
-  enum DREGType { eDREGTypeWATCH = 0, eDREGTypeBREAK };
+  using DREGType = NativeRegisterContextDBReg::DREGType;
+  static const DREGType eDREGTypeBREAK = DREGType::eDREGTypeBREAK;
+  static const DREGType eDREGTypeWATCH = DREGType::eDREGTypeWATCH;
+  using DREG = NativeRegisterContextDBReg::DREG;
----------------
DavidSpickett wrote:

> I am considering porting arm to use NativeRegisterContextDBReg, after this it will be not fully qualified again.

If it's the class that LoongArch and AArch64 use, I might have a tree where I did this. I never found the time to test it with Arm/Thumb options though.

Please fully qualify the names for now and I'll look for those changes of mine.

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


More information about the lldb-commits mailing list