From: Paul Floyd Date: Sun, 14 Apr 2024 13:31:22 +0000 (+0200) Subject: FreeBSD regtest: setcontext only reads the context X-Git-Tag: VALGRIND_3_23_0~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=702644994d4e4d47e39d60d4f179ac2bfda5adf9;p=thirdparty%2Fvalgrind.git FreeBSD regtest: setcontext only reads the context --- diff --git a/coregrind/m_syswrap/syswrap-amd64-freebsd.c b/coregrind/m_syswrap/syswrap-amd64-freebsd.c index 00c353ae4..c2dd3ce27 100644 --- a/coregrind/m_syswrap/syswrap-amd64-freebsd.c +++ b/coregrind/m_syswrap/syswrap-amd64-freebsd.c @@ -544,11 +544,10 @@ PRE(sys_setcontext) struct vki_ucontext *uc; PRINT("sys_setcontext ( %#" FMT_REGWORD "x )", ARG1); - PRE_REG_READ1(long, "setcontext", + PRE_REG_READ1(int, "setcontext", struct vki_ucontext *, ucp); PRE_MEM_READ( "setcontext(ucp)", ARG1, sizeof(struct vki_ucontext) ); - PRE_MEM_WRITE( "setcontext(ucp)", ARG1, sizeof(struct vki_ucontext) ); vg_assert(VG_(is_valid_tid)(tid)); vg_assert(tid >= 1 && tid < VG_N_THREADS); diff --git a/coregrind/m_syswrap/syswrap-x86-freebsd.c b/coregrind/m_syswrap/syswrap-x86-freebsd.c index 61803a37b..bffc86904 100644 --- a/coregrind/m_syswrap/syswrap-x86-freebsd.c +++ b/coregrind/m_syswrap/syswrap-x86-freebsd.c @@ -959,7 +959,6 @@ PRE(sys_setcontext) struct vki_ucontext *, ucp); PRE_MEM_READ( "setcontext(ucp)", ARG1, sizeof(struct vki_ucontext) ); - PRE_MEM_WRITE( "setcontext(ucp)", ARG1, sizeof(struct vki_ucontext) ); vg_assert(VG_(is_valid_tid)(tid)); vg_assert(tid >= 1 && tid < VG_N_THREADS);