paulfloyd / freebsd_valgrind

Git repo used to Upstream the FreeBSD Port of Valgrind
GNU General Public License v2.0
15 stars 4 forks source link

Improve syscall wrappers with FIELD macros #175

Open paulfloyd opened 2 years ago

paulfloyd commented 2 years ago

Sadly because the old port never tracked upstream closely a lot of stuff never got done on FreeBSD.

One of those is the use of PRE_FIELD_READ and POST_FIELD_WRITE in syscall wrappers. These allow better error messages (not only the syscall argument but also the field within the structure that the syscall argument points to).