qemu-e2k/replay
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
..
meson.build replay: introduce info hmp/qmp command 2020-10-06 08:34:49 +02:00
replay-audio.c audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
replay-char.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
replay-debugging.c gdbstub: add reverse step support in replay mode 2020-10-06 08:34:49 +02:00
replay-events.c replay: flush rr queue before loading the vmstate 2020-10-06 08:34:49 +02:00
replay-input.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
replay-internal.c replay: implement fair mutex 2020-06-10 12:10:47 -04:00
replay-internal.h replay: flush rr queue before loading the vmstate 2020-10-06 08:34:49 +02:00
replay-net.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
replay-random.c replay: record and replay random number sources 2020-01-07 12:08:39 +01:00
replay-snapshot.c replay: rename step-related variables and functions 2019-08-20 17:26:22 +02:00
replay-time.c replay: rename step-related variables and functions 2019-08-20 17:26:22 +02:00
replay.c replay: introduce breakpoint at the specified step 2020-10-06 08:34:49 +02:00