[committed][gdb/testsuite] Require is_amd64_regs_target in gdb.base/disasm-optim.exp
Tom de Vries
tdevries@suse.de
Tue Jan 12 13:34:37 GMT 2021
Hi,
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.
Committed to trunk.
Thanks,
- Tom
[gdb/testsuite] Require is_amd64_regs_target in gdb.base/disasm-optim.exp
gdb/testsuite/ChangeLog:
2021-01-12 Tom de Vries <tdevries@suse.de>
* gdb.base/disasm-optim.exp: Require is_amd64_regs_target.
---
gdb/testsuite/gdb.base/disasm-optim.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
}
More information about the Gdb-patches
mailing list