projects
/
android-platform-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ee7031
)
Manual definition of struct user_pt_regs
author
Kai-Chung Yan
<seamlikok@gmail.com>
Fri, 20 Jan 2023 08:36:41 +0000
(08:36 +0000)
committer
Roger Shimizu
<rosh@debian.org>
Fri, 20 Jan 2023 08:36:41 +0000
(08:36 +0000)
Last-Update: 2016-08-24
Forwarded: not-needed
On ARM64, libunwind uses struct user_pt_regs which is not defined in
anywhere, which causes FTBFS.
Gbp-Pq: Topic external/libunwind
Gbp-Pq: Name user_pt_regs.patch
external/libunwind/src/ptrace/_UPT_access_reg.c
patch
|
blob
|
history
diff --git
a/external/libunwind/src/ptrace/_UPT_access_reg.c
b/external/libunwind/src/ptrace/_UPT_access_reg.c
index 1d35275a16dbd351db9afe3680ec88478a79095e..98f1546201185552d69335e3cf96f8acc51a40a2 100644
(file)
--- a/
external/libunwind/src/ptrace/_UPT_access_reg.c
+++ b/
external/libunwind/src/ptrace/_UPT_access_reg.c
@@
-26,6
+26,15
@@
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#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