]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix gdb.arch/amd64-disp-step-avx.exp on x86_64-freebsd
authorTom de Vries <tdevries@suse.de>
Wed, 2 Jul 2025 06:14:03 +0000 (08:14 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 2 Jul 2025 06:14:03 +0000 (08:14 +0200)
With test-case gdb.arch/amd64-disp-step-avx.exp on x86_64-freebsd I run into:
...
(gdb) continue
Continuing.

Breakpoint 3, test_rip_vex2_end () at amd64-disp-step-avx.S:35
35 nop
(gdb) FAIL: $exp: vex2: continue to test_rip_vex2_end
...

This happens while executing this bit of the test-case:
...
    # Turn "debug displaced" on to make sure a displaced step is actually
    # executed, not an inline step.
    gdb_test_no_output "set debug displaced on"

    gdb_test "continue" \
"Continuing.*prepared successfully .*Breakpoint.*, ${test_end_label} ().*" \
"continue to ${test_end_label}"
...

The problem is that on x86_64, displaced stepping is only supported for linux.
Consequently, the "prepared successfully" message is missing.

Fix this by requiring linux.

Approved-by: Kevin Buettner <kevinb@redhat.com>
Tested on x86_64-freebsd.

gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp

index 08d73d80f82ef5c76e3126f6743c36d719e27323..39779827313898fc0fa2a3d0ea9dc08a212048a3 100644 (file)
@@ -19,6 +19,7 @@
 # instructions.
 
 require is_x86_64_m64_target have_avx
+require {istarget *-*-linux*}
 
 standard_testfile .S