2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
* process.c (change_syscall): Add ARM support.
* syscall.c (get_scno): Handle ARM EABI.
Fixes Debian#360152.
diff --git a/process.c b/process.c
index 0b34ae6..1e03ff5 100644
--- a/process.c
+++ b/process.c
@@ -694,6 +694,16 @@
0x100000 | new) < 0)
return -1;
return 0;
+#elif defined(ARM)
+ /* Some kernels support this, some (pre-2.6.16 or so) don't. */
+# ifndef PTRACE_SET_SYSCALL
+# define PTRACE_SET_SYSCALL 23
+# endif
+
+ if (ptrace (PTRACE_SET_SYSCALL, tcp->pid, 0, new) != 0)
+ return -1;
+
+ return 0;
#else
#warning Do not know how to handle change_syscall for this architecture
#endif /* architecture */