]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make truss(8) work for i686-unknown-cloudabi binaries on FreeBSD/amd64.
authored <ed@FreeBSD.org>
Sat, 16 Dec 2017 19:40:28 +0000 (19:40 +0000)
committered <ed@FreeBSD.org>
Sat, 16 Dec 2017 19:40:28 +0000 (19:40 +0000)
commitf0a0836227d10b1a714d129536ff0475a0d6c10b
treed7e26ed9e533f2392c15e92496ed837717ecf112
parent118522df7e441e11f6914286a976da2675501935
Make truss(8) work for i686-unknown-cloudabi binaries on FreeBSD/amd64.

This change copies the existing amd64_cloudabi64.c to amd64_cloudabi32.c
and reimplements the functions for fetching system call arguments and
return values to use the same scheme as used by the vDSO that is used
when running cloudabi32 executables.

As arguments are automatically padded to 64-bit words by the vDSO in
userspace, we can copy the arguments directly into the array used by
truss(8) internally.

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D13516
usr.bin/truss/Makefile
usr.bin/truss/amd64-cloudabi32.c [new file with mode: 0644]