}
#else
+// Ensure the file compiles even if the syscall nr is not defined.
+#ifndef __NR_mprotect
+#define __NR_mprotect 0
+#endif
UWord do_syscall_WRK (UWord syscall_no,
UWord a1, UWord a2, UWord a3,
UWord a4, UWord a5, UWord a6
expecting a leak
1,000 bytes in 1 blocks are definitely lost in loss record ... of ...
at 0x........: malloc (vg_replace_malloc.c:...)
- by 0x........: f (leak-segv-jmp.c:167)
- by 0x........: main (leak-segv-jmp.c:214)
+ by 0x........: f (leak-segv-jmp.c:171)
+ by 0x........: main (leak-segv-jmp.c:218)
LEAK SUMMARY:
definitely lost: 1,000 bytes in 1 blocks
expecting a leak again
1,000 bytes in 1 blocks are definitely lost in loss record ... of ...
at 0x........: malloc (vg_replace_malloc.c:...)
- by 0x........: f (leak-segv-jmp.c:167)
- by 0x........: main (leak-segv-jmp.c:214)
+ by 0x........: f (leak-segv-jmp.c:171)
+ by 0x........: main (leak-segv-jmp.c:218)
LEAK SUMMARY:
definitely lost: 1,000 bytes in 1 blocks