Little updates to quiet down 'make regtest'. Oh, and a revamp of the syscall args checking so that Valgrind should be much more immune to segfaulting itself. corecheck/tests/as_mmap.stderr.exp | 2 corecheck/tests/fdleak_cmsg.c | 4 corecheck/tests/fdleak_cmsg.stderr.exp | 14 coregrind/core.h | 33 + coregrind/linux/syscalls.c | 105 ++- coregrind/vg_memory.c | 59 -- coregrind/vg_scheduler.c | 8 coregrind/vg_signals.c | 40 + coregrind/vg_symtab2.c | 11 coregrind/vg_syscalls.c | 904 +++++++++++++++++---------------- coregrind/vg_translate.c | 2 coregrind/x86-linux/syscalls.c | 48 + coregrind/x86/signal.c | 46 - glibc-2.3.supp | 71 ++ include/tool.h.base | 2 massif/ms_main.c | 1 memcheck/tests/scalar.c | 2 memcheck/tests/scalar.stderr.exp | 13 memcheck/tests/zeropage.stderr.exp | 3 memcheck/tests/zeropage.stdout.exp | 3 none/tests/cmdline1.stdout.exp | 1 none/tests/cmdline2.stdout.exp | 2 none/tests/exec-sigmask.c | 68 ++ none/tests/exec-sigmask.stderr.exp | 1 none/tests/exec-sigmask.stdout.exp | 1 none/tests/pth_blockedsig.c | 3 none/tests/yield.c | 36 - tests/toobig-allocs.c | 2 28 files changed, 852 insertions(+), 633 deletions(-) diff -puN corecheck/tests/as_mmap.stderr.exp~update-regtest corecheck/tests/as_mmap.stderr.exp --- valgrind/corecheck/tests/as_mmap.stderr.exp~update-regtest 2005-01-12 13:54:43.000000000 -0800 +++ valgrind-jeremy/corecheck/tests/as_mmap.stderr.exp 2005-01-12 13:54:43.000000000 -0800 @@ -1,7 +1,5 @@ 1 -Warning: client syscall mmap2 tried to modify addresses 0x........-0x........ -mmap @ 0x........ 2 3 4 diff -puN massif/ms_main.c~update-regtest massif/ms_main.c --- valgrind/massif/ms_main.c~update-regtest 2005-01-12 13:54:43.000000000 -0800 +++ valgrind-jeremy/massif/ms_main.c 2005-01-12 13:54:43.000000000 -0800 @@ -850,6 +850,7 @@ static UInt curr_census = 0; // Must return False so that all stacks are traversed static Bool count_stack_size( Addr stack_min, Addr stack_max, void *cp ) { + VG_(printf)("stack_max=%p stack_min=%p delta=%d\n", stack_max, stack_min, stack_max-stack_min); *(UInt *)cp += (stack_max - stack_min); return False; } diff -puN tests/toobig-allocs.c~update-regtest tests/toobig-allocs.c --- valgrind/tests/toobig-allocs.c~update-regtest 2005-01-12 13:54:43.000000000 -0800 +++ valgrind-jeremy/tests/toobig-allocs.c 2005-01-12 13:54:43.000000000 -0800 @@ -6,7 +6,7 @@ int main(void) { void *p; - int size = 2 * 1023 * 1024 * 1024; // just under 2^31 (2GB) + unsigned long size = 2ul * 1023ul * 1024ul * 1024ul; // just under 2^31 (4GB) fprintf(stderr, "Attempting too-big malloc()...\n"); p = malloc(size); // way too big! diff -puN none/tests/cmdline1.stdout.exp~update-regtest none/tests/cmdline1.stdout.exp --- valgrind/none/tests/cmdline1.stdout.exp~update-regtest 2005-01-12 13:54:43.000000000 -0800 +++ valgrind-jeremy/none/tests/cmdline1.stdout.exp 2005-01-12 13:54:43.000000000 -0800 @@ -14,7 +14,6 @@ usage: valgrind --tool= [optio uncommon user options for all Valgrind tools: --run-libc-freeres=no|yes free up glibc memory at exit? [yes] --weird-hacks=hack1,hack2,... recognised hacks: lax-ioctls [none] - --signal-polltime=