aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2018-06-22 10:26:51 +0100
committerAlan Hayward <alan.hayward@arm.com>2018-06-22 12:01:18 +0100
commitbfd60e344c8001910825a358ad674003738ebb6b (patch)
treef7fb2610431d81c3c20fc0c1925958d939fbc6dd /gdb
parent8ea3acd6262f066f651b250826eb2c476de42dd2 (diff)
downloadgdb-bfd60e344c8001910825a358ad674003738ebb6b.zip
gdb-bfd60e344c8001910825a358ad674003738ebb6b.tar.gz
gdb-bfd60e344c8001910825a358ad674003738ebb6b.tar.bz2
Fix up HAS_SVE_STATE macro
Prevents build break on aarch64 Suse. 2018-06-22 Alan Hayward <alan.hayward@arm.com> gdb/ * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/nat/aarch64-sve-linux-ptrace.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1221a54..de9127f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2018-06-22 Alan Hayward <alan.hayward@arm.com>
+
+ * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
+
2018-06-21 Pedro Alves <palves@redhat.com>
* ada-lang.h (ada_get_task_number): Take a thread_info pointer
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). */