[strace/strace] Add 64-bit LoongArch support (PR #205)

Dmitry V. Levin notifications at github.com
Sun Jan 23 12:41:50 UTC 2022

On Sun, Jan 23, 2022 at 02:49:27AM -0800, Huacai Chen wrote:
> I'm sorry that we still have to export orig_a0, because the current solution cannot let ptrace to modify arg0 and return value at the same time.

What ptracers usually do is tampering with the syscall number and/or its
arguments on entering syscall and tampering with the return value on
exiting syscall.  Tampering with the return value on entering syscall
is not reliable as it is not supported by all linux architectures.

That is, I don't see why the change is necessary.

Reply to this email directly or view it on GitHub:
You are receiving this because you are subscribed to this thread.

Message ID: <strace/strace/pull/205/c1019477223 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20220123/24469c76/attachment.htm>

More information about the Strace-devel mailing list