File: user_pt_regs.patch

package info (click to toggle)
android-platform-external-libunwind 8.1.0%2Br23-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,264 kB
  • sloc: ansic: 34,068; sh: 6,931; asm: 1,910; makefile: 841; cpp: 137
file content (23 lines) | stat: -rw-r--r-- 560 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Kai-Chung Yan <seamlikok@gmail.com>
Last-Update: 2016-08-24
Description: Manual definition of struct user_pt_regs
 On ARM64, libunwind uses struct user_pt_regs which is not defined in
 anywhere, which causes FTBFS.
--- a/src/ptrace/_UPT_access_reg.c
+++ b/src/ptrace/_UPT_access_reg.c
@@ -26,6 +26,15 @@
 
 #include "_UPT_internal.h"
 
+#if defined(__aarch64__)
+  struct user_pt_regs {
+    __u64		regs[31];
+    __u64		sp;
+    __u64		pc;
+    __u64		pstate;
+  };
+#endif
+
 #if UNW_TARGET_IA64
 # include <elf.h>
 # ifdef HAVE_ASM_PTRACE_OFFSETS_H