2078 Commits

Author SHA1 Message Date
Nicholas Nethercote
df6d264d08 Make the checking of poll() more accurate.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2938
2004-11-05 12:02:27 +00:00
Nicholas Nethercote
3fb5db9b49 Order wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2937
2004-11-05 11:09:53 +00:00
Nicholas Nethercote
0b675e29c3 64-bit cleanness: some more.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2936
2004-11-04 20:00:44 +00:00
Nicholas Nethercote
22bd4534c8 64-bit cleanness: fix the memory arg of socketcall syscalls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2935
2004-11-04 19:57:03 +00:00
Nicholas Nethercote
cdc43b9d17 whitespace wibbles
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2934
2004-11-04 19:43:22 +00:00
Nicholas Nethercote
bfcadc611a Make computations more understandable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2933
2004-11-04 19:40:59 +00:00
Nicholas Nethercote
64aaf7be92 comment wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2932
2004-11-04 19:39:14 +00:00
Nicholas Nethercote
7b5bf879ea More minor 64-bit cleanness tweaks.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2931
2004-11-04 19:38:14 +00:00
Nicholas Nethercote
7be3fc9c62 Comment/formatting wibbles.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2930
2004-11-04 19:33:51 +00:00
Nicholas Nethercote
c2faf8d5aa Make size calculation more robust.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2929
2004-11-04 19:32:10 +00:00
Nicholas Nethercote
6a5456bafb 64-bit cleanness tweak.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2928
2004-11-04 19:29:06 +00:00
Nicholas Nethercote
3a95fec6cc Formatting wibbles.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2927
2004-11-04 19:28:38 +00:00
Nicholas Nethercote
83d0f4f28f 64-bit cleanness: fix up types in libpthread.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2926
2004-11-04 19:11:19 +00:00
Nicholas Nethercote
1c674f8d7c Get rid of compile errors and warnings (ahem).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2925
2004-11-04 19:10:43 +00:00
Nicholas Nethercote
579966ed30 64-bit cleanness wibbles.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2924
2004-11-04 18:56:47 +00:00
Nicholas Nethercote
6d37450b6f Arch-abstraction: factor out a use of mmap() appropriately.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2923
2004-11-04 18:45:22 +00:00
Nicholas Nethercote
e59b9df749 64-bit cleanness: introduced OffT type for off_t, used it in a few important
places.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2922
2004-11-04 18:39:22 +00:00
Nicholas Nethercote
cc936a9c7c 64-bit cleanness: convert client requests to receive and return UWords.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2921
2004-11-04 18:22:28 +00:00
Nicholas Nethercote
6451cc22a2 64-bit cleanness: lots more replacing of UInt with UWord as necessary.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2920
2004-11-04 18:03:06 +00:00
Nicholas Nethercote
506ef239ea 64-bit cleanness: fix some more pointer casts to UInt.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2919
2004-11-04 17:24:57 +00:00
Nicholas Nethercote
3cd28a9282 Format wibbles.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2918
2004-11-04 17:10:24 +00:00
Nicholas Nethercote
7a32118f70 64-bit cleanness: convert some (UInt) casts of pointers to (UWord) casts.
Also, remove some unnecessary (UInt) casts of integers.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2917
2004-11-04 17:02:42 +00:00
Nicholas Nethercote
528046b537 64-bit cleanness: make the hash-table have UWord keys instead of UInt keys.
Allows addresses as keys.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2916
2004-11-04 16:39:43 +00:00
Benjamin Meyer
4582acb198 Changed to be consistant with the rest of the files
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2915
2004-11-04 16:16:59 +00:00
Nicholas Nethercote
65b45124ad 64-bit cleanness: replace hard-wired 0xffffffff literals with something less
32-bit-specific.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2914
2004-11-04 13:49:28 +00:00
Tom Hughes
1b3797c44e Add support for the settimeofday system call.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2911
2004-11-04 13:20:13 +00:00
Nicholas Nethercote
d8fc746ba4 64-bit cleanness: Yet more UInt-->SizeT changes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2910
2004-11-03 18:10:37 +00:00
Nicholas Nethercote
3af1e3e24b 64-bit cleanness: More UInt-->SizeT changes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2909
2004-11-03 17:07:46 +00:00
Nicholas Nethercote
c73601d666 64-bit cleanness:
- Use SizeT instead of UInt for new_mem_stack and all the related functions.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2908
2004-11-02 13:29:50 +00:00
Nicholas Nethercote
d98a43bc4f 64-bit cleanness:
- Use SizeT instead of UInt for new_mem_stack and all the related functions.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2907
2004-11-02 13:06:32 +00:00
Nicholas Nethercote
e245f2aeb0 64-bit cleanness: Converted malloc() et al to use SizeT rather than Int.
This required some tricks with casting to maintain Memcheck's silly (ie.
negative) arg checking.  The allocator was also changed accordingly. It
should now be able to allocate more than 4GB blocks on 64-bit platforms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2906
2004-11-02 12:36:02 +00:00
Tom Hughes
55a7ef5758 Make sure we are using perl 5.6.0 as earlier versions won't work.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2905
2004-11-02 09:49:19 +00:00
Tom Hughes
a54180bc29 Use -w instead of "use warnings" to enable warnings so that older
versions of perl can handle the script.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2903
2004-11-02 09:45:21 +00:00
Nicholas Nethercote
d62aa78d9d clarify debugging instructions
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2901
2004-11-02 09:13:12 +00:00
Nicholas Nethercote
db131cacab unbreak compilation...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2900
2004-11-01 19:36:46 +00:00
Nicholas Nethercote
dca39a5e6e wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2899
2004-11-01 18:46:18 +00:00
Nicholas Nethercote
2fd2f28031 Make ESZ less public.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2898
2004-11-01 18:42:23 +00:00
Nicholas Nethercote
b48ba617e0 Don't need to use addr_t anymore, use Addr instead, for consistency.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2897
2004-11-01 18:38:00 +00:00
Nicholas Nethercote
e0ff83bc39 - Make find_auxv() word-size independent.
- Introduced a new file, basic_types.h, for the basic types (eg. Int, Word).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2896
2004-11-01 18:22:05 +00:00
Tom Hughes
6318f7c944 Make sure source-location mapping entries of size zero are converted
to size one even if verbose more is off.

