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

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 7 00:59:47 PDT 2025


labath wrote:

Your analysis is correct -- the kernel uses the bitwidth of the tracer (not the tracee) when deciding whether to use the compatibility interface. However, copying the code sounds like a fairly fragile solution. It'd be better to figure out a way to share the code somehow.

The x86 classes don't have this problem because NativeRegisterContextLinux_x86_64 knows how to debug both 32 and 64-bit processes. That may not be the right solution here, but it's one thing you can use for inspiration.

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


More information about the lldb-commits mailing list