1634 Commits

Author SHA1 Message Date
Nicholas Nethercote
122ce0fcb5 Remove dead function VG_(is_empty_arena)(). Also cleaned up the comment in
vg_demangler.c regarding its former use.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3339
2005-03-13 14:28:39 +00:00
Nicholas Nethercote
1de264b8f7 Comment-only change: use the right macro name.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3338
2005-03-13 06:30:42 +00:00
Nicholas Nethercote
f7cf78c703 Remove some dead macros.
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
2005-03-13 06:26:22 +00:00
Nicholas Nethercote
be852cb912 Make VG_(deliver_signals)() local.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3333
2005-03-13 06:00:47 +00:00
Nicholas Nethercote
fffcd89c49 Make malloc stats debug messages fit in 80 chars.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3331
2005-03-13 05:46:57 +00:00
Nicholas Nethercote
1aae2d2ef4 Use Vg_DebugMsg for all the things printed with -v, rather than Vg_UserMsg.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3330
2005-03-13 05:43:23 +00:00
Nicholas Nethercote
9f0cd67b21 Move the ExeContext stats message earlier, and print it when verbosity == 2,
rather than only when verbosity == 3, as they're only three lines.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3329
2005-03-13 05:38:25 +00:00
Nicholas Nethercote
42f4082beb comment-only wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3328
2005-03-13 05:27:57 +00:00
Nicholas Nethercote
29c357c20c Add missing printf argument.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3327
2005-03-13 05:12:31 +00:00
Nicholas Nethercote
7670b92833 For signals which are ignored by default (SIGCONT, CHLD, WINCH and URG),
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
2005-03-13 04:46:36 +00:00
Nicholas Nethercote
53649a189b Fix incorrect parsing of 'R' floating-point types.
MERGED FROM CVS HEAD



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3324
2005-03-13 04:44:20 +00:00
Nicholas Nethercote
f55e0fc12e When a multi-threaded program forks(), only the thread actually
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
2005-03-13 04:43:10 +00:00
Nicholas Nethercote
ba7d6423e2 Get more useful stack traces for internal errors/panics which happen
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
2005-03-13 04:39:28 +00:00
Nicholas Nethercote
bfa6142ae6 BUGFIX: process_cmd_line_options mangles options with the syntax
--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
2005-03-12 21:20:39 +00:00
Nicholas Nethercote
5a3535ea87 --num-callers default is now 12, so say that in the help.
Fix cmdline tests for match new --num-callers stuff.