BUG: 92528


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2894
2004-11-01 17:36:15 +00:00
Nicholas Nethercote
bd2b70488d 64-bit cleanness tweaks.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2893
2004-11-01 16:52:43 +00:00
Nicholas Nethercote
f049f3c86d format wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2892
2004-11-01 16:46:58 +00:00
Nicholas Nethercote
a11072f0f9 Do 'struct termios' properly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2891
2004-11-01 16:22:00 +00:00
Nicholas Nethercote
e78cfe5b19 64-bit cleanness tweaks.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2890
2004-11-01 15:19:46 +00:00
Tom Hughes
459c7429d6 Ignore generated makefiles.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2889
2004-11-01 09:52:12 +00:00
Tom Hughes
81da7615db Really add AM_PROG_CC_C_O this time, rather than AC_PROG_CC_C_O.
BUG: 92331


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2888
2004-11-01 09:50:57 +00:00
Nicholas Nethercote
f96382c67c Fix broken alternative output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2887
2004-10-31 19:50:22 +00:00
Nicholas Nethercote
d0cfce40a7 Removed unused junk:
- tests for header files that are never utilised
- stupid long and bogus X version test that we ignored anyway


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2886
2004-10-31 19:39:18 +00:00
Nicholas Nethercote
193367181b Must remember to edit the original file, not the generated one...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2885
2004-10-31 18:58:05 +00:00
Nicholas Nethercote
c4cf15dc21 Arch-abstraction:
- Added include/x86-linux/ and include/linux/ subdirectories, with Makefile.am
  files.

- Overhauled the definitions of kernel types.  include/vg_kerneliface.h is now
  three files, include/linux/vki.h, include/x86-linux/vki_arch.h, and
  include/x86-linux/vki_arch_posixtypes.h.  These files separate the
  common/Linux and x86/Linux parts cleanly.  All code is copied verbatim from
  the relevant kernel headers, except that VKI_/vki_ prefixes are added as
  necessary to distinguish them from glibc types.  (This is done consistently,
  unlike previously when some types did not have the prefixes.)

  All code is clearly marked to show which particular header file it came from,
  and the Linux version used.  (I used 2.6.8.1, the most recent stable release,
  for all of them.)

  A few of the types changed;  this is because they changed between the older
  versions of Linux and the current 2.6.8.1.  I checked that all these changes
  were ok with respect to backwards compatibility for our purposes.

- vg_unsafe.h has been removed;  we are no longer including any kernel headers,
  as we have our own copies for everything.  This is because installed kernel
  headers are not reliable, and often cause compilation problems. (bug
  #92420 is a recent example)

- Removed some no-longer-needed header-presence tests from configure.in.

- Some code in the rest of Valgrind was changed to account for some slight
  changes in the names of our VKI_/vki_ kernel constants and types.

- Updated README_MISSING_SYSCALL_OR_IOCTL accordingly.

- Fixed off-by-one error with VKI_GDT_ENTRY_TLS_MAX (merged from stable branch)

The end result is that the kernel types situation should be much clearer, and
similar files can be created relatively easily for other architectures as
necessary.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2884
2004-10-31 18:48:21 +00:00