1724 Commits

Author SHA1 Message Date
Nicholas Nethercote
38ff4e69d1 Comment changes only: s/skin/tool/
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2555
2004-08-03 13:29:09 +00:00
Nicholas Nethercote
7bdbf7377f Factor out differences between VG_(system) and PRE(execve). Required moving
mash_colon_env() from vg_syscalls.c to vg_mylibc.c.  Saved 20 lines of code.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2554
2004-08-03 13:08:31 +00:00
Nicholas Nethercote
b960eb25f7 comment wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2553
2004-08-02 16:54:01 +00:00
Nicholas Nethercote
75a8dd5ba2 Removed cruft from vg_scheduler.c:
� things not used any more, eg. global variables
 - removed some things from vg_include.h, making them local -- functions,
   variables and macros
 - other minor clean-ups


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2552
2004-08-02 16:27:40 +00:00
Nicholas Nethercote
3ef40799ac Scheduler counts don't need to be in vg_include.h. Replace with a print
function.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2551
2004-08-02 15:27:22 +00:00
Nicholas Nethercote
033827c0fd whoops, forgot to remove these in the last commit
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2550
2004-08-02 15:19:55 +00:00
Nicholas Nethercote
f8aacadc2b sanity_*_count don't need to be in vg_include.h.
Also hide the reg-alloc counters, and replace with a printing function.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2549
2004-08-02 15:17:43 +00:00
Nicholas Nethercote
11f790685a Sanity counters don't need to be in vg_include.h.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2548
2004-08-02 15:07:57 +00:00
Nicholas Nethercote
16ae73470f Tweak to remove another global variable from vg_include.h
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2547
2004-08-02 13:15:26 +00:00
Nicholas Nethercote
c1804774f3 Make VG_(n_errs_found) local; replace globally with a 'get' function. Renamed
vg_n_errs_suppressed too.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2546
2004-08-02 12:36:01 +00:00
Nicholas Nethercote
bde70741c7 Make the Supp and Error types local to vg_errcontext.h; they don't need to be
global.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2545
2004-08-02 12:21:09 +00:00
Nicholas Nethercote
a48bf03eba Fold VG_(send_signal_to_thread)() into vg_scheduler.c, so it doesn't need to be
exported any more.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2544
2004-08-02 12:10:01 +00:00
Nicholas Nethercote
35ea93fb9e Factor out commonality between VG_(synth_fault*)().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2543
2004-08-01 23:06:22 +00:00
Nicholas Nethercote
8e9e99f943 Replaced three global variables in vg_include.h with a single global function;
much neater.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2542
2004-08-01 22:59:18 +00:00
Nicholas Nethercote
9a31e70a79 Cleaned up vg_include.h:
- removed various things that are no longer used
- made (module-)local some things that were global
- improved the formatting in places

Removed about 160 lines of code, and non-trivially reduced the number
of global entities.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2541
2004-08-01 22:36:40 +00:00
Nicholas Nethercote
877d4dd0bd Fix bug #86254 -- symtab sorting was going array in very obscure circumstances
due to a signed/unsigned int problem.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2540
2004-08-01 20:24:46 +00:00
Nicholas Nethercote
baa56adb18 Remove redundant duplicates of stuff in vg_kerneliface.h.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2539
2004-07-30 23:44:30 +00:00
Nicholas Nethercote
0aa2e82fd5 Removed unused VG_AR_CLIENT_STACKBASE_REDZONE_SZW.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2538
2004-07-30 23:36:37 +00:00
Nicholas Nethercote
1eb570df2c Restructured the as_*() functions so they are simpler and there is no implicit
global state -- the state is threaded explicitly through via function arguments
and return values.  ume.c now has no global variables, which is nice.

Also removed a redundant as_pad() call in stage2's main() which meant
layout_client_space() could be merged with layout_remaining_space().

Also removed a couple of no-longer-used variables and #defines.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2537
2004-07-30 21:50:15 +00:00
Tom Hughes
f10c38f7e5 Modify the ipc system call so that only those calls which may block
are treated as blocking.

This fixes bug #86000 because shmat is no longer treated as blocking
and it is therefore no longer possible for two threads to try and use
the same address for the shared memory segment.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2536
2004-07-29 22:40:07 +00:00
Tom Hughes
1afbb3fc45 Modified the fcntl system call so that only those reason codes which
can block (ie F_SETLKW) are treated as blocking.

This resolves the F_SETOWN problem described in bug #85969.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2535
2004-07-29 21:20:11 +00:00
Tom Hughes
b5f08d077f Add support for allowing the POST function for a system call to be called
even when the system call fails, and allow the PRE function to modify the
system call flags.

