Commit Graph

840 Commits

Author SHA1 Message Date
Dirk Mueller
4ed09ea00c ignore
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2124
2003-12-17 13:28:12 +00:00
Dirk Mueller
fe0b4d3681 ignore
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2123
2003-12-17 13:18:24 +00:00
Jeremy Fitzhardinge
1f4c6deede Auto-generate stage2.lds so that the linker script matches the local
linker.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2122
2003-12-16 22:26:45 +00:00
Jeremy Fitzhardinge
4122aee5ee Remove coregrind/vg_valgrinq_dummy.c
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2121
2003-12-16 02:23:31 +00:00
Jeremy Fitzhardinge
822231c4b0 Add and delete all the files which need adding and deleting.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2119
2003-12-16 02:14:00 +00:00
Jeremy Fitzhardinge
918c3a7b7e This jumbo-checkin is the Full Virtualization checkin. This eliminates
Valgrind's dependency on the dynamic linker for getting started, and
instead takes things into its own hands.

This checkin doesn't add much in the way of new functionality, but it
is the basis for all future work on Valgrind.  It allows us much more
flexibility in implementation, and well as increasing the reliability
of Valgrind by protecting it more from its clients.

This patch requires some changes to tools to update them to the changes
in the tool API, but they are straightforward.  See the posting "Heads
up: Full Virtualization" on valgrind-developers for a more complete
description of this change and its effects on you.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2118
2003-12-16 02:05:15 +00:00
Jeremy Fitzhardinge
6d535b779d Change the --track-fds code to use VG_AR_CORE rather than
VG_(malloc)/(strdup), which puts things into VG_AR_SKIN.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2117
2003-12-16 01:48:38 +00:00
Jeremy Fitzhardinge
7a664bc301 Make symbol prefix matching table driver, and be a bit more careful
about overrunning the ends of names.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2116
2003-12-15 23:31:52 +00:00
Dirk Mueller
996037bfba patch by Jim Meyering: redirect error output to stderr, and exit with nonzero
exit code upon failure.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2115
2003-12-15 15:23:41 +00:00
Jeremy Fitzhardinge
e77d4b8d7e When merging multiple symbols with the same address, rather than always
choosing the longest symbol, choose the longest ignoring any of the libc
junk prefixes like __libc_, __, __GI_*, etc.  This makes the symbol
presented to the user in messages and used in *.supp files more consistent
and comprehensible.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2114
2003-12-15 09:00:21 +00:00
Ismail Dönmez
eb1ea76873 CVS_SILENT NPTL is Native Posix blah blah
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2112
2003-12-14 17:38:53 +00:00
Julian Seward
4f214c5ad8 Increase the max size of the translation cache from 200k average bbs to
300k average bbs.  Programs on the size of OOo (680m17) are thrashing the
cache at the smaller size, creating large numbers of retranslations and
wasting significant time as a result.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2110
2003-12-14 14:25:19 +00:00
Julian Seward
4d11934a22 Patch in a DWARF1 (obsolete) line number reader, from the stable (2.0)
branch.  Apparently the Lahey Fortran compiler emits DWARF1 line
number info.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2105
2003-12-13 23:16:26 +00:00
Julian Seward
80a34b21d6 Un-break 'make distcheck' yet again. I guess someone somewhere understands
how autoconf/automake really work, but not me :-)  What's the difference
between $(srcdir) and $(top_srcdir) (eg in coregrind/Makefile.am) ?


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2104
2003-12-13 03:07:40 +00:00
Jeremy Fitzhardinge
144c2fa42c Fix bug 69836: make record_fd_open ignore fds > VG_MAX_FD.
CCMAIL: 69836-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2103
2003-12-12 07:46:54 +00:00
Julian Seward
1bee40d28b Reword warning message emitted by fd_allowed() to make it a little clearer.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2102
2003-12-12 06:40:05 +00:00
Julian Seward
74d799e2d9 Print "object doesn't have a %s" all on one line.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2101
2003-12-12 06:22:06 +00:00
Jeremy Fitzhardinge
bf546d2a1d Patch from Tom Hughes: make --gdb-attach=yes work when a program is
killed by a fatal signal.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2100
2003-12-08 21:58:37 +00:00
Dirk Mueller
9f9343605d in C, casting of lvalues is illegal.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2099
2003-12-07 23:36:14 +00:00
Dirk Mueller
16176a8f00 allow absolute paths to be specified when "which" is not found.
CCMAIL: 69140-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2095
2003-12-05 16:39:42 +00:00
Nicholas Nethercote
aebec6c2be Patch from Tom Hughes:
This patch extends the SFENCE support that is already present to include
  support for LFENCE and MFENCE as well. It also stops CLFLUSH being mistaken
  for SFENCE by checking the top two bits of the MODRM byte.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2087
