Use require is_aarch32_target
authorTom Tromey <tom@tromey.com>
Wed, 14 Dec 2022 16:48:09 +0000 (09:48 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 13 Jan 2023 20:18:56 +0000 (13:18 -0700)
This changes some tests to use "require is_aarch32_target".

gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp
gdb/testsuite/gdb.arch/arm-disp-step.exp
gdb/testsuite/gdb.arch/arm-single-step-kernel-helper.exp
gdb/testsuite/gdb.arch/pr25124.exp
gdb/testsuite/gdb.arch/thumb-bx-pc.exp
gdb/testsuite/gdb.arch/thumb-prologue.exp
gdb/testsuite/gdb.arch/thumb-singlestep.exp

index dff9b115ac9b387a55ccde007d1d77b3be1b3b1d..f2de30031a54e6cadbfd7bc497783be0728413f9 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if { ![is_aarch32_target] } {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require is_aarch32_target
 
 standard_testfile
 
index 2917e9fd12f938708fde725dfe619d6db4ccd24d..e9106cf17b7b35c8e94f6bfefa98e0373668ba76 100644 (file)
 
 # Test arm displaced stepping.
 
-if {![is_aarch32_target]} {
-    verbose "Skipping arm displaced stepping tests."
-    return
-}
+require is_aarch32_target
 
 standard_testfile .S
 
index 37f0790b65fa8622c68ea29b95068855de889937..af33ac61b371309b0c25378c342bfa64efbdbcad 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if { ![is_aarch32_target] } {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require is_aarch32_target
 
 standard_testfile
 
index 6cc7ec41220697d226770851c3a18e0d88e0d010..45033771d7985e147cf15dce6d1d6d485bd0a320 100644 (file)
 # Test proper disassembling of ARM thumb instructions when reloading a symbol
 # file.
 
-if {![is_aarch32_target]} {
-    verbose "Skipping ARM tests."
-    return
-}
+require is_aarch32_target
 
 standard_testfile .S
 
index ae08e9e3a87cba316d56b2f1ee0bb8003f813c0a..9a46f11b89a6942ad0eb8c3bfe9506c84b4178b6 100644 (file)
 
 # Test PC adjustment from Thumb-mode "bx pc" instruction.
 
-if {![is_aarch32_target]} {
-    verbose "Skipping ARM tests."
-    return
-}
+require is_aarch32_target
 
 set testfile "thumb-bx-pc"
 set srcfile ${testfile}.S
index 095c9d58de711b3ed3e9cdec1b5abfeebcbd93a5..1d74a30905a801e858bb5d488187285ad5ade412 100644 (file)
 
 # Test ARM/Thumb prologue analyzer.
 
-if {![is_aarch32_target]} {
-    verbose "Skipping ARM prologue tests."
-    return
-}
+require is_aarch32_target
 
 standard_testfile
 
index 375dade3d72924786f2d8cde279fd0930fd26d6e..2d4e28dd31a0cc9967562d3a1eac58471f627866 100644 (file)
 
 # Test single-stepping into incorrectly marked Thumb routine
 
-if {![is_aarch32_target]} {
-    verbose "Skipping ARM tests."
-    return
-}
+require is_aarch32_target
 
 set testfile "thumb-singlestep"
 set srcfile ${testfile}.S