3759 Commits

Author SHA1 Message Date
Julian Seward
1cbbde41ae Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4870
2005-10-05 18:05:01 +00:00
Julian Seward
05c7773957 Test for jrcxz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4869
2005-10-05 17:12:23 +00:00
Julian Seward
baceec15d9 Update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4868
2005-10-05 11:03:19 +00:00
Julian Seward
a2ed402a26 Even more regtests
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4867
2005-10-05 11:02:00 +00:00
Tom Hughes
7593ed5f2e Fix for 112031 is actually in two parts.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4866
2005-10-05 08:28:59 +00:00
Tom Hughes
6cdbf0b2f4 Update README_MISSING_SYSCALL_OR_IOCTL to reflect reality - patch
from Reimar Döffinger via bug 112031.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4864
2005-10-05 08:27:08 +00:00
Tom Hughes
b807fac324 Document fix for 112031.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4863
2005-10-05 08:24:20 +00:00
Julian Seward
4ce62c9445 If the launcher can't figure out what it's own name is, don't bail
out.  Instead, print a warning message, continue, and cause any
attempt to trace into a child process to fail with ECHILD.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4861
2005-10-04 23:07:33 +00:00
Julian Seward
4a47f441f2 Rewrite ML_(fd_allowed):
* include explaination from Tom
* make logic easier to follow, and add comments
* remove veto on the -d file descriptor (detailed comments in code)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4860
2005-10-04 22:27:22 +00:00
Julian Seward
a817329967 Add regtests for SSE2 pmaddwd.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4859
2005-10-04 20:00:20 +00:00
Julian Seward
77663f8a84 Update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4858
2005-10-04 19:33:44 +00:00
Tom Hughes
4bfd9edeba Document fix for 113642.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4857
2005-10-04 16:55:22 +00:00
Tom Hughes
1b42aba084 Make sure we have all the DWARF2 sections before trying to decode
any DWARF2 debug information. All make sure we don't fall over if
the .debug_info is less than four bytes long. Fixed bug 113642.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4856
2005-10-04 16:54:54 +00:00
Tom Hughes
7b1575bb77 Document bug 113796.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4855
2005-10-04 16:45:28 +00:00
Tom Hughes
65bd3eb367 Create a new SkShmC segment type for shared memory segments so that we
can ensure they are never merged with adjacent segments. This makes
sure that we can find the right piece of memory to release when the
shmdt system call occurs.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4854
2005-10-04 15:59:54 +00:00
Tom Hughes
a31e921b7e Check permissions when sanity checking the segment list against
the kernel's memory map.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4853
2005-10-04 13:02:31 +00:00
Tom Hughes
760dbdc42a Get the SHM_RDONLY test the right way round. Fixes bug #113796.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4852
2005-10-04 12:04:06 +00:00
Julian Seward
742e6107a1 Reenable SSE2 psadbw test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4851
2005-10-04 11:44:11 +00:00
Julian Seward
3c01a734d6 Update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4850
2005-10-03 11:40:44 +00:00
Tom Hughes
2b5092f64c Allow scripts less that a page in length to be executed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4849
2005-10-03 09:06:36 +00:00
Julian Seward
80e0b1c3a5 Test misc sbb/adc insns.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4848
2005-10-03 02:23:17 +00:00
Julian Seward
0d69e98e8a Test simulation of x86 'fxtract'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4847
2005-10-03 01:22:29 +00:00
Nicholas Nethercote
72dd8496df compile fix for an Ubuntu box I just tried
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4846
2005-10-02 17:50:31 +00:00
Julian Seward
45b7830107 Unbreak compilation. Duh.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4845
2005-10-02 17:33:07 +00:00
Julian Seward
b7cd9cb3de Plumb 64-bit file offsets throughout the address space manager.
Untested.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4844
2005-10-02 17:01:41 +00:00
Nicholas Nethercote
4ef4aabbd0 Make the dispatch files platform-specific, not just arch-specific,
as requested by Greg Parker.  (The ppc32/Darwin dispatch loop is
different to the ppc32/Linux one, for example.)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4843
2005-10-02 14:48:09 +00:00
Julian Seward
ed4a883393 Update the depressingly long list of bugs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4842
2005-10-02 13:10:41 +00:00
Julian Seward
f0f1b729c9 ppc32-linux only: redirect strcmp right from the start.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4841
2005-10-01 19:12:08 +00:00
Tom Hughes
9bddb4c141 Document mmap insanity in a comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4840
2005-09-30 16:09:12 +00:00
Tom Hughes
49ad5e75e7 Update ignore lists.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4839
2005-09-30 13:43:52 +00:00
Julian Seward
7672845acb ML_(generic_PRE_sys_mmap): reject non-page-aligned offsets.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4838
2005-09-30 10:48:27 +00:00
Julian Seward
773c32d9c6 When a sector is full, debug-print TC/TT loading for it, so as to give
better info on sizing decisions.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4837
2005-09-30 10:34:06 +00:00
Julian Seward
3564f53893 Placate gcc.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4836
2005-09-30 10:32:39 +00:00
Tom Hughes
babdf0de71 Removed surplus parenthesis.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4835
2005-09-30 08:12:54 +00:00
Tom Hughes
6c610b89c7 Rationalise the mmap system call handling - after examining the kernel
source it turns out that there are five different versions of mmap for
the three platforms we currently support:

  - On x86-linux there is mmap (aka old_mmap) which takes the
    arguments in a memory block and the offset in bytes; and
    mmap2 (aka sys_mmap2) which takes the arguments in the normal
    way and the offset in pages.

  - On ppc32-linux there is mmap (aka sys_mmap) which takes the
    arguments in the normal way and the offset in bytes; and
    mmap2 (aka sys_mmap2) which takes the arguments in the normal
    way and the offset in pages.

  - On amd64-linux everything is simple and there is just the one
    call, mmap (aka sys_mmap)  which takes the arguments in the normal
    way and the offset in bytes.

