]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin syscall args: missing piece for layout
authorPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 10 Nov 2025 08:25:54 +0000 (09:25 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 10 Nov 2025 08:25:54 +0000 (09:25 +0100)
Getting the layout and PRE_REG_READX in the PRE wrappers should
now be correct for amd64.

coregrind/m_syswrap/priv_types_n_macros.h
memcheck/tests/darwin/scalar.stderr.exp

index 6da1cad31d3c63259734d866b8d295a24043073f..3cc0be8a442e1250566d843366fae03649346f2e 100644 (file)
@@ -491,7 +491,7 @@ static inline UWord getERR ( SyscallStatus* st ) {
 #  define PRA7(s,t,a) PSRAn(7,s,t,a)
 #  define PRA8(s,t,a) PSRAn(8,s,t,a)
 
-#elif defined(VGP_amd64_freebsd)
+#elif defined(VGP_amd64_freebsd) || defined(VGP_amd64_darwin)
    /* Up to 8 parameters, 6 in registers, 2 on the stack. */
    /* or 7 in registers and 3 on the stack */
 #  define PRA1(s,t,a) PRRAn(1,s,t,a)
@@ -531,7 +531,7 @@ static inline UWord getERR ( SyscallStatus* st ) {
 #  define PRA7(s,t,a) PSRAn(7,s,t,a)
 #  define PRA8(s,t,a) PSRAn(8,s,t,a)
 
-#elif defined(VGP_amd64_darwin) || defined(VGP_amd64_solaris)
+#elif defined(VGP_amd64_solaris)
    /* Up to 8 parameters, 6 in registers, 2 on the stack. */
 #  define PRA1(s,t,a) PRRAn(1,s,t,a)
 #  define PRA2(s,t,a) PRRAn(2,s,t,a)
index a3364136011ff10592b4a26d9d7b6fc5e95a35b6..b0fd9e4a345d7a479f712e18ea32a0405c5983e3 100644 (file)
@@ -1061,6 +1061,9 @@ Syscall param kevent_qos(eventlist) contains uninitialised byte(s)
 Syscall param kevent_qos(nevents) contains uninitialised byte(s)
    ...
 
+Syscall param kevent_qos(data_out) contains uninitialised byte(s)
+   ...
+
 Syscall param kevent_qos(data_available) contains uninitialised byte(s)
    ...