mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
libsysdecode: Decode FreeBSD32 syscalls on arm64.
Add aarch64 to the list of architectures that can run 32bits FreeBSD binaries, so that truss works correctly with an arm32 binary. The same should probably be done with mips. MFC After: 1 week
This commit is contained in:
parent
1f82fb3834
commit
9bab18b861
|
@ -43,7 +43,7 @@ __FBSDID("$FreeBSD$");
|
|||
static
|
||||
#include <kern/syscalls.c>
|
||||
|
||||
#if defined(__amd64__) || defined(__powerpc64__)
|
||||
#if defined(__amd64__) || defined(__powerpc64__) || defined(__aarch64__)
|
||||
static
|
||||
#include <compat/freebsd32/freebsd32_syscalls.c>
|
||||
#endif
|
||||
|
@ -73,7 +73,7 @@ sysdecode_syscallname(enum sysdecode_abi abi, unsigned int code)
|
|||
if (code < nitems(syscallnames))
|
||||
return (syscallnames[code]);
|
||||
break;
|
||||
#if defined(__amd64__) || defined(__powerpc64__)
|
||||
#if defined(__amd64__) || defined(__powerpc64__) || defined(__aarch64__)
|
||||
case SYSDECODE_ABI_FREEBSD32:
|
||||
if (code < nitems(freebsd32_syscallnames))
|
||||
return (freebsd32_syscallnames[code]);
|
||||
|
|
Loading…
Reference in a new issue