]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD regtest: setcontext only reads the context
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 14 Apr 2024 13:31:22 +0000 (15:31 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 14 Apr 2024 13:32:10 +0000 (15:32 +0200)
coregrind/m_syswrap/syswrap-amd64-freebsd.c
coregrind/m_syswrap/syswrap-x86-freebsd.c

index 00c353ae417a7ed4f69b708eb17734f2c78871fa..c2dd3ce2763d1048f0134ef919dc9ae977202fdf 100644 (file)
@@ -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);
index 61803a37b8e9d684e26ae0b1088ce71f81f39786..bffc869043e464213450ecfe1f71826ac8814981 100644 (file)
@@ -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);