public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Tom Tromey <tromey@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Use require is_aarch32_target Date: Fri, 13 Jan 2023 20:36:03 +0000 (GMT) [thread overview] Message-ID: <20230113203603.0E65D385417F@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=abdc86caeb1262573d11f747e0749279ed74102b commit abdc86caeb1262573d11f747e0749279ed74102b Author: Tom Tromey <tom@tromey.com> Date: Wed Dec 14 09:48:09 2022 -0700 Use require is_aarch32_target This changes some tests to use "require is_aarch32_target". Diff: --- gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp | 5 +---- gdb/testsuite/gdb.arch/arm-disp-step.exp | 5 +---- gdb/testsuite/gdb.arch/arm-single-step-kernel-helper.exp | 5 +---- gdb/testsuite/gdb.arch/pr25124.exp | 5 +---- gdb/testsuite/gdb.arch/thumb-bx-pc.exp | 5 +---- gdb/testsuite/gdb.arch/thumb-prologue.exp | 5 +---- gdb/testsuite/gdb.arch/thumb-singlestep.exp | 5 +---- 7 files changed, 7 insertions(+), 28 deletions(-) diff --git a/gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp b/gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp index dff9b115ac9..f2de30031a5 100644 --- a/gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp +++ b/gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp @@ -13,10 +13,7 @@ # 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 diff --git a/gdb/testsuite/gdb.arch/arm-disp-step.exp b/gdb/testsuite/gdb.arch/arm-disp-step.exp index 2917e9fd12f..e9106cf17b7 100644 --- a/gdb/testsuite/gdb.arch/arm-disp-step.exp +++ b/gdb/testsuite/gdb.arch/arm-disp-step.exp @@ -17,10 +17,7 @@ # Test arm displaced stepping. -if {![is_aarch32_target]} { - verbose "Skipping arm displaced stepping tests." - return -} +require is_aarch32_target standard_testfile .S diff --git a/gdb/testsuite/gdb.arch/arm-single-step-kernel-helper.exp b/gdb/testsuite/gdb.arch/arm-single-step-kernel-helper.exp index 37f0790b65f..af33ac61b37 100644 --- a/gdb/testsuite/gdb.arch/arm-single-step-kernel-helper.exp +++ b/gdb/testsuite/gdb.arch/arm-single-step-kernel-helper.exp @@ -13,10 +13,7 @@ # 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 diff --git a/gdb/testsuite/gdb.arch/pr25124.exp b/gdb/testsuite/gdb.arch/pr25124.exp index 6cc7ec41220..45033771d79 100644 --- a/gdb/testsuite/gdb.arch/pr25124.exp +++ b/gdb/testsuite/gdb.arch/pr25124.exp @@ -16,10 +16,7 @@ # 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 diff --git a/gdb/testsuite/gdb.arch/thumb-bx-pc.exp b/gdb/testsuite/gdb.arch/thumb-bx-pc.exp index ae08e9e3a87..9a46f11b89a 100644 --- a/gdb/testsuite/gdb.arch/thumb-bx-pc.exp +++ b/gdb/testsuite/gdb.arch/thumb-bx-pc.exp @@ -15,10 +15,7 @@ # 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 diff --git a/gdb/testsuite/gdb.arch/thumb-prologue.exp b/gdb/testsuite/gdb.arch/thumb-prologue.exp index 095c9d58de7..1d74a30905a 100644 --- a/gdb/testsuite/gdb.arch/thumb-prologue.exp +++ b/gdb/testsuite/gdb.arch/thumb-prologue.exp @@ -15,10 +15,7 @@ # Test ARM/Thumb prologue analyzer. -if {![is_aarch32_target]} { - verbose "Skipping ARM prologue tests." - return -} +require is_aarch32_target standard_testfile diff --git a/gdb/testsuite/gdb.arch/thumb-singlestep.exp b/gdb/testsuite/gdb.arch/thumb-singlestep.exp index 375dade3d72..2d4e28dd31a 100644 --- a/gdb/testsuite/gdb.arch/thumb-singlestep.exp +++ b/gdb/testsuite/gdb.arch/thumb-singlestep.exp @@ -15,10 +15,7 @@ # 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
reply other threads:[~2023-01-13 20:36 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230113203603.0E65D385417F@sourceware.org \ --to=tromey@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).