Blame SOURCES/valgrind-3.14.0-arm64-ptrace-traceme.patch

560544
commit 43fe4bc236d667257eeebfb4f6bcbe2b92aea455
560544
Author: Mark Wielaard <mark@klomp.org>
560544
Date:   Fri Dec 14 14:32:27 2018 +0100
560544
560544
    arm64: Fix PTRACE_TRACEME memcheck/tests/linux/getregset.vgtest testcase.
560544
    
560544
    The sys_ptrace post didn't mark the thread as being in traceme mode.
560544
    This occassionally would make the memcheck/tests/linux/getregset.vgtest
560544
    testcase fail. With this patch it reliably passes.
560544
560544
diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
560544
index 9ef54b4..650f5b9 100644
560544
--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
560544
+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
560544
@@ -499,6 +499,9 @@ PRE(sys_ptrace)
560544
 POST(sys_ptrace)
560544
 {
560544
    switch (ARG1) {
560544
+   case VKI_PTRACE_TRACEME:
560544
+         ML_(linux_POST_traceme)(tid);
560544
+         break;
560544
    case VKI_PTRACE_PEEKTEXT:
560544
    case VKI_PTRACE_PEEKDATA:
560544
    case VKI_PTRACE_PEEKUSR: