Move others that are only used in one file, out of core.h into that file.
Remove the "VG_" prefixes while doing it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3337
don't set a signal handler unless the client has. This prevents syscalls
from being spuriously interrupted if one if these signals is received.
MERGED FROM CVS HEAD
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3325
calling fork() appears in the child. The child Valgrind will inherit a
VG_(threads) array which still describes the other threads. The code in
vg_scheduler:sched_fork_cleanup is responsible for doing this, but it was
only "killing" the other threads by setting their statuses to VgTs_Empty.
This was causing confusion if the child later created other threads
and found partially initialized threads structures. This change
makes sched_fork_cleanup fully reinitialize the other thread slots
in VG_(threads).
MERGED FROM CVS HEAD
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3323
during the exit cleanup. Also, don't report stack growth failures if
the fault is actually way above the stack.
MERGED FROM CVS HEAD
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3322
--TOOLNAME:option=foo. If you use --trace-children=yes, the child
Valgrinds are passed the mangled options and fail as a result.
This patch makes sure that process_cmd_line_options makes a copy of
the option before mangling it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3318
scandalous how difficult it is to figure out what code messes with
what global state, and generally how stuff is supposed to work.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3307
avoid warnings from -fwarn-missing-prototypes. vg_replace_malloc.c
has not been done yet though.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3298
used.
And move VALGRIND_INTERNAL_PRINTF() out of core.h into vg_replace_malloc.c,
which is the only place it's used now. Also made it print it's message with
Vg_DebugMsg rather than Vg_UserMsg, which makes more sense, since it's used
for --trace-malloc which is debugging-style info.
Improved some comments about this stuff too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3290
none/tests/map_unaligned work. The PRE handlers for sys_mmap and
sys_old_mmap are more convoluted than I would like, and might benefit
from a rewrite.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3284
Also rename the variables involve to lessen the chance of such confusion
occurring again.
MERGED FROM CVS HEAD
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3274
overhaul of the thread support. Many things are now probably broken,
but at least with --tool=none, simple and not-so-simple threaded and
non-thread programs work.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3265
seem to be simply duplication of the x86 instruction set tests into
the addrcheck and helgrind trees. I'm not sure what this duplication
achieves.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3264