]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libsysdecode: Add a new ABI type, SYSDECODE_ABI_CLOUDABI32.
authorEd Schouten <ed@FreeBSD.org>
Sat, 16 Dec 2017 19:37:55 +0000 (19:37 +0000)
committerEd Schouten <ed@FreeBSD.org>
Sat, 16 Dec 2017 19:37:55 +0000 (19:37 +0000)
commit87f69beea3fd1e4bf1f5002de1af811bc56c327f
tree1a8d73e760939836f1b2a674465e4c6739939a02
parent5bf0d7ad74798ada70507eddc2422609305080d6
libsysdecode: Add a new ABI type, SYSDECODE_ABI_CLOUDABI32.

In order to let truss(8) support tracing of 32-bit CloudABI
applications, we need to add a new ABI type to libsysdecode. We can
reuse the existing errno mapping table. Also link in the cloudabi32
system call table to translate system call names.

While there, remove all of the architecture ifdefs. There are not
needed, as the CloudABI data types and system call tables build fine on
any architecture. Building this unconditionally will make it easier to
do tracing for different compat modes, emulation, etc.

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D13516
lib/libsysdecode/errno.c
lib/libsysdecode/syscallnames.c
lib/libsysdecode/sysdecode.3
lib/libsysdecode/sysdecode.h