Commit Graph

2618 Commits

Author SHA1 Message Date
Julian Seward
ff71ced87a Comment-only change
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3485
2005-03-30 19:31:18 +00:00
Julian Seward
1a4748ff32 Completely get rid of VG_(instr_ptr_offset).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3484
2005-03-30 19:04:29 +00:00
Julian Seward
25bad06ca3 Get rid of the use of VG_(instr_ptr_offset) since we know what that is
at system-build time: OFFSET_amd64_RIP.  This saves an instruction on
the fast path, and reduces the number of PIE-difficulties by one.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3483
2005-03-30 18:42:59 +00:00
Julian Seward
5bf0015052 rm unused function
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3482
2005-03-30 18:26:52 +00:00
Tom Hughes
cd18564979 Get thew DWARF reading going on 64 bit machines.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3481
2005-03-30 15:05:46 +00:00
Tom Hughes
6eccce80ba Discard the sys_socketcall wrapper (there is no socketcall system
call on amd64) and add a proper sys_socket wrapper.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3480
2005-03-30 08:22:38 +00:00
Nicholas Nethercote
4295fad962 Reinstate Helgrind, to an extent: compile it, so that it doesn't bit-rot.
But don't regtest it, because they all just fail.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3479
2005-03-30 04:13:56 +00:00
Tom Hughes
9c1e938286 Fixed ROUNDDN to avoid truncating the result when the first argument
doesn't fit in 32 bits and the second one does.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3478
2005-03-29 12:16:10 +00:00
Tom Hughes
1de0d47116 Build the arch and platform libraries as PIE code when appropriate.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3477
2005-03-29 10:03:04 +00:00
Tom Hughes
ea0a6d77f5 Revive VG_(cpuid) which had been commented out during the merge and
add VG_(has_cpuid) as well. These are then used in place of the inline
assembly in state.c as the compiler was having trouble allocating the
required registers when building in PIE mode.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3476
2005-03-29 09:53:47 +00:00
Tom Hughes
f67c9b8ef0 Rework inline assembly to avoid requiring specific registers as they
may not always be available, especially in PIE builds.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3475
2005-03-29 09:52:21 +00:00
Tom Hughes
244a4aa560 Avoid truncating addresses returned from mmap on 64 bit platforms.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3474
2005-03-29 09:00:37 +00:00
Tom Hughes
7beebdd5b9 Avoid truncating addresses in debugging message.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3473
2005-03-29 09:00:12 +00:00
Tom Hughes
ba4f330105 Build the arch, os and platform libraries as PIE code if PIE is
enabled as they get linked into stage2 which is the PIE part.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3472
2005-03-29 08:09:31 +00:00
Tom Hughes
c34ba5aa3b Fix overnight build script to use subversion to get the source and
to handle needing to checkout and build vex before valgrind.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3471
2005-03-29 07:54:30 +00:00
Tom Hughes
51ea0f08b6 Fixed test result to be independent of the system address size.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3470
2005-03-29 07:40:04 +00:00
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