From: Petar Jovanovic Date: Mon, 3 Jun 2013 15:33:09 +0000 (+0000) Subject: mips64: add cases in wrappers for ptrace calls with GETREGSET X-Git-Tag: svn/VALGRIND_3_9_0~266 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c8aeab70e493ed4876c4fc4515ac1e8a56e9e1c;p=thirdparty%2Fvalgrind.git 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. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13418 --- diff --git a/coregrind/m_syswrap/syswrap-mips64-linux.c b/coregrind/m_syswrap/syswrap-mips64-linux.c index d72e4de149..2c1c47d8e7 100644 --- a/coregrind/m_syswrap/syswrap-mips64-linux.c +++ b/coregrind/m_syswrap/syswrap-mips64-linux.c @@ -445,6 +445,9 @@ PRE(sys_ptrace) 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 @@ POST(sys_ptrace) 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; }