diff options
author | Pavel Dovgalyuk | 2020-10-03 19:13:43 +0200 |
---|---|---|
committer | Paolo Bonzini | 2020-10-06 08:34:49 +0200 |
commit | fda8458bd3a9cb3108ba2f09921b6e3eee0d1bf3 (patch) | |
tree | 4b7b6c3338cebb15cd8d1246a2e5a550de3320c2 /accel/tcg | |
parent | replay: flush rr queue before loading the vmstate (diff) | |
download | qemu-fda8458bd3a9cb3108ba2f09921b6e3eee0d1bf3.tar.gz qemu-fda8458bd3a9cb3108ba2f09921b6e3eee0d1bf3.tar.xz qemu-fda8458bd3a9cb3108ba2f09921b6e3eee0d1bf3.zip |
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>
Diffstat (limited to 'accel/tcg')
-rw-r--r-- | accel/tcg/translator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c index 603d17ff83..fb1e19c585 100644 --- a/accel/tcg/translator.c +++ b/accel/tcg/translator.c @@ -17,6 +17,7 @@ #include "exec/log.h" #include "exec/translator.h" #include "exec/plugin-gen.h" +#include "sysemu/replay.h" /* Pairs with tcg_clear_temp_count. To be called by #TranslatorOps.{translate_insn,tb_stop} if |