2003-12-02 15:25:39 +00:00
Nicholas Nethercote
fed872284b Tools using shadow memory can't handle the first 64KB being mapped, because
they rely on this area being unmapped for their quick sanity check.  This
commit make Valgrind refuse to mmap() this area.  Added a regtest for it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2085
2003-12-02 14:56:04 +00:00
Nicholas Nethercote
284fcf8754 Grouped options in the usage message so they're a bit easier to understand.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2084
2003-12-02 10:41:18 +00:00
Nicholas Nethercote
3ddb89814c Backing out bogus support for gettid() I added yesterday.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2081
2003-12-02 09:35:33 +00:00
Nicholas Nethercote
c0e09ae11c Add gettid() syscall.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2078
2003-12-01 14:00:11 +00:00
Nicholas Nethercote
5f1bf8818f Fixed test in section finding code that was broken for .plt and .got sections.
Thanks to Tom Hughes for the patch.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2075
2003-12-01 11:54:09 +00:00
Nicholas Nethercote
4b71b93e45 Factor out repeated code for LOOP{E,NE}
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2072
2003-11-28 09:44:21 +00:00
Dirk Mueller
466ada9056 fix alignment checking of __posix_memalign. merging to stable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2069
2003-11-28 00:15:57 +00:00
Nicholas Nethercote
5d8ce040fe Fixed up REP-prefix handling majorly. Factored out *lots* of repetitive code,
so much so that the file is now 280 lines shorter.  This despite me also adding
support for LOOP{E,NE} (thanks to Abhijit Menon-Sen).  Also added support for
CMPS[lw], which was missing.  Adding more REP-prefix instructions in the future
will now be much easier.

As part of this, I moved the D-flag fetch outside of the REP loops.  This might
make programs that use REP prefixes a lot go faster.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2068
2003-11-27 16:15:17 +00:00
Dirk Mueller
6b60f29b51 remove reference to --assume-2.4 option
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2066
2003-11-27 11:43:53 +00:00
Nicholas Nethercote
3bbbbfc461 Fix comment
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2065
2003-11-27 09:30:28 +00:00
Dirk Mueller
ef4bb579c5 reverting last commit, which broke all of valgrind.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2063
2003-11-27 09:07:47 +00:00
Jeremy Fitzhardinge
303f8a8df6 Fix up the have_settid test so it works on both plain 2.4 and 2.6 kernels.
I think this will also work on SuSE kernels.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2062
2003-11-27 08:11:10 +00:00
Dirk Mueller
f0b609cf65 test for PARENT_SETTID support in clone() of the kernel instead
of testing for presence of NPTL by assuming that sys_futex is only
implemented when its a NPTL patched kernel.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2061
2003-11-27 02:16:41 +00:00
Dirk Mueller
23d88489ff add prefetch(w) support - the 3dnow! version of it. doesn't hurt
supporting and its very easy.

MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2056
2003-11-20 20:45:51 +00:00
Nicholas Nethercote
d6d804d382 Updated all "report bugs to..." messages to point to valgrind.kde.org; also
updated the docs to refer to valgrind.kde.org instead of the old website.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2055
2003-11-20 16:20:55 +00:00
Nicholas Nethercote
b6e961b0bf Improved vg_libpthread's IGNORED/KLUDGED error messages; lots of people found
"kludged" confusing.  Even printing out brief explanations of why functions are
ignored/kludged, in some cases.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2054
2003-11-20 14:23:09 +00:00
Nicholas Nethercote
2b3c517173 Printing usage message to stdout instead of stderr, which seems to be the
standard thing to do.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2053
2003-11-20 10:38:07 +00:00
Dirk Mueller
2c314c8a97 this should fix compilation on weird kernel 2.6.x installations.
CCMAIL: 68360@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2052
2003-11-19 22:07:14 +00:00
Dirk Mueller
c1f0959dfe make it compile on non-C90 compilers. Thanks for the patch.
CCMAIL: 68525-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2051
2003-11-19 22:05:35 +00:00
Dirk Mueller
99bec54aa3 SHUFPD support
MERGE TO STABLE
CCMAIL: 68588-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2050
2003-11-19 22:02:08 +00:00
Dirk Mueller
84dac350b5 add CVTPD2PS support, based on patch by Josef Weidendorfer
MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2044
2003-11-19 17:00:58 +00:00
Dirk Mueller
f633fb1794 trying to fix compilation. Does it work now for everybody?
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2043
2003-11-19 16:54:52 +00:00
Dirk Mueller
69fa3515ae make use of statfs64 and make code blocks adjacent
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2042
2003-11-19 08:56:44 +00:00
Dirk Mueller
abbe971b7c be less verbose by default
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2036
2003-11-19 00:47:00 +00:00
Dirk Mueller
df211b883c raise sanity limit to pass coreutils testsuite
MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2035
2003-11-19 00:45:13 +00:00
Dirk Mueller
c3d9874e22 implement statfs64, utimes and clock_gettime
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2034
2003-11-19 00:43:57 +00:00
Jeremy Fitzhardinge
580110cd33 Add some missing braces.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2032
2003-11-18 16:55:33 +00:00
Robert Walsh
f9ea43d896 Add a facility for tracking open file descriptors. Information about
still open files is dumped out exit.  Enabled using the --track-fds
switch.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2031
2003-11-17 17:45:00 +00:00
Nicholas Nethercote
d38eac1bf6 Made the warning clearer when you try to catch SIGKILL/SIGSTOP. Also made it
clearer what's wrong if you try to catch signals 32 and 33;  they're not bad
signals, just used internally.  Updated one regtest accordingly.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2030
2003-11-17 10:37:19 +00:00