forked from OSchip/llvm-project
[compiler-rt sanitizer] Use our own PTRACE_GETREGSET if it does not exist.
On RH66 does not support 'PTRACE_GETREGSET'. This change makes this part of compiler-rt build again on older os-es Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D91686
This commit is contained in:
parent
ce14ffa1bb
commit
8d33f08844
|
@ -490,6 +490,9 @@ typedef user_regs_struct regs_struct;
|
|||
#ifndef NT_X86_XSTATE
|
||||
#define NT_X86_XSTATE 0x202
|
||||
#endif
|
||||
#ifndef PTRACE_GETREGSET
|
||||
#define PTRACE_GETREGSET 0x4204
|
||||
#endif
|
||||
// Compiler may use FP registers to store pointers.
|
||||
static constexpr uptr kExtraRegs[] = {NT_X86_XSTATE, NT_FPREGSET};
|
||||
|
||||
|
|
Loading…
Reference in New Issue