OSDN Git Service

tests/acceptance: add reverse debugging test
authorPavel Dovgalyuk <Pavel.Dovgaluk@gmail.com>
Sat, 3 Oct 2020 17:14:06 +0000 (20:14 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Oct 2020 06:34:50 +0000 (08:34 +0200)
commitbe52eca309788aa69dc10a8cae63e8a40de7a2f7
tree6a64c0308ce8831814428f61c641823f4486c8ec
parent56357d80fc713367ace8251d1350a490e204bc3a
tests/acceptance: add reverse debugging test

This is a test for GDB reverse debugging commands: reverse step and reverse continue.
Every test in this suite consists of two phases: record and replay.
Recording saves the execution of some instructions and makes an initial
VM snapshot to allow reverse execution.
Replay saves the order of the first instructions and then checks that they
are executed backwards in the correct order.
After that the execution is replayed to the end, and reverse continue
command is checked by setting several breakpoints, and asserting
that the execution is stopped at the last of them.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
--

v5:
 - disabled (as some other tests) when running on gitlab
   due to the unidentified timeout problem
Message-Id: <160174524678.12451.13258942849173670277.stgit@pasha-ThinkPad-X280>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
MAINTAINERS
tests/acceptance/reverse_debugging.py [new file with mode: 0644]