[compiler-rt] r326657 - Remove obsolete ptrace(2) operations from NetBSD

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 3 08:21:13 PST 2018


Author: kamil
Date: Sat Mar  3 08:21:13 2018
New Revision: 326657

URL: http://llvm.org/viewvc/llvm-project?rev=326657&view=rev
Log:
Remove obsolete ptrace(2) operations from NetBSD

PT_SET_SIGMASK and PT_GET_SIGMASK will be removed from NetBSD
without backward compat (it shortlived in a development branch).

Sponsored by <The NetBSD Foundation>

Modified:
    compiler-rt/trunk/include/sanitizer/netbsd_syscall_hooks.h
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_syscalls_netbsd.inc
    compiler-rt/trunk/utils/generate_netbsd_syscalls.awk

Modified: compiler-rt/trunk/include/sanitizer/netbsd_syscall_hooks.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/include/sanitizer/netbsd_syscall_hooks.h?rev=326657&r1=326656&r2=326657&view=diff
==============================================================================
--- compiler-rt/trunk/include/sanitizer/netbsd_syscall_hooks.h (original)
+++ compiler-rt/trunk/include/sanitizer/netbsd_syscall_hooks.h Sat Mar  3 08:21:13 2018
@@ -21,7 +21,7 @@
 // DO NOT EDIT! THIS FILE HAS BEEN GENERATED!
 //
 // Generated with: generate_netbsd_syscalls.awk
-// Generated date: 2018-02-15
+// Generated date: 2018-03-03
 // Generated from: syscalls.master,v 1.291 2018/01/06 16:41:23 kamil Exp
 //
 //===----------------------------------------------------------------------===//

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc?rev=326657&r1=326656&r2=326657&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc Sat Mar  3 08:21:13 2018
@@ -258,8 +258,6 @@ int ptrace_pt_get_event_mask = PT_GET_EV
 int ptrace_pt_get_process_state = PT_GET_PROCESS_STATE;
 int ptrace_pt_set_siginfo = PT_SET_SIGINFO;
 int ptrace_pt_get_siginfo = PT_GET_SIGINFO;
-int ptrace_pt_set_sigmask = PT_SET_SIGMASK;
-int ptrace_pt_get_sigmask = PT_GET_SIGMASK;
 int ptrace_piod_read_d = PIOD_READ_D;
 int ptrace_piod_write_d = PIOD_WRITE_D;
 int ptrace_piod_read_i = PIOD_READ_I;

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h?rev=326657&r1=326656&r2=326657&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h Sat Mar  3 08:21:13 2018
@@ -384,8 +384,6 @@ extern int ptrace_pt_get_event_mask;
 extern int ptrace_pt_get_process_state;
 extern int ptrace_pt_set_siginfo;
 extern int ptrace_pt_get_siginfo;
-extern int ptrace_pt_set_sigmask;
-extern int ptrace_pt_get_sigmask;
 extern int ptrace_piod_read_d;
 extern int ptrace_piod_write_d;
 extern int ptrace_piod_read_i;

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=326657&r1=326656&r2=326657&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 08:21:13 2018
@@ -43,7 +43,7 @@
 // DO NOT EDIT! THIS FILE HAS BEEN GENERATED!
 //
 // Generated with: generate_netbsd_syscalls.awk
-// Generated date: 2018-02-15
+// Generated date: 2018-03-03
 // Generated from: syscalls.master,v 1.291 2018/01/06 16:41:23 kamil Exp
 //
 //===----------------------------------------------------------------------===//
@@ -324,10 +324,6 @@ PRE_SYSCALL(ptrace)
     PRE_READ(addr_, struct_ptrace_ptrace_siginfo_struct_sz);
   } else if (req_ == ptrace_pt_get_siginfo) {
     PRE_WRITE(addr_, struct_ptrace_ptrace_siginfo_struct_sz);
-  } else if (req_ == ptrace_pt_set_sigmask) {
-    PRE_READ(addr_, sizeof(__sanitizer_sigset_t));
-  } else if (req_ == ptrace_pt_get_sigmask) {
-    PRE_WRITE(addr_, sizeof(__sanitizer_sigset_t));
   } else if (req_ == ptrace_pt_setregs) {
     PRE_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=326657&r1=326656&r2=326657&view=diff
==============================================================================
--- compiler-rt/trunk/utils/generate_netbsd_syscalls.awk (original)
+++ compiler-rt/trunk/utils/generate_netbsd_syscalls.awk Sat Mar  3 08:21:13 2018
@@ -718,10 +718,6 @@ function syscall_body(syscall, mode)
       pcmd("  PRE_READ(addr_, struct_ptrace_ptrace_siginfo_struct_sz);")
       pcmd("} else if (req_ == ptrace_pt_get_siginfo) {")
       pcmd("  PRE_WRITE(addr_, struct_ptrace_ptrace_siginfo_struct_sz);")
-      pcmd("} else if (req_ == ptrace_pt_set_sigmask) {")
-      pcmd("  PRE_READ(addr_, sizeof(__sanitizer_sigset_t));")
-      pcmd("} else if (req_ == ptrace_pt_get_sigmask) {")
-      pcmd("  PRE_WRITE(addr_, sizeof(__sanitizer_sigset_t));")
       pcmd("} else if (req_ == ptrace_pt_setregs) {")
       pcmd("  PRE_READ(addr_, struct_ptrace_reg_struct_sz);")
       pcmd("} else if (req_ == ptrace_pt_getregs) {")




More information about the llvm-commits mailing list