|
From: <sv...@va...> - 2013-06-03 15:33:27
|
petarj 2013-06-03 16:33:09 +0100 (Mon, 03 Jun 2013)
New Revision: 13418
Log:
mips64: add cases in wrappers for ptrace calls with GETREGSET
Add cases for PTRACE_GETREGSET in PRE(sys_ptrace) and POST(sys_ptrace).
This fixes memcheck/tests/linux/getregset on MIPS64 platforms with kernel
that supports ptrace call with PTRACE_GETREGSET.
Modified files:
trunk/coregrind/m_syswrap/syswrap-mips64-linux.c
Modified: trunk/coregrind/m_syswrap/syswrap-mips64-linux.c (+6 -0)
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-mips64-linux.c 2013-06-02 19:08:04 +01:00 (rev 13417)
+++ trunk/coregrind/m_syswrap/syswrap-mips64-linux.c 2013-06-03 16:33:09 +01:00 (rev 13418)
@@ -445,6 +445,9 @@
case VKI_PTRACE_SETSIGINFO:
PRE_MEM_READ("ptrace(setsiginfo)", ARG4, sizeof(vki_siginfo_t));
break;
+ case VKI_PTRACE_GETREGSET:
+ ML_(linux_PRE_getregset)(tid, ARG3, ARG4);
+ break;
default:
break;
}
@@ -464,6 +467,9 @@
case VKI_PTRACE_GETSIGINFO:
POST_MEM_WRITE (ARG4, sizeof(vki_siginfo_t));
break;
+ case VKI_PTRACE_GETREGSET:
+ ML_(linux_POST_getregset)(tid, ARG3, ARG4);
+ break;
default:
break;
}
|