[Lldb-commits] [PATCH] D15533: Make the aarch64 lldb-server capable of debugging arm32 applications

Tamas Berghammer via lldb-commits lldb-commits at lists.llvm.org
Fri Dec 18 04:33:11 PST 2015


tberghammer added a comment.

I don't fully understand how the ptrace API works in the aarch64 Linux kernel but based on my experiments the arm specific ptrace calls aren't working (returning -EIO for a reason unknown to me at the moment). Because of this, the current watchpoint implementation ins't working when aarch64 lldb-server is debugging an arm32 inferior. I also tried to change the implementation to use ReadRegisterSet(NT_ARM_HW_WATCH) but it wasn't working either most likely because NT_ARM_HW_WATCH isn't listed as a register set in http://lxr.free-electrons.com/source/arch/arm64/kernel/ptrace.c#L853

I will keep investigating how can we set arm watchpoints from an aarch64 kernel but I would appreciate any suggestion if you have one.


http://reviews.llvm.org/D15533





More information about the lldb-commits mailing list