From patchwork Sat Dec 30 00:09:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dmitry V. Levin" X-Patchwork-Id: 25145 Received: (qmail 127281 invoked by alias); 30 Dec 2017 00:09:38 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 127268 invoked by uid 89); 30 Dec 2017 00:09:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*MI:sk:2017123 X-HELO: vmicros1.altlinux.org Date: Sat, 30 Dec 2017 03:09:34 +0300 From: "Dmitry V. Levin" To: libc-alpha@sourceware.org Subject: [PATCH 2/2] linux/aarch64: sync sys/ptrace.h with Linux 4.15 Message-ID: <20171230000934.GB11705@altlinux.org> Mail-Followup-To: libc-alpha@sourceware.org References: <20171230000806.GA11705@altlinux.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20171230000806.GA11705@altlinux.org> Remove compat-specific constants that were never exported by kernel headers under these names. Before linux commit v3.7-rc1~16^2~1 they were exported with COMPAT_ prefix, and after that commit they are not exported at all. To implement a proper multilib sys/ptrace.h on aarch64, arm/sys/ptrace.h has to be used instead of aarch64/sys/ptrace.h with all arm-specific definitions ifdef'ed. * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request): Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS, and PTRACE_SETHBPREGS. --- ChangeLog | 4 ++++ sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h b/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h index 111d54e..f02b167 100644 --- a/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h +++ b/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h @@ -78,18 +78,10 @@ enum __ptrace_request PTRACE_DETACH = 17, #define PT_DETACH PTRACE_DETACH - PTRACE_GET_THREAD_AREA = 22, - /* Continue and stop at the next entry to or return from syscall. */ PTRACE_SYSCALL = 24, #define PT_SYSCALL PTRACE_SYSCALL - /* Get all hardware breakpoint registers. */ - PTRACE_GETHBPREGS = 29, - - /* Set all hardware breakpoint registers. */ - PTRACE_SETHBPREGS = 30, - /* Set ptrace filter options. */ PTRACE_SETOPTIONS = 0x4200, #define PT_SETOPTIONS PTRACE_SETOPTIONS