Commit Graph

2602 Commits

Author SHA1 Message Date
Tom Hughes
2a192a048f The open system call has a post handler.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3469
2005-03-28 23:25:58 +00:00
Tom Hughes
acdb4b9b02 Implement some more system calls on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3468
2005-03-28 18:19:45 +00:00
Tom Hughes
7fc4fb6433 Actually setup the arguments for a signal handler before running
it - that way the signal might do what is expected.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3467
2005-03-28 18:19:21 +00:00
Julian Seward
3d55d57480 Reinstate a few more syscalls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3466
2005-03-27 18:20:26 +00:00
Nicholas Nethercote
1a0b185acf Remove an out-of-date FAQ, putting the still-relevant part in another
question.  Man, double maintenance sucks.  And when/how does the website FAQ
get updated...?



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3465
2005-03-27 17:05:08 +00:00
Julian Seward
897aefaee9 comment-only change
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3464
2005-03-27 04:08:09 +00:00
Nicholas Nethercote
7f22267612 VG_(get_memory_from_mmap_for_client)() need not be tool-visible.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3463
2005-03-27 03:48:13 +00:00
Nicholas Nethercote
416be3f29e Remove the "vg_" prefix from a lot of non-global variables.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3462
2005-03-27 03:40:28 +00:00
Nicholas Nethercote
68647c085d VG_(bbs_done) doesn't need to be tool-visible.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3461
2005-03-27 03:17:52 +00:00
Nicholas Nethercote
3ffaf470ac Remove dead field '.siginfo' from ThreadState(!)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3460
2005-03-27 02:38:15 +00:00
Nicholas Nethercote
8b55677ded Remove dead macros and declaration.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3459
2005-03-27 02:01:31 +00:00
Nicholas Nethercote
f912a81248 Add VGA_ prefix to the arch-specific macros {MIN,MAX}_INSTR_SIZE and
REGPARMS.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3458
2005-03-27 01:55:21 +00:00
Nicholas Nethercote
36e86a9542 Add VG_ prefix to SKIPLIST_INIT and IS_*_ALIGNED macros. Also pull
IS_PAGE_ALIGNED into tool.h with the others.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3457
2005-03-27 01:42:41 +00:00
Julian Seward
417691eb5a Track generic and x86 changes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3456
2005-03-27 01:35:16 +00:00
Nicholas Nethercote
b3d26947f4 Remove dead macros 'mycat' and 'mycat_wrk'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3455
2005-03-27 01:27:17 +00:00
Nicholas Nethercote
e2e1d2f896 Merge STR and VG__STRING macros into one, VG_STRINGIFY. Also, in
valgrind-listener.c, don't use the VG_ prefix on its equivalent, because
it's a local definition.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3454
2005-03-27 01:25:38 +00:00
Nicholas Nethercote
8aac9bd8a7 Make the 'arg' parameter to VG_BOOL_CLO and similar macros explicit, rather
than implicit.  Also tweak some formatting of command-line arg code.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3453
2005-03-27 01:00:11 +00:00
Nicholas Nethercote
f0232e8c01 Remove some old CLOs that were hanging around for backward compatibility.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3452
2005-03-27 00:44:31 +00:00
Julian Seward
31c2511ecd Pay attention to the annotations on dirty helper calls, since they
they tell us about the memory transactions done by such calls.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3451
2005-03-26 21:55:21 +00:00
Nicholas Nethercote
855c76345c Tweaks involving VG_(strncpy_safely)(), mostly to shorten code sequences.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3450
2005-03-26 21:34:45 +00:00
Nicholas Nethercote
d5717b3e8c The two patches attached resolve the exit-hang (of OOo) bug for me. The first
fixes getppid(), and the second fixes the next bug which is revealed
once getppid() does what LinuxThreads wants;  LinuxThreads uses SIGKILL
to kill off stray threads, but if we send naked SIGKILLs to Valgrind
threads, they'll die without cleaning up or informing anyone of their
death, which means that they're waited on forever. 

ADAPTED FROM CVS HEAD



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3449
2005-03-26 20:08:06 +00:00
Nicholas Nethercote
203b7b6638 Add missing declaration.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3448
2005-03-26 20:03:07 +00:00
Nicholas Nethercote
f385afbb5c sys_futex's FUTEX_(CMP_)REQUEUE requests use the futex2 pointer (not
timeout); FUTEX_CMP_REQUEUE also uses the timespec pointer as an integer.       
                                                                                
Also, more clearly document the argument usages, and make the per-operation     
special cases clearer.             

MERGED FROM CVS HEAD


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3447
2005-03-26 16:44:19 +00:00
Nicholas Nethercote
32dd4093dc Handle a couple kinds of executable mutation: a read-only bss, and a
zero-length segment.           