To reconcile all this I have created a generic handler and then
written five platform specific wrappers which normalise all the
arguments and then call the generic handler.

I have also modified the address space manager to use mmap2 rather
than mmap on x86 and ppc32 so that large offsets can be correctly
handled.

There is still an issue of OffT truncating offsets as we go through
the address space manager that will need to be addressed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4834
2005-09-30 08:07:53 +00:00
Nicholas Nethercote
1805172055 whoops
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4833
2005-09-30 02:17:40 +00:00
Nicholas Nethercote
06e8adae1a add missing file
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4832
2005-09-30 02:17:16 +00:00
Julian Seward
69a3fadbde Placate memcheck/tests/x86/scalar, which objected to the rewrite of
the sys_readlink wrapper.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4831
2005-09-30 01:47:12 +00:00
Nicholas Nethercote
e41c7abfe2 Commit Jeroen Witmond's xml-to-text translator, and use it for the FAQ.
Less double maintenance, hoorah!



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4830
2005-09-30 01:43:32 +00:00
Julian Seward
9f5c43b405 Get rid of duplicated STRINGIFY macros.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4829
2005-09-30 01:20:47 +00:00
Julian Seward
44e0ab593a In PRE(sys_readlink), fix up handling of /proc/<pid>/exe and
/proc/self/exe.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4828
2005-09-30 01:09:50 +00:00
Nicholas Nethercote
9024912d93 update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4827
2005-09-30 01:07:14 +00:00
Nicholas Nethercote
00a4e0b162 Enable sys_iopl on AMD64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4826
2005-09-30 01:05:53 +00:00
Julian Seward
9d61e685ef Oh Arse. This'll teach me to edit the x86-specific sources on a ppc32
box.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4825
2005-09-30 00:49:01 +00:00
Julian Seward
98e527a62c A corresponding fix to 4823: don't deal with MAP_FIXED case directly
here; instead uniformly pass all requests to VG_(am_get_advisory), so
that layout policy is controlled from one place only.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4824
2005-09-30 00:45:47 +00:00
Julian Seward
1f46368c98 Changes to sys_mmap2 wrapper:
- update comment re offset scaling

- ppc32 offset is in bytes, not pages

- don't deal with MAP_FIXED case directly here; instead uniformly pass
  all requests to VG_(am_get_advisory), so that layout policy is controlled
  from one place only.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4823
2005-09-30 00:37:04 +00:00
Nicholas Nethercote
d0b346939c Future-proof a piece of conditional compilation.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4822
2005-09-30 00:06:09 +00:00
Tom Hughes
734ffbfb60 On x86 and ppc32 the offset argument to mmap2 is specified in pages
not bytes. This is a horrible kludge of a fix and it should probably
be fixed properly with a separate sys_mmap for amd64.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4821
2005-09-29 23:26:06 +00:00
Julian Seward
a8627dede8 Fix a very stupid bug in the new aspacemgr, in which mmap "hint-style"
requests were being granted at the requested address when they should
not have been.  This was causing ppc32-linux to crash at startup
(since the wrongly-granted mapping annihilated 5 others).  This shows
the value of a multiplatform approach -- the bug applies to all
targets, yet x86 and amd64 appeared to work perfectly.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4820
2005-09-29 21:20:41 +00:00
Julian Seward
e0a5f54cf9 Make ppc32-linux build again following aspacem merge. Doesn't work, though:
programs crash before reaching main.  I don't know why.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4819
2005-09-29 11:09:56 +00:00