aboutsummaryrefslogtreecommitdiff
path: root/libsanitizer/include
diff options
context:
space:
mode:
authorMax Ostapenko <m.ostapenko@partner.samsung.com>2015-11-24 10:44:39 +0200
committerMaxim Ostapenko <chefmax@gcc.gnu.org>2015-11-24 10:44:39 +0200
commit664dd3cfbd562086f377e0ab469ca21e332dd933 (patch)
tree17320b3fcab97f144aa7ba0bb2717c0f41cd400c /libsanitizer/include
parenteae6758d2b3d30b4f431b063ba98183fdac344a6 (diff)
downloadgcc-664dd3cfbd562086f377e0ab469ca21e332dd933.zip
gcc-664dd3cfbd562086f377e0ab469ca21e332dd933.tar.gz
gcc-664dd3cfbd562086f377e0ab469ca21e332dd933.tar.bz2
Fix libsanitizer build with old kernel headers on ARM after r230739.
libsanitizer/ * include/system/linux/asm/ptrace.h: New header. From-SVN: r230790
Diffstat (limited to 'libsanitizer/include')
-rw-r--r--libsanitizer/include/system/linux/asm/ptrace.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libsanitizer/include/system/linux/asm/ptrace.h b/libsanitizer/include/system/linux/asm/ptrace.h
new file mode 100644
index 0000000..d4249fe
--- /dev/null
+++ b/libsanitizer/include/system/linux/asm/ptrace.h
@@ -0,0 +1,7 @@
+#include_next <linux/asm/ptrace.h>
+/* ARM_VFPREGS_SIZE has been added in 3.0 */
+#if defined(__arm__) && !defined(ARM_VFPREGS_SIZE)
+/* The size of the user-visible VFP state as seen by PTRACE_GET/SETVFPREGS
+ and core dumps. */
+#define ARM_VFPREGS_SIZE ( 32 * 8 /*fpregs*/ + 4 /*fpscr*/ )
+#endif