MERGED FROM CVS HEAD


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3446
2005-03-26 16:22:43 +00:00
Nicholas Nethercote
23f4ba44cd Skip a stab if it has no ':' at all.
MERGED FROM CVS HEAD



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3445
2005-03-26 16:10:49 +00:00
Nicholas Nethercote
55b62aeffb Sync NEWS with CVS version.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3444
2005-03-26 16:04:27 +00:00
Julian Seward
64824ad318 More amd64 signal handling fixes (Tom Hughes)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3443
2005-03-26 13:48:19 +00:00
Julian Seward
b320c6c9e4 On amd64, use default cache sizes for now, rather than bombing out
completely.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3442
2005-03-26 13:46:49 +00:00
Julian Seward
c5dc229747 Unbreak amd64 build. We need to have an overnight autobuild running
on amd64 asap.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3441
2005-03-26 13:33:27 +00:00
Nicholas Nethercote
425c86253b Remove unneeded vg_intercept.c.base, which was still hanging around from the
CVS/SVN merge.  Also removed a reference to it in vg_replace_malloc.c.base.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3440
2005-03-26 04:20:04 +00:00
Nicholas Nethercote
ce81b52a84 Make our VG_(isspace)() match libc's isspace(). And remove ISSPACE and
VG_ISSPACE, replacing them with calls to VG_(isspace)().



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3439
2005-03-26 04:14:01 +00:00
Nicholas Nethercote
bb4598350e Obsoleted three client requests that were still hanging around from the old
libpthread implementation: USERREQ__READ_MILLISECOND_TIMER, USERREQ__MALLOC,
USERREQ__FREE.

As a consequence, all the PTHREQ macros (eg. VGA_PTHREQ_RET,
SET_PTHREQ_RETVAL) could be removed.  And VG_(tl_malloc_called_by_scheduler)
has been renamed VG_(tl_malloc_called_deliberately) to reflect how its role
has changed.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3438
2005-03-26 03:50:14 +00:00
Nicholas Nethercote
b08a041b56 Use "VGO_" prefix for various OS-specific exports.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3437
2005-03-26 02:57:36 +00:00
Nicholas Nethercote
8853545f0f Use VGP_ prefix more consistently for platform-specific exports.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3436
2005-03-26 02:42:31 +00:00
Nicholas Nethercote
27066dbfc5 Don't use the VGP_ for profiling any more, just use VG_ -- we want to use
VGP_ for platform-specific things.  



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3435
2005-03-26 00:42:02 +00:00
Nicholas Nethercote
66b2b7d5ad Use "VGA_" prefix more consistently.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3434
2005-03-26 00:32:29 +00:00
Nicholas Nethercote
cb6c8b4bd2 Use "VGA_" prefix more consistently for arch-specific things.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3433
2005-03-26 00:18:45 +00:00
Nicholas Nethercote
0f0863110d Rename some arch-specific macros to use the more consistent "VGA_" prefix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3432
2005-03-26 00:04:03 +00:00
Nicholas Nethercote
bc95f773e8 Avoid compiler warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3431
2005-03-25 23:50:11 +00:00
Nicholas Nethercote
ff514fd09b Rename M_VG_ERRTXT as VG_ERRTXT_LEN, which is more consistent with other
names.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3430
2005-03-25 23:47:16 +00:00
Nicholas Nethercote
f474d2e51a A modularisation + refactoring commit. vg_execontext.c has been split into
two halves: stacktrace.c, which deals with getting, traversing and printing
stack traces;  and execontext.c, which deals with storing stack traces
permanently in a way that avoids duplicates, and comparing them.

One nice outcome:  previously we were often creating ExeContexts, which live
forever, even when they were only needed temporarily.  Ie. this was a memory
leak, which has been removed.

As part of this, new headers have been created, carved off core.h and
tool.h.  Lots of function names have changed, too.

In Massif, I also changed a lot of "eip" names to "ip" to make them less
x86-specific.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3429
2005-03-25 23:35:48 +00:00
Julian Seward
2f61b2f293 setup_pointercheck(): be silent
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3428
2005-03-24 20:38:24 +00:00
Julian Seward
7e67ae71fd Initial get-threads-working patch (Tom Hughes)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3427
2005-03-24 19:38:57 +00:00
Nicholas Nethercote
ad4a2de3c3 Sync ACKNOWLEDGEMENTS with the CVS version.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3426
2005-03-24 18:35:41 +00:00
Julian Seward
43e6c44681 Various amd64 syscall improvements (Tom Hughes)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3425
2005-03-24 17:52:02 +00:00
Julian Seward
cd44efd2cf A first cut at amd64 signal frame build/unbuild, from Tom Hughes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3424
2005-03-24 17:48:02 +00:00
Nicholas Nethercote
8bda11d0c1 Remove a couple of compiler warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3423
2005-03-24 04:44:26 +00:00
Nicholas Nethercote
1826c24b7f Bah, get the compiler-warning avoidance right this time.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3422
2005-03-24 04:41:16 +00:00
Nicholas Nethercote
16f9a077c7 Avoid numerous compiler warnings by being more precise with REGPARM
attributes in declarations.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3421
2005-03-24 04:40:08 +00:00
Nicholas Nethercote
3f724359ac Avoid compile warning.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3420
2005-03-24 04:39:33 +00:00