gdbstub: Avoid including 'cpu.h' in 'gdbstub/helpers.h'
We only need the "exec/tswap.h" and "cpu-param.h" headers. Only include "cpu.h" in the target gdbstub.c source files. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240418192525.97451-20-philmd@linaro.org>
This commit is contained in:
parent
94326e4f21
commit
0654c79416
@ -16,7 +16,8 @@
|
||||
#error "gdbstub helpers should only be included by target specific code"
|
||||
#endif
|
||||
|
||||
#include "cpu.h"
|
||||
#include "exec/tswap.h"
|
||||
#include "cpu-param.h"
|
||||
|
||||
/*
|
||||
* The GDB remote protocol transfers values in target byte order. As
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "gdbstub/helpers.h"
|
||||
#include "cpu.h"
|
||||
|
||||
int avr_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n)
|
||||
{
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "gdbstub/helpers.h"
|
||||
#include "cpu.h"
|
||||
|
||||
|
||||
#define LCX_REGNUM 32
|
||||
|
Loading…
Reference in New Issue
Block a user