]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - source/Plugins/Process/Linux/Procfs.h
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / source / Plugins / Process / Linux / Procfs.h
1 //===-- Procfs.h ---------------------------------------------- -*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // source/Plugins/Process/Linux/Procfs.h defines the symbols we need from
11 // sys/procfs.h on Android/Linux for all supported architectures.
12
13 #include <sys/ptrace.h>
14
15 #ifdef __ANDROID__
16 #if defined (__arm64__) || defined (__aarch64__)
17 typedef unsigned long elf_greg_t;
18 typedef elf_greg_t elf_gregset_t[(sizeof (struct user_pt_regs) / sizeof(elf_greg_t))];
19 typedef struct user_fpsimd_state elf_fpregset_t;
20 #ifndef NT_FPREGSET
21     #define NT_FPREGSET NT_PRFPREG
22 #endif // NT_FPREGSET
23 #elif defined (__mips__)
24 #ifndef NT_FPREGSET
25     #define NT_FPREGSET NT_PRFPREG
26 #endif // NT_FPREGSET
27 #endif
28 #else  // __ANDROID__
29 #include <sys/procfs.h>
30 #endif // __ANDROID__
31