Skip to content

Commit 85b4fa0

Browse files
pm215vivier
authored andcommitted
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 <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Laurent Vivier <[email protected]>
1 parent 3b249d2 commit 85b4fa0

File tree

8 files changed

+8
-5
lines changed

8 files changed

+8
-5
lines changed

gdbstub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
#include "qemu/cutils.h"
3232
#include "qemu/module.h"
3333
#include "trace/trace-root.h"
34+
#include "exec/gdbstub.h"
3435
#ifdef CONFIG_USER_ONLY
3536
#include "qemu.h"
3637
#else
3738
#include "monitor/monitor.h"
3839
#include "chardev/char.h"
3940
#include "chardev/char-fe.h"
40-
#include "exec/gdbstub.h"
4141
#include "hw/cpu/cluster.h"
4242
#include "hw/boards.h"
4343
#endif

linux-user/exit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1818
*/
1919
#include "qemu/osdep.h"
20+
#include "exec/gdbstub.h"
2021
#include "qemu.h"
2122
#include "user-internals.h"
2223
#ifdef CONFIG_GPROF

linux-user/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include "qemu/module.h"
4141
#include "qemu/plugin.h"
4242
#include "exec/exec-all.h"
43+
#include "exec/gdbstub.h"
4344
#include "tcg/tcg.h"
4445
#include "qemu/timer.h"
4546
#include "qemu/envlist.h"

linux-user/qemu.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
#include "syscall_defs.h"
1313
#include "target_syscall.h"
14-
#include "exec/gdbstub.h"
1514

1615
/*
1716
* This is the size of the host kernel's sigset_t, needed where we make

linux-user/signal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*/
1919
#include "qemu/osdep.h"
2020
#include "qemu/bitops.h"
21+
#include "exec/gdbstub.h"
22+
2123
#include <sys/ucontext.h>
2224
#include <sys/resource.h>
2325

semihosting/arm-compat-semi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
#include "semihosting/console.h"
3838
#include "semihosting/common-semi.h"
3939
#include "qemu/timer.h"
40+
#include "exec/gdbstub.h"
4041
#ifdef CONFIG_USER_ONLY
4142
#include "qemu.h"
4243

4344
#define COMMON_SEMI_HEAP_SIZE (128 * 1024 * 1024)
4445
#else
45-
#include "exec/gdbstub.h"
4646
#include "qemu/cutils.h"
4747
#ifdef TARGET_ARM
4848
#include "hw/arm/boot.h"

target/m68k/m68k-semi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
#include "qemu/osdep.h"
2121

2222
#include "cpu.h"
23+
#include "exec/gdbstub.h"
2324
#if defined(CONFIG_USER_ONLY)
2425
#include "qemu.h"
2526
#define SEMIHOSTING_HEAP_SIZE (128 * 1024 * 1024)
2627
#else
27-
#include "exec/gdbstub.h"
2828
#include "exec/softmmu-semi.h"
2929
#include "hw/boards.h"
3030
#endif

target/nios2/nios2-semi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
#include "qemu/osdep.h"
2525

2626
#include "cpu.h"
27+
#include "exec/gdbstub.h"
2728
#if defined(CONFIG_USER_ONLY)
2829
#include "qemu.h"
2930
#else
3031
#include "qemu-common.h"
31-
#include "exec/gdbstub.h"
3232
#include "exec/softmmu-semi.h"
3333
#endif
3434
#include "qemu/log.h"

0 commit comments

Comments
 (0)