x86/gdbstub: Clean up includes
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 20 Apr 2022 12:48:05 +0000 (13:48 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 22 Apr 2022 19:39:34 +0000 (20:39 +0100)
commit30122012db246c3e05f7a3668e03f76141affd4c
treec36f9f9783bb9cb284859ba50f804b3fb479ca41
parent4de0f05fcf7d57c25aaef2f4aa064812b8628a72
x86/gdbstub: Clean up includes

common/gdbstub.c wants struct gdb_context but only gets it transitively
through asm/debugger.h.  None of */gdbstub.c should include asm/debugger.h so
include xen/gdbstub.h instead.

Forward declare struct cpu_user_regs in xen/gdbstub.h so it doesn't depend on
the include order to compile.

x86/setup.c doesn't need xen/gdbstub.h at all, so drop it.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/gdbstub.c
xen/arch/x86/setup.c
xen/arch/x86/x86_64/gdbstub.c
xen/common/gdbstub.c
xen/include/xen/gdbstub.h