1 //===-- Procfs.h ---------------------------------------------- -*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // source/Plugins/Process/Linux/Procfs.h defines the symbols we need from
11 // sys/procfs.h on Android/Linux for all supported architectures.
13 #include <sys/ptrace.h>
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;
21 #define NT_FPREGSET NT_PRFPREG
23 #elif defined (__mips__)
25 #define NT_FPREGSET NT_PRFPREG
29 #include <sys/procfs.h>