From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [pushed] gdb/aarch64: fix assignment in SELF_CHECK in aarch64_linux_ltag_tests
Date: Mon, 19 Oct 2026 10:35:48 -0400 [thread overview]
Message-ID: <20261019143549.218976-1-simon.marchi@efficios.com> (raw)
This test uses `=`, where it meant to use `==`. Fix this, and add
parentheses around the expected value, since `==` has higher precedence
than `|`.
Change-Id: I027a6ef7e11c0aa2c607d45dea3e28526b18d328
---
gdb/aarch64-linux-tdep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
index a9cf6e3127fe..77c2679042c3 100644
--- a/gdb/aarch64-linux-tdep.c
+++ b/gdb/aarch64-linux-tdep.c
@@ -3328,7 +3328,7 @@ aarch64_linux_ltag_tests (void)
SELF_CHECK (aarch64_mte_get_ltag (addr) == (i & 0xf));
addr = aarch64_mte_set_ltag (0xdeadbeef, i);
- SELF_CHECK (addr = ((CORE_ADDR) (i & 0xf) << 56) | 0xdeadbeef);
+ SELF_CHECK (addr == (((CORE_ADDR) (i & 0xf) << 56) | 0xdeadbeef));
}
}
base-commit: 62578cc97be8ccbfe78cdee42f4ff20dc50ea62b
--
2.56.0
reply other threads:[~2026-10-19 14: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=20261019143549.218976-1-simon.marchi@efficios.com \
--to=simon.marchi@efficios.com \
--cc=gdb-patches@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: link
Be 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