[compiler-rt] r326663 - Remove more references to ptrace_pt_{g, s}et_sigmask

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 3 10:41:38 PST 2018


Author: kamil
Date: Sat Mar  3 10:41:38 2018
New Revision: 326663

URL: http://llvm.org/viewvc/llvm-project?rev=326663&view=rev
Log:
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 <The NetBSD Foundation>

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscalls_netbsd.inc
    compiler-rt/trunk/utils/generate_netbsd_syscalls.awk

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscalls_netbsd.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscalls_netbsd.inc?rev=326663&r1=326662&r2=326663&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscalls_netbsd.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscalls_netbsd.inc Sat Mar  3 10:41:38 2018
@@ -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) {

Modified: compiler-rt/trunk/utils/generate_netbsd_syscalls.awk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/utils/generate_netbsd_syscalls.awk?rev=326663&r1=326662&r2=326663&view=diff
==============================================================================
--- compiler-rt/trunk/utils/generate_netbsd_syscalls.awk (original)
+++ compiler-rt/trunk/utils/generate_netbsd_syscalls.awk Sat Mar  3 10:41:38 2018
@@ -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) {")




More information about the llvm-commits mailing list