From a86696ba6417eeebc92d8ee232d626d97bc8a048 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 12 Feb 2013 16:07:54 +0100 Subject: [PATCH] Remove hacks for old kernels for architectures which require new kernels * util.c (change_syscall): For MICROBLAZE, replace code with dummy "return 0" and a comment explaining why that is ok for this architecture. Signed-off-by: Denys Vlasenko --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index fa596041..f699cb22 100644 --- a/util.c +++ b/util.c @@ -1293,8 +1293,8 @@ change_syscall(struct tcb *tcp, arg_setup_state *state, int new) /* Tilera CPUs are only supported since about linux-2.6.34 */ return 0; #elif defined(MICROBLAZE) - if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_GPR(0)), new) < 0) - return -1; + /* setbpt/clearbpt never used: */ + /* microblaze is only supported since about linux-2.6.30 */ return 0; #else #warning Do not know how to handle change_syscall for this architecture -- 2.50.1