qemu-patch-raspberry4/accel
Pavel Dovgalyuk fda8458bd3 gdbstub: add reverse step support in replay mode
GDB remote protocol supports two reverse debugging commands:
reverse step and reverse continue.
This patch adds support of the first one to the gdbstub.
Reverse step is intended to step one instruction in the backwards
direction. This is not possible in regular execution.
But replayed execution is deterministic, therefore we can load one of
the prior snapshots and proceed to the desired step. It is equivalent
to stepping one instruction back.
There should be at least one snapshot preceding the debugged part of
the replay log.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

--

v4 changes:
 - inverted condition in cpu_handle_guest_debug (suggested by Alex Bennée)
Message-Id: <160174522341.12451.1498758422543765253.stgit@pasha-ThinkPad-X280>

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-10-06 08:34:49 +02:00
..
kvm kvm: kvm_init_vcpu take Error pointer 2020-10-05 16:41:22 +02:00
qtest cpus: extract out qtest-specific code to accel/qtest 2020-10-05 16:41:22 +02:00
stubs kvm: remove kvm specific functions from global includes 2020-10-05 16:41:22 +02:00
tcg gdbstub: add reverse step support in replay mode 2020-10-06 08:34:49 +02:00
xen meson: accel 2020-08-21 06:30:36 -04:00
accel.c accel: Introduce the current_accel() wrapper 2020-01-24 20:59:11 +01:00
Kconfig accel/Kconfig: Add the TCG selector 2020-07-10 18:02:21 -04:00
meson.build cpus: extract out qtest-specific code to accel/qtest 2020-10-05 16:41:22 +02:00