aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/nat')
-rw-r--r--gdb/nat/aarch64-sve-linux-ptrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/nat/aarch64-sve-linux-ptrace.h b/gdb/nat/aarch64-sve-linux-ptrace.h
index 5a7186b..029e753 100644
--- a/gdb/nat/aarch64-sve-linux-ptrace.h
+++ b/gdb/nat/aarch64-sve-linux-ptrace.h
@@ -32,7 +32,7 @@
/* Indicates whether a SVE ptrace header is followed by SVE registers or a
fpsimd structure. */
-#define HAS_SVE_STATE(header) ((header).flags && SVE_PT_REGS_SVE)
+#define HAS_SVE_STATE(header) ((header).flags & SVE_PT_REGS_SVE)
/* Read VQ for the given tid using ptrace. If SVE is not supported then zero
is returned (on a system that supports SVE, then VQ cannot be zero). */