From a51ccfd49f1710b7a42d5bf96fe2ef37b8b68f54 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Sat, 3 Mar 2018 18:41:38 +0000 Subject: [PATCH] Remove more references to ptrace_pt_{g,s}et_sigmask These operations are now obsolete on NetBSD and will be removed. No functional change for other OSes. Sponsored by llvm-svn: 326663 --- .../lib/sanitizer_common/sanitizer_syscalls_netbsd.inc | 4 ---- compiler-rt/utils/generate_netbsd_syscalls.awk | 4 ---- 2 files changed, 8 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_syscalls_netbsd.inc b/compiler-rt/lib/sanitizer_common/sanitizer_syscalls_netbsd.inc index dc21df5b83e6..4f766100813d 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_syscalls_netbsd.inc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_syscalls_netbsd.inc @@ -367,10 +367,6 @@ POST_SYSCALL(ptrace) POST_READ(addr_, struct_ptrace_ptrace_siginfo_struct_sz); } else if (req_ == ptrace_pt_get_siginfo) { POST_WRITE(addr_, struct_ptrace_ptrace_siginfo_struct_sz); - } else if (req_ == ptrace_pt_set_sigmask) { - POST_READ(addr_, sizeof(__sanitizer_sigset_t)); - } else if (req_ == ptrace_pt_get_sigmask) { - POST_WRITE(addr_, sizeof(__sanitizer_sigset_t)); } else if (req_ == ptrace_pt_setregs) { POST_READ(addr_, struct_ptrace_reg_struct_sz); } else if (req_ == ptrace_pt_getregs) { diff --git a/compiler-rt/utils/generate_netbsd_syscalls.awk b/compiler-rt/utils/generate_netbsd_syscalls.awk index 5c08ca3ef71b..5e08900a17ee 100755 --- a/compiler-rt/utils/generate_netbsd_syscalls.awk +++ b/compiler-rt/utils/generate_netbsd_syscalls.awk @@ -754,10 +754,6 @@ function syscall_body(syscall, mode) pcmd(" POST_READ(addr_, struct_ptrace_ptrace_siginfo_struct_sz);") pcmd(" } else if (req_ == ptrace_pt_get_siginfo) {") pcmd(" POST_WRITE(addr_, struct_ptrace_ptrace_siginfo_struct_sz);") - pcmd(" } else if (req_ == ptrace_pt_set_sigmask) {") - pcmd(" POST_READ(addr_, sizeof(__sanitizer_sigset_t));") - pcmd(" } else if (req_ == ptrace_pt_get_sigmask) {") - pcmd(" POST_WRITE(addr_, sizeof(__sanitizer_sigset_t));") pcmd(" } else if (req_ == ptrace_pt_setregs) {") pcmd(" POST_READ(addr_, struct_ptrace_reg_struct_sz);") pcmd(" } else if (req_ == ptrace_pt_getregs) {")