bsd-user: move strace OS/arch dependent code to host/arch dirs

This change moves host OS and arch dependent code for the sysarch
system call related to the -strace functionality into the
appropriate host OS and target arch directories.

Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Sean Bruno <sburno@FreeBSD.org>
[ imp integrated minor build fixes from sbruno ]
Signed-off-by: Warner Losh <imp@FreeBSD.org>
Message-Id: <20201218205451.10559-4-imp@freebsd.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
Stacey Son 2020-12-18 13:54:50 -07:00 committed by Thomas Huth
parent 4d306e59cb
commit ea1ab4cf2c
20 changed files with 744 additions and 4 deletions

View file

@ -20,9 +20,12 @@
#include <sys/select.h>
#include <sys/syscall.h>
#include <sys/ioccom.h>
#include <ctype.h>
#include "qemu.h"
#include "os-strace.h" /* OS dependent strace print functions */
int do_strace;
/*
@ -104,6 +107,14 @@ static void print_ioctl(const struct syscallname *name,
arg3);
}
static void print_sysarch(const struct syscallname *name, abi_long arg1,
abi_long arg2, abi_long arg3, abi_long arg4, abi_long arg5,
abi_long arg6)
{
/* This is os dependent. */
do_os_print_sysarch(name, arg1, arg2, arg3, arg4, arg5, arg6);
}
/*
* Variants for the return value output function
*/