qemu/semihosting
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
..
arm-compat-semi.c gdbstub: move syscall handling to new file 2023-03-07 20:44:08 +00:00
config.c semihosting: Allow optional use of semihosting from userspace 2022-09-13 17:18:21 +01:00
console.c cleanup: Tweak and re-run return_directly.cocci 2022-12-14 16:19:35 +01:00
guestfd.c gdbstub: move syscall handling to new file 2023-03-07 20:44:08 +00:00
Kconfig semihosting: Move hw/semihosting/ -> semihosting/ 2021-03-10 15:34:12 +00:00
meson.build semihosting: Split out semihost_sys_open 2022-06-28 04:35:39 +05:30
syscalls.c gdbstub: move syscall handling to new file 2023-03-07 20:44:08 +00:00
uaccess.c accel/tcg: Add 'size' param to probe_access_flags() 2023-02-28 10:32:31 -10:00