]> granicus.if.org Git - strace/commitdiff
2007-11-19 Andreas Schwab <schwab@suse.de>
authorRoland McGrath <roland@redhat.com>
Mon, 19 Nov 2007 22:11:45 +0000 (22:11 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 19 Nov 2007 22:11:45 +0000 (22:11 +0000)
* process.c (sys_ptrace) [IA64]: For PTRACE_PEEKDATA,
PTRACE_PEEKTEXT and PTRACE_PEEKUSER the data is returned directly.

process.c

index 2e192bc43b207c09c966917df33442600642ed0a..3fb37ece1b24c4fb80ae2cd28ed5383b87f63040 100644 (file)
--- a/process.c
+++ b/process.c
@@ -3058,10 +3058,12 @@ struct tcb *tcp;
                        tprintf("%#lx, ", tcp->u_arg[2]);
 #ifdef LINUX
                switch (tcp->u_arg[0]) {
+#ifndef IA64
                case PTRACE_PEEKDATA:
                case PTRACE_PEEKTEXT:
                case PTRACE_PEEKUSER:
                        break;
+#endif
                case PTRACE_CONT:
                case PTRACE_SINGLESTEP:
                case PTRACE_SYSCALL:
@@ -3077,8 +3079,12 @@ struct tcb *tcp;
                case PTRACE_PEEKDATA:
                case PTRACE_PEEKTEXT:
                case PTRACE_PEEKUSER:
+#ifdef IA64
+                       return RVAL_HEX;
+#else
                        printnum(tcp, tcp->u_arg[3], "%#lx");
                        break;
+#endif
                }
        }
 #endif /* LINUX */