From: Roland McGrath Date: Tue, 7 Jun 2005 23:22:08 +0000 (+0000) Subject: revert debugging code X-Git-Tag: v4.5.18~366 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca85b97c9cea63db45e59a345218b902936b693d;p=strace revert debugging code --- diff --git a/util.c b/util.c index 4f2dd5e4..3c070750 100644 --- a/util.c +++ b/util.c @@ -1372,16 +1372,7 @@ typedef int arg_setup_state; static int set_arg0 (struct tcb *tcp, void *cookie, long val) { - long oldval,newval; - if (get_arg0(tcp, cookie, &oldval) < 0) - abort (); - if (ptrace (PTRACE_POKEUSER, tcp->pid, (char*)arg0_offset, val) < 0) - return -1; - if (get_arg0(tcp, cookie, &newval) < 0) - abort (); - fprintf(stderr, "XXX old %lx set %lx new %lx\n", - oldval,val,newval); - return 0; + return ptrace (PTRACE_POKEUSER, tcp->pid, (char*)arg0_offset, val); } static int