Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [committed][gdb/testsuite] Require is_amd64_regs_target in gdb.base/disasm-optim.exp
@ 2021-01-12 13:34 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2021-01-12 13:34 UTC (permalink / raw)
  To: gdb-patches

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
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-12 13:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12 13:34 [committed][gdb/testsuite] Require is_amd64_regs_target in gdb.base/disasm-optim.exp Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox