Add __NR_prctl.
MERGE TO STABLE
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1569 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_syscalls.c b/coregrind/vg_syscalls.c
index a93bc40..17cf980 100644
--- a/coregrind/vg_syscalls.c
+++ b/coregrind/vg_syscalls.c
@@ -3290,6 +3290,16 @@
break;
}
+# if defined(__NR_prctl)
+ case __NR_prctl: /* syscall 172 */
+ /* int prctl(int option, unsigned long arg2, unsigned long arg3,
+ unsigned long arg4, unsigned long arg5); */
+ MAYBE_PRINTF( "prctl ( %d, %d, %d, %d, %d )\n", arg1, arg2, arg3,
+ arg4, arg5 );
+ KERNEL_DO_SYSCALL(tid,res);
+ break;
+# endif
+
/*-------------------------- SIGNALS --------------------------*/
/* Normally set to 1, so that Valgrind's signal-simulation machinery