(root)/
strace-6.5/
src/
disable_ptrace_getregset.c
       1  /*
       2   * A helper that executes the specified program
       3   * with the ptrace PTRACE_GETREGSET or PTRACE_GETREGS disabled.
       4   *
       5   * Copyright (c) 2021 The strace developers.
       6   * All rights reserved.
       7   *
       8   * SPDX-License-Identifier: GPL-2.0-or-later
       9   */
      10  
      11  #include "defs.h"
      12  #define static
      13  #include "getregs_old.h"
      14  #undef static
      15  #undef DISABLE_PTRACE_REQUEST
      16  #ifdef HAVE_GETREGS_OLD
      17  # if defined __x86_64__
      18  #  define DISABLE_PTRACE_REQUEST PTRACE_GETREGSET
      19  # endif
      20  #endif
      21  #define DEFAULT_PROGRAM_INVOCATION_NAME	"disable_ptrace_getregset"
      22  #include "disable_ptrace_request.c"