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



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to