aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@linaro.org>2020-08-10 11:50:53 -0300
committerLuis Machado <luis.machado@linaro.org>2020-08-10 11:50:53 -0300
commitcc308722fba3741a26993afe029078571604c2bd (patch)
tree74338ece0c42b95e87e4d2dde0f208b79bcd5bff /gdb/nat
parent3eb651743e06fb360687a26be87bc6b710fc7066 (diff)
downloadgdb-cc308722fba3741a26993afe029078571604c2bd.zip
gdb-cc308722fba3741a26993afe029078571604c2bd.tar.gz
gdb-cc308722fba3741a26993afe029078571604c2bd.tar.bz2
[AArch64] Fix incorrectly-defined SVE macro
The kernel has fixed this here: https://lore.kernel.org/patchwork/patch/1029011/ We should do the same for GDB, which is still carrying an incorrect definition of the macro. As stated in the kernel patch thread, this doesn't actually change things because, luckily, the structs are of the same size. gdb/ChangeLog: 2020-08-10 Luis Machado <luis.machado@linaro.org> * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use struct user_sve_header instead of struct sve_context.
Diffstat (limited to 'gdb/nat')
-rw-r--r--gdb/nat/aarch64-sve-linux-sigcontext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/nat/aarch64-sve-linux-sigcontext.h b/gdb/nat/aarch64-sve-linux-sigcontext.h
index 94fb1ec..52c5982 100644
--- a/gdb/nat/aarch64-sve-linux-sigcontext.h
+++ b/gdb/nat/aarch64-sve-linux-sigcontext.h
@@ -166,7 +166,7 @@ struct user_sve_header {
/* Offset from the start of struct user_sve_header to the register data */
#define SVE_PT_REGS_OFFSET \
- ((sizeof(struct sve_context) + (SVE_VQ_BYTES - 1)) \
+ ((sizeof(struct user_sve_header) + (SVE_VQ_BYTES - 1)) \
/ SVE_VQ_BYTES * SVE_VQ_BYTES)
/*