From 4fe960e8f105c1c3c672a56f768bb65b2b8cc04e Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 26 Jan 2023 10:09:44 +0100 Subject: [gdb/testsuite] Add and use is_x86_64_m64_target Add new proc is_x86_64_m64_target and use it where appropriate. Tested on x86_64-linux. --- gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp | 5 +---- gdb/testsuite/gdb.python/py-linetable.exp | 5 ++--- gdb/testsuite/gdb.python/py-unwind.exp | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) (limited to 'gdb/testsuite/gdb.python') diff --git a/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp b/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp index d2c29af..2fab2bb 100644 --- a/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp +++ b/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp @@ -19,10 +19,7 @@ require allow_python_tests standard_testfile amd64-py-framefilter-invalidarg.S -if { ![istarget x86_64-*-* ] || ![is_lp64_target] } { - verbose "Skipping py-framefilter-invalidarg." - return -} +require is_x86_64_m64_target # We cannot use prepare_for_testing as we have to set the safe-patch # to check objfile and progspace printers. diff --git a/gdb/testsuite/gdb.python/py-linetable.exp b/gdb/testsuite/gdb.python/py-linetable.exp index d19516d..c43fb7f 100644 --- a/gdb/testsuite/gdb.python/py-linetable.exp +++ b/gdb/testsuite/gdb.python/py-linetable.exp @@ -22,9 +22,8 @@ if [info exists COMPILE] { # make check RUNTESTFLAGS="gdb.python/py-linetable.exp COMPILE=1" standard_testfile lappend opts debug optimize=-O2 -} elseif { ![istarget x86_64-*-* ] || ![is_lp64_target] } { - verbose "Skipping ${testfile}." - return +} else { + require is_x86_64_m64_target } if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } { diff --git a/gdb/testsuite/gdb.python/py-unwind.exp b/gdb/testsuite/gdb.python/py-unwind.exp index 0d81737..5bf9ae1 100644 --- a/gdb/testsuite/gdb.python/py-unwind.exp +++ b/gdb/testsuite/gdb.python/py-unwind.exp @@ -32,7 +32,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} "debug $fla } # This test runs on a specific platform. -if { ![istarget x86_64-*-* ] || ![is_lp64_target] } { continue } +require is_x86_64_m64_target # The following tests require execution. -- cgit v1.1