From bfd60e344c8001910825a358ad674003738ebb6b Mon Sep 17 00:00:00 2001 From: Alan Hayward Date: Fri, 22 Jun 2018 10:26:51 +0100 Subject: Fix up HAS_SVE_STATE macro Prevents build break on aarch64 Suse. 2018-06-22 Alan Hayward gdb/ * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &. --- gdb/nat/aarch64-sve-linux-ptrace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/nat') 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). */ -- cgit v1.1