a48e7d9e52
gdbstub: move guest debug support check to ops
...
This removes the final hard coding of kvm_enabled() in gdbstub and
moves the check to an AccelOps.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Mads Ynddal <mads@ynddal.dk >
Message-Id: <20220929114231.583801-46-alex.bennee@linaro.org >
2022-10-06 11:53:41 +01:00
ae7467b1ac
gdbstub: move breakpoint logic to accel ops
...
As HW virtualization requires specific support to handle breakpoints
lets push out special casing out of the core gdbstub code and into
AccelOpsClass. This will make it easier to add other accelerator
support and reduces some of the stub shenanigans.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Mads Ynddal <mads@ynddal.dk >
Message-Id: <20220929114231.583801-45-alex.bennee@linaro.org >
2022-10-06 11:53:41 +01:00
3b7a93880a
gdbstub: move sstep flags probing into AccelClass
...
The support of single-stepping is very much dependent on support from
the accelerator we are using. To avoid special casing in gdbstub move
the probing out to an AccelClass function so future accelerators can
put their code there.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Mads Ynddal <mads@ynddal.dk >
Message-Id: <20220929114231.583801-44-alex.bennee@linaro.org >
2022-10-06 11:53:41 +01:00
842b42df2b
gdbstub: move into its own sub directory
...
This is in preparation of future refactoring as well as cleaning up
the source tree. Aside from the minor tweaks to meson and trace.h this
is pure code motion.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Message-Id: <20220929114231.583801-43-alex.bennee@linaro.org >
2022-10-06 11:53:41 +01:00