MERGED FROM CVS HEAD



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3315
2005-03-12 20:59:29 +00:00
Julian Seward
fba62f7b20 Handle sys_vfork correctly. This fixes none/tests/async-sigs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3313
2005-03-12 20:45:56 +00:00
Julian Seward
94c4953bd8 Fix silly bug in munmap-implementation which caused massive leakage of
address space :-)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3311
2005-03-12 20:36:15 +00:00
Julian Seward
df13f9efcc Further un-break signal handling following the merge. It's really
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
2005-03-12 17:24:33 +00:00
Nicholas Nethercote
fc984f6a56 Update version to 3.0.0.CVS. Also change startup message to use this
version number again, rather than "SVN >= xxx".



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3306
2005-03-12 16:54:07 +00:00
Nicholas Nethercote
05fe123a9e Update copyright notice for 2005 on all relevant files. Don't bother trying
to be selective about it.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3303
2005-03-12 16:22:54 +00:00
Nicholas Nethercote
c0e91e1d8e Unbreak build (for me, gcc-4.0.0-pre -- nested functions can't be static).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3302
2005-03-12 15:39:54 +00:00
Julian Seward
f03dd1e385 Fix yielding properly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3301
2005-03-12 15:16:31 +00:00
Julian Seward
e60e34d51c Add missing comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3300
2005-03-12 15:16:07 +00:00
Julian Seward
3286b17553 No longer needed. Bye!
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3299
2005-03-12 14:40:38 +00:00
Julian Seward
493ecf52a4 Get rid of dead code and/or localise global functions as needed to
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
2005-03-12 13:32:06 +00:00
Nicholas Nethercote
85da1e0285 Add declaration for VG_(pre_clo_init) so we don't get warnings about it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3297
2005-03-12 06:23:46 +00:00
Nicholas Nethercote
7fb220d397 Remove dead code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3296
2005-03-12 06:04:07 +00:00
Nicholas Nethercote
6477952f31 Fix warnings identified after I attached a "format" attribute to
VALGRIND_INTERNAL_PRINTF.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3295
2005-03-12 06:01:45 +00:00
Nicholas Nethercote
29cc7c8a6c Remove dead functions: VG_(set_arg_and_bogus_ret), VG_(thread_initial_stack).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3294
2005-03-12 05:48:06 +00:00
Nicholas Nethercote
b0c0c9b9b8 Remove meaningless "vg_" prefixes from several variables.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3292
2005-03-12 05:37:54 +00:00
Nicholas Nethercote
4cfbb7f38c Remove dead function: VG_(do_pthread_sigmask_SCSS_upd).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3291
2005-03-12 05:35:01 +00:00
Nicholas Nethercote
56bce432c3 Get rid of the VALGRIND_INTERNAL_PRINTF_BACKTRACE request -- it's no longer
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
2005-03-12 05:32:28 +00:00
Nicholas Nethercote
3aee14f1a3 These files are no longer used, thank heavens.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3289
2005-03-12 05:10:40 +00:00
Nicholas Nethercote
d9d1e37683 Remove dead declarations.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3288
2005-03-12 05:04:30 +00:00
Nicholas Nethercote
e8e7ff1972 Make these vg_message.c functions local, they're no longer used outside the
module, as VG_(vmessage)() superseded them.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3287
2005-03-12 04:59:51 +00:00
Julian Seward
6ddcb7dc7d Detect and reject misaligned args for mmap. This makes
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
2005-03-11 14:12:38 +00:00
Julian Seward
46bc07d683 Handle Vex-supplied guest address mapping failures in the scheduler.
This makes none/tests/x86/badseg work.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3283
2005-03-11 13:19:47 +00:00
Julian Seward
5fee346604 Un-break --trace-children=yes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3282
2005-03-11 12:56:56 +00:00
Nicholas Nethercote
53643ee2a6 Fix a printf formatting inconsistency.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3280
2005-03-11 05:07:16 +00:00
Nicholas Nethercote
1b3b96a692 Fix false assertion in pattern matching.
MERGED FROM CVS HEAD


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3279
2005-03-11 05:05:50 +00:00
Nicholas Nethercote
0384583ee1 Fix Nulgrind's filter_stderr, and also fix the none/tests/cmdline2 test
(required fixing the usage msg slightly).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3278
2005-03-11 04:57:30 +00:00
Nicholas Nethercote
fdfc8ecaf7 Memset the whole ehdr structure (though this will only initialize the
padding).

MERGED FROM CVS HEAD


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3276
2005-03-11 04:47:23 +00:00
Nicholas Nethercote
73933817e2 Only try matching if the pointer could be resolved to a name.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3275
2005-03-11 04:46:09 +00:00
Nicholas Nethercote
6498475675 Fix VG_(calloc)() so it actually zeroes the entire memory area it allocates.
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
2005-03-11 04:44:10 +00:00
Julian Seward
ae8df0379b Fix PRE wrapper for sys_exit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3268
2005-03-11 02:47:32 +00:00
Julian Seward
d5b545da24 These files are no longer needed. Bye!
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3266
2005-03-11 00:22:10 +00:00
Julian Seward
0356d27ca6 Merge in changes from the 2.4.0 line. This basically brings in the
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
2005-03-10 23:59:00 +00:00
Julian Seward
7c542ccd39 Add new files resulting from merging in the 2.4.0 line. Many of these
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
2005-03-10 23:23:45 +00:00
Julian Seward
2e00d9e22a Fix enough syscall stuff so that simple X applications run (xfontsel,
xedit).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3261
2005-03-02 16:01:23 +00:00
Julian Seward
243713971c Minimal, horrible hacks needed to make vsyscalls work on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3259
2005-03-02 14:06:08 +00:00