I compiled strace 4.17 release for MIPS with Linux 2.6.35 (which the
README says is supported) and ran into an error in util.c:
__NR_process_vm_readv not defined (the syscall was added in 3.2).
Proposed patch attached.
Also, the 4.16 archive (at
https://sourceforge.net/projects/strace/files/latest/download/strace-4.16.tar.xz)
actually has a strace-4.17 tree in it.
David B. Robins
--- util.c.orig 2017-05-30 17:08:51.310510179 -0400
+++ util.c 2017-05-30 17:25:40.624754865 -0400
@@ -1116,7 +1116,12 @@
unsigned long riovcnt,
unsigned long flags)
{
+#ifdef __NR_process_vm_readv
return syscall(__NR_process_vm_readv, (long)pid, lvec, liovcnt, rvec, riovcnt, flags);
+#else
+ errno = ENOSYS;
+ return -1;
+#endif
}
# define process_vm_readv strace_process_vm_readv
#endif /* !HAVE_PROCESS_VM_READV */
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel