From 18bfb5057f2cee5079208cd70eb463892f5ff154 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 12 Jan 2021 14:34:06 +0100 Subject: [PATCH] [gdb/testsuite] Require is_amd64_regs_target in gdb.base/disasm-optim.exp When running test-case gdb.base/disasm-optim.exp with target board unix/-m32, we get: ... Running disasm-optim.exp ... gdb compile failed, disasm-optim.c: Assembler messages: disasm-optim.c:35: Error: bad register name `%rip)' disasm-optim.c:46: Error: bad register name `%rax)' disasm-optim.c:57: Error: bad register name `%rip)' === gdb Summary === # of untested testcases 1 ... Fix this by requiring is_amd64_regs_target instead of istarget "x86_64-*-linux*". Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2021-01-12 Tom de Vries * gdb.base/disasm-optim.exp: Require is_amd64_regs_target. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/disasm-optim.exp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0cae3181d80..7c24f66b914 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2021-01-12 Tom de Vries + + * gdb.base/disasm-optim.exp: Require is_amd64_regs_target. + 2021-01-12 Andrew Burgess * gdb.fortran/debug-expr.exp: Add new tests. diff --git a/gdb/testsuite/gdb.base/disasm-optim.exp b/gdb/testsuite/gdb.base/disasm-optim.exp index 9acbbe86f15..ebb0d1f35f0 100644 --- a/gdb/testsuite/gdb.base/disasm-optim.exp +++ b/gdb/testsuite/gdb.base/disasm-optim.exp @@ -15,7 +15,7 @@ # This test exercises disassemble /s with optimized and inlined code. -if { ![istarget "x86_64-*-linux*"] } { +if { ![is_amd64_regs_target] } { continue } -- 2.30.2