From af3df3daa2f70256e85024da188c537d2b063961 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Fri, 26 Oct 2018 02:01:43 +0200 Subject: [PATCH] mips o32: print an error message when fetching of syscall arguments fails ... 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux/mips/get_syscall_args.c b/linux/mips/get_syscall_args.c index fc843f49..09d47dea 100644 --- a/linux/mips/get_syscall_args.c +++ b/linux/mips/get_syscall_args.c @@ -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. -- 2.40.0