OSDN Git Service

linux-user: Don't include gdbstub.h in qemu.h
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 8 Sep 2021 15:44:04 +0000 (16:44 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 13 Sep 2021 18:35:45 +0000 (20:35 +0200)
commit85b4fa0cd189311dc1c69714e669b5a12b0552f6
treee10a886109a18acb3005d0415b01e63808ecda5a
parent3b249d2661c752e75ef6d2d4ac63bdf9a921dd4b
linux-user: Don't include gdbstub.h in qemu.h

Currently the linux-user qemu.h pulls in gdbstub.h. There's no real reason
why it should do this; include it directly from the C files which require
it, and drop the include line in qemu.h.

(Note that several of the C files previously relying on this indirect
include were going out of their way to only include gdbstub.h conditionally
on not CONFIG_USER_ONLY!)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210908154405.15417-9-peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
gdbstub.c
linux-user/exit.c
linux-user/main.c
linux-user/qemu.h
linux-user/signal.c
semihosting/arm-compat-semi.c
target/m68k/m68k-semi.c
target/nios2/nios2-semi.c