qemu-e2k/bsd-user/freebsd
Alex Bennée c566080cd3 gdbstub: move syscall handling to new file
Our GDB syscall support is the last chunk of code that needs target
specific support so move it to a new file. We take the opportunity to
move the syscall state into its own singleton instance and add in a
few helpers for the main gdbstub to interact with the module.

I also moved the gdb_exit() declaration into syscalls.h as it feels
pretty related and most of the callers of it treat it as such.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

Message-Id: <20230302190846.2593720-22-alex.bennee@linaro.org>
Message-Id: <20230303025805.625589-22-richard.henderson@linaro.org>
2023-03-07 20:44:08 +00:00
..
host-os.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
meson.build
os-strace.h
os-sys.c bsd-user: implement sysctlbyname(2) 2023-03-01 11:09:19 -07:00
os-syscall.c gdbstub: move syscall handling to new file 2023-03-07 20:44:08 +00:00
strace.list
syscall_nr.h
target_os_elf.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
target_os_siginfo.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
target_os_signal.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
target_os_stack.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
target_os_thread.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
target_os_ucontext.h
target_os_user.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
target_os_vmparam.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00