qemu-e2k/tests
Nicholas Piggin 76e9c1dfb9 tests/avocado: reverse-debugging cope with re-executing breakpoints
The reverse-debugging test creates a trace, then replays it and:

1. Steps the first 10 instructions and records their addresses.
2. Steps backward and verifies their addresses match.
3. Runs to (near) the end of the trace.
4. Sets breakpoints on the first 10 instructions.
5. Continues backward and verifies execution stops at the last
   breakpoint.

Step 5 breaks if any of the other 9 breakpoints are re-executed in the
trace after the 10th instruction is run, because those will be
unexpectedly hit when reverse continuing. This situation does arise
with the ppc pseries machine, the SLOF bios branches to its own entry
point.

Deal with this by switching steps 3 and 4, so the trace will be run to
the end *or* one of the breakpoints being re-executed. Step 5 then
reverses from there to the 10th instruction will not hit a breakpoint in
between, by definition.

Another step is added between steps 2 and 3, which steps forward over
the first 10 instructions and verifies their addresses, to support this.

Reviewed-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
2023-09-06 11:19:33 +02:00
..
avocado tests/avocado: reverse-debugging cope with re-executing breakpoints 2023-09-06 11:19:33 +02:00
bench migration/xbzrle: Use i386 host/cpuinfo.h 2023-05-23 16:51:18 -07:00
data tests: acpi: update expected blobs 2023-08-03 16:06:49 -04:00
decode decodetree: Add --output-null for meson testing 2023-05-31 19:56:42 -07:00
docker tests/docker: cleanup non-verbose output 2023-08-30 14:57:44 +01:00
fp tests: fp: remove unused submodules 2023-06-07 11:05:09 +02:00
guest-debug tests/tcg: clean-up gdb confirm/pagination settings 2023-08-30 14:57:50 +01:00
image-fuzzer
include
keys
lcitool tests/docker: add python3-tomli dependency to containers 2023-08-28 09:55:48 +02:00
migration tests/migration: Add -fno-stack-protector 2023-08-01 23:52:23 +02:00
multiboot
perf/block/qcow2
plugin plugins: fix memory leak while parsing options 2023-07-03 12:51:58 +01:00
qapi-schema qapi: Improve error message for description following section 2023-05-22 10:03:26 +02:00
qemu-iotests tests/qemu-iotests/197: add testcase for CoR with subclusters 2023-08-30 07:39:10 -04:00
qtest meson: test for CONFIG_TCG in config_all 2023-08-31 19:10:02 +02:00
rocker
tcg * Use precise selfmodifying code mode on s390x TCG 2023-09-05 09:22:13 -04:00
tsan
uefi-test-tools
unit qga: Add tests for --allow-rpcs option 2023-07-10 15:54:40 +03:00
vm tests/docker: add python3-tomli dependency to containers 2023-08-28 09:55:48 +02:00
vmstate-static-checker-data
dbus-vmstate-daemon.sh
Makefile.include Revert "tests: Use separate virtual environment for avocado" 2023-08-28 09:55:48 +02:00
meson.build tests/decode: Convert tests to meson 2023-05-30 10:55:39 -07:00
test-qht-par.c
vhost-user-bridge.c