summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2003-03-31 01:05:01 +0000
committerRoland McGrath <roland@redhat.com>2003-03-31 01:05:01 +0000
commit6b1d43ef29a23e5e0aba381f70e2f64e9cface30 (patch)
treea0dd580078cf7d893f214e6375b2c1676ea990a4 /syscall.c
parent75a99b7d558e9c4d44275f4bd8da2cb90f9be9ca (diff)
downloadstrace-6b1d43ef29a23e5e0aba381f70e2f64e9cface30.tar.gz
strace-6b1d43ef29a23e5e0aba381f70e2f64e9cface30.tar.bz2
strace-6b1d43ef29a23e5e0aba381f70e2f64e9cface30.tar.xz
2003-02-26 Stuart Menefy <stuart.menefy@st.com>
Various fixes for SuperH [SH]: * mem.c (sys_old_mmap): mmap() parameters passed in registers * net.c (sys_pipe), syscall.c (getrval2): pipe() results returned in registers * process.c (change_syscall): Fixed register which holds system call number * util.c (arg0_offset, arg1_offset): provide definition * Makefile.am: Added new files in linux/sh * linux/sh/syscallent.h: New file. * linux/sh/errnoent.h: New file. * linux/sh/ioctlent.h: New file. * linux/sh/signalent.h: New file.
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/syscall.c b/syscall.c
index 9814a43..c9c635a 100644
--- a/syscall.c
+++ b/syscall.c
@@ -2297,6 +2297,9 @@ struct tcb *tcp;
if (ptrace(PTRACE_GETREGS,tcp->pid,(char *)&regs,0) < 0)
return -1;
val = regs.r_o1;
+#elif defined(SH)
+ if (upeek(tcp->pid, 4*(REG_REG0+1), &val) < 0)
+ return -1;
#endif /* SPARC */
#endif /* LINUX */