[AArch64] Fix incorrectly-defined SVE macro
authorLuis Machado <luis.machado@linaro.org>
Mon, 10 Aug 2020 14:50:53 +0000 (11:50 -0300)
committerLuis Machado <luis.machado@linaro.org>
Mon, 10 Aug 2020 14:50:53 +0000 (11:50 -0300)
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.

gdb/ChangeLog
gdb/nat/aarch64-sve-linux-sigcontext.h

index e875b44cb1db4bc3ff3c5841ac7f7e91e589d89b..463847f328b812563df65889ba15afabc74c2d25 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2020-08-09  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * read.h (dwarf2_fetch_die_loc_sect_off,
index 94fb1eca9cd1242c597754e59039abe7ea5fe0cb..52c598260822beacb9d2b923dd3fc05e11e2b217 100644 (file)
@@ -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)
 
 /*
This page took 0.03617 seconds and 4 git commands to generate.