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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to