gdbstub: Build syscall.c once

There is no longer anything target specific.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230303025805.625589-29-richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2023-03-02 18:58:04 -08:00 committed by Alex Bennée
parent ad66b5cbbb
commit 2d3d2517cc
2 changed files with 2 additions and 6 deletions

View File

@ -31,8 +31,7 @@ user_ss.add(gdb_user)
gdb_softmmu = declare_dependency(link_whole: libgdb_softmmu) gdb_softmmu = declare_dependency(link_whole: libgdb_softmmu)
softmmu_ss.add(gdb_softmmu) softmmu_ss.add(gdb_softmmu)
# These have to built to the target ABI common_ss.add(files('syscalls.c'))
specific_ss.add(files('syscalls.c'))
# The user-target is specialised by the guest # The user-target is specialised by the guest
specific_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-target.c')) specific_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-target.c'))

View File

@ -2,9 +2,7 @@
* GDB Syscall Handling * GDB Syscall Handling
* *
* GDB can execute syscalls on the guests behalf, currently used by * GDB can execute syscalls on the guests behalf, currently used by
* the various semihosting extensions. As this interfaces with a guest * the various semihosting extensions.
* ABI we need to build it per-guest (although in reality its a 32 or
* 64 bit target_ulong that is the only difference).
* *
* Copyright (c) 2003-2005 Fabrice Bellard * Copyright (c) 2003-2005 Fabrice Bellard
* Copyright (c) 2023 Linaro Ltd * Copyright (c) 2023 Linaro Ltd
@ -14,7 +12,6 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "cpu.h"
#include "semihosting/semihost.h" #include "semihosting/semihost.h"
#include "sysemu/runstate.h" #include "sysemu/runstate.h"
#include "gdbstub/user.h" #include "gdbstub/user.h"