]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: Fix doc comment in allow_aarch64_sme_tests
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Mon, 1 Dec 2025 21:45:33 +0000 (18:45 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Wed, 3 Dec 2025 22:26:52 +0000 (19:26 -0300)
The comment says that it returns 0 if the target supports SME and 1 if
it doesn't, but it actually does the opposite.  The code does the right
thing, so fix the comment.

gdb/testsuite/lib/gdb.exp

index 5d005f21be06a319667a111394852d7cd115618a..b502e0c7de3c7211378741da477bc68e1eebabf6 100644 (file)
@@ -5049,7 +5049,7 @@ proc aarch64_supports_sve_vl { length } {
 }
 
 # Run a test on the target to see if it supports Aarch64 SME extensions.
-# Return 0 if so, 1 if it does not.  Note this causes a restart of GDB.
+# Return 1 if so, 0 if it does not.  Note this causes a restart of GDB.
 
 gdb_caching_proc allow_aarch64_sme_tests {} {
     global srcdir subdir gdb_prompt inferior_exited_re