]> granicus.if.org Git - strace/commitdiff
mips o32: print an error message when fetching of syscall arguments fails
authorEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 26 Oct 2018 00:01:43 +0000 (02:01 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 8 Jul 2019 21:04:00 +0000 (21:04 +0000)
... instead of failing silently.

* linux/mips/get_syscall_args.c (get_syscall_args): Print an error message
when umoven fails.

linux/mips/get_syscall_args.c

index fc843f49bd3a042e7a40b4c4036355cfb376a27c..09d47dea046b009ddbb22d17ec1ffcf4f14ea637 100644 (file)
@@ -25,6 +25,9 @@ arch_get_syscall_args(struct tcb *tcp)
            && umoven(tcp, mips_REG_SP + 4 * sizeof(tcp->u_arg[0]),
                      (n_args(tcp) - 4) * sizeof(tcp->u_arg[0]),
                      &tcp->u_arg[4]) < 0) {
+               error_msg("pid %d: cannot fetch 5th and 6th syscall arguments"
+                         " from tracee's memory", tcp->pid);
+
                /*
                 * Let's proceed with the first 4 arguments
                 * instead of reporting the failure.