aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lldb/musl-include-ptrace.aarch64.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-29 01:16:47 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-29 11:12:52 +0200
commit122e6582d33dc55d00d5f3bee4100aeff01e1dbb (patch)
tree2b611eea17b505306a89b0b5ca2fef4ad7a02f8a /testing/lldb/musl-include-ptrace.aarch64.patch
parent34b5ddad1e811119825ca579c615f9b969ed8521 (diff)
downloadaports-122e6582d33dc55d00d5f3bee4100aeff01e1dbb.tar.bz2
aports-122e6582d33dc55d00d5f3bee4100aeff01e1dbb.tar.xz
testing/lldb: fix missing user_pt_regs and user_fpsimd_state on aarch64
Diffstat (limited to 'testing/lldb/musl-include-ptrace.aarch64.patch')
-rw-r--r--testing/lldb/musl-include-ptrace.aarch64.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/lldb/musl-include-ptrace.aarch64.patch b/testing/lldb/musl-include-ptrace.aarch64.patch
new file mode 100644
index 0000000000..f6ec2cc34b
--- /dev/null
+++ b/testing/lldb/musl-include-ptrace.aarch64.patch
@@ -0,0 +1,17 @@
+From: Jakub Jirutka <jakub@jirutka.cz>
+Date: Mon, 29 Aug 2016 00:18:00 +0200
+Subject: [PATCH] Fix compile error on aarch64
+
+NativeRegisterContextLinux_arm64 uses user_pt_regs and user_fpsimd_state
+which are defined in asm/ptrace.h.
+
+--- a/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
++++ b/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
+@@ -29,6 +29,7 @@
+
+ // System includes - They have to be included after framework includes because they define some
+ // macros which collide with variable names in other modules
++#include <asm/ptrace.h>
+ #include <sys/socket.h>
+ // NT_PRSTATUS and NT_FPREGSET definition
+ #include <elf.h>