Also fix nanosleep so that it only marks the returned time as defined
if the system call exited with EINTR due to be interrupted.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2534
2004-07-29 17:44:23 +00:00
Nicholas Nethercote
3dc7eebda2 Merge equivalent if statements.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2533
2004-07-28 16:03:29 +00:00
Jeremy Fitzhardinge
5cb175294a Fix the skiplist brokenness Nick found:
- use a simple memset to initialize the next pointer vector
 - fix some previously unexercised code as a result of the above
Still haven't verified we're actually getting skipping, but it doesn't
crash with a make regtest.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2532
2004-07-27 21:49:23 +00:00
Nicholas Nethercote
4421ac53b7 Added some comments.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2531
2004-07-26 15:43:57 +00:00
Nicholas Nethercote
c4a06df097 Rename 'argv0' and 'argv1' to the more meaningful 'interp_name' and
'interp_args'.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2530
2004-07-26 15:32:47 +00:00
Nicholas Nethercote
7f9a4f8c64 Neaten up ume.h: don't export readelf(), mapelf, and struct elfinfo; improve
formatting too.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2529
2004-07-26 15:28:33 +00:00
Nicholas Nethercote
8375190f69 Remove accidental double assignment. Also don't assume that VG_(client_base)
is zero.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2528
2004-07-26 12:44:35 +00:00
Nicholas Nethercote
dbc191490a Er, actually make this test meaningful. It now aborts correctly if you try to
launch stage2 directly, rather than giving an obscure error about the tool
later on.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2527
2004-07-26 11:11:56 +00:00
Nicholas Nethercote
1c5c73edea Remove unused global variable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2526
2004-07-26 10:22:33 +00:00
Nicholas Nethercote
38e314e56c make non-exported function static
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2525
2004-07-26 10:05:55 +00:00
Tom Hughes
e1cc11b7c6 Move the decoding of SFENCE out of the SSE only part of disInstr as it
exists on Athlon's that have MMXEXT support and those don't have SSE state
so won't decode it where it was.

CCMAIL: 85947-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2524
2004-07-25 15:43:00 +00:00
Tom Hughes
8582802cb3 Add instruction tests for the LFENCE/MFENCE/SFENCE instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2523
2004-07-25 15:18:21 +00:00
Nicholas Nethercote
90308485ad Clarify error msgs
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2522
2004-07-22 12:41:12 +00:00
Nicholas Nethercote
a2838e5fe1 In response to bug #85665, clarify what --trace-children=yes does.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2521
2004-07-22 08:57:50 +00:00
Tom Hughes
3a75fc74df Fix checking of execve() when argv is a null pointer.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2520
2004-07-21 16:23:38 +00:00
Nicholas Nethercote
f153a0209b Correct Cachegrind changes; better late than never.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2519
2004-07-21 10:37:31 +00:00
Nicholas Nethercote
0af73c4f28 Type name wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2518
2004-07-21 08:49:02 +00:00
Julian Seward
9837ea2f4b Fix scary bug causing mis-identification of SSE stores vs loads.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2517
2004-07-20 23:49:22 +00:00
Julian Seward
c02c327af6 Remove duplicate suppressions for SuSE 9.0 (section appeared twice)
and add one for SuSE 9.1.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2516
2004-07-20 22:42:44 +00:00
Nicholas Nethercote
cee90da327 typo
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2515
2004-07-20 14:18:51 +00:00
Nicholas Nethercote
798fa0f8fa comment typo
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2514
2004-07-20 13:29:02 +00:00
Julian Seward
ff1439fd06 Fix extremely obscure bug in xadd picked up by QEMU's test suite. The
(almost useless) instruction "xadd %reg,%reg" gave the wrong answer
due to a subtlety of the order in which the destination registers are
PUTted to.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2513
2004-07-20 12:24:53 +00:00
Julian Seward
d6c41529d5 gcc sometimes generates "sbbl %reg,%reg" to convert the carry flag
into 0 or -1 in reg.  This has no actual dependency on reg, but
memcheck can't see that, and so will yelp if reg contains garbage.  A
simple fix is to put zero into reg before we start, zapping any
undefinedness it might otherwise contain.

Hopefully fixes #84978 (unconfirmed)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2512
2004-07-20 11:42:24 +00:00
Tom Hughes
d9db8d8b65 Some systems seem to need linux/netlink.h for linux/fs.h to compile
correctly, so we include it beforehand in case.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2511
2004-07-19 23:16:41 +00:00
Nicholas Nethercote
43f025c169 Add another C call helper.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2510
2004-07-19 08:18:00 +00:00
Nicholas Nethercote
c6ea38d087 Include new_override.stdout.exp in 'make dist'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2509
2004-07-18 12:05:37 +00:00
Julian Seward
7a8b73a9fb --> 2.1.3.CVS
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2508
2004-07-18 11:47:55 +00:00
Nicholas Nethercote
02a2002701 Extra info for FAQ.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2506
2004-07-18 10:35:36 +00:00
Julian Seward
4c259b37bd --> 2.1.2
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2505
2004-07-18 09:25:17 +00:00