fix backup includes for PTRACE_GET_THREAD_AREA on arm/arm64

<asm/ptrace-abi.h> doesn't exist in the arm sysroots, and <sys/ptrace.h>
defines PTRACE_GET_THREAD_AREA as an enum, not a #define:

  /* Get the thread pointer of a process.  */
  PTRACE_GET_THREAD_AREA = 22,

On aarch64, neither PT_GET_THREAD_AREA nor PTRACE_GET_THREAD_AREA are defined.

This changes the include trigger to check for !arm && !aarch64 as well as
defined(PTRACE_GET_THREAD_AREA) to catch the arm and aarch64 cases.

Change-Id: I9044d9f315cbb15011f397a06d03d4bec7396985
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1496448
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Adenilson Cavalcanti <cavalcantii@chromium.org>
Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#637905}
1 file changed