Commit Graph

1311 Commits

Author SHA1 Message Date
Jeremy Fitzhardinge
72bfb346c0 Sigh. Add the test files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2130
2003-12-18 09:08:51 +00:00
Jeremy Fitzhardinge
863238a720 Make rep; nop (pause) yield the thread. Based on a patch by Tom Hughes;
I added a test case and cleaned up vg_dispatch.S while I was about it.
CCMAIL: 69529-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2129
2003-12-18 09:06:09 +00:00
Jeremy Fitzhardinge
5e5641d26b Fix a bug in the last VG_(max_fd) change; VG_(safe_fd) doesn't work before
VG_(max_fd) has been set up.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2128
2003-12-18 07:22:44 +00:00
Jeremy Fitzhardinge
ebe35cedb9 Patch from Tom Hughes: set VG_(max_fd) based on the current file
descriptor limit rather than assuming 1024.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2127
2003-12-18 02:39:22 +00:00
Jeremy Fitzhardinge
f2f0c80b83 An experiment in generating branch-prediction hints. Enable them with
--branchpred=yes.  I'm interested to know if these make a significant
difference for anyone - I see a small speed increase on the Pentium M.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2126
2003-12-18 02:10:54 +00:00
Robert Walsh
f3cc076219 Ignore internal Valgrind file descriptors.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2125
2003-12-18 01:48:06 +00:00
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
1b98c9c51c Back out unintended change
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2120
2003-12-16 02:15:21 +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
d355450b49 Comment re tc size increase.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2111
2003-12-14 14:35:28 +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
Jeremy Fitzhardinge
c0a0101d40 Update regtest to match new error message
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2109
2003-12-14 06:50:36 +00:00
Julian Seward
a357fb40f4 Change date.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2108
2003-12-14 00:27:23 +00:00
Julian Seward
020aaa82b4 ---> 2.1.0
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2107
2003-12-14 00:15:23 +00:00
Julian Seward
dcc198661e Update for 2.1.0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2106
2003-12-14 00:14:54 +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
1c69ebdcb4 Fix yet more "make dist" borkage
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2094
2003-12-04 16:15:25 +00:00
Nicholas Nethercote
9ed3ee613b Add #includes to avoid compile warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2093
2003-12-04 16:12:21 +00:00
Nicholas Nethercote
4fdbe49d12 Fix more "make dist" borkage
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2092
2003-12-04 16:03:54 +00:00
Nicholas Nethercote
458e039447 Fix Makefile.am so "make dist" works.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2091
2003-12-04 15:13:47 +00:00
Nicholas Nethercote
fc9a6bbced Updated the README file. It had lots of out-of-date and incorrect information
in it, much of it from 1.0.X days.  Did it in such a way that if it doesn't get
touched (and it undoubtedly won't) it won't really go out of date, eg. by
removing temporary details like version numbers, dates, details of specific
software incompatibilities.  It's much better to be vague but correct, than
precise but incorrect;  having incorrect info in a file as important as the
README is bad.  Also removed the README_KDE3_FOLKS file because it's pretty
redundant now.  Also added some changes that had been made in the stable branch
but not the HEAD.

Did similar, but smaller changes to README_DEVELOPERS and README_PACKAGERS.

Also updated the valgrind.spec.in file to use the new, post-1.0.X description
in the README.

Also fixed a minor omission in Addrcheck's docs.

MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2089
2003-12-03 21:44:45 +00:00
Nicholas Nethercote
7b31c463e1 Whoops... back out changes accidentally made to this file with the last,
unrelated, commit.  Sorry.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2088
2003-12-02 15:30:28 +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
fd5b4b7fa0 Make --leak-check observe -q properly -- only prints out errors, not general
info and summaries.

MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2082
2003-12-02 10:17:44 +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
924bec2a96 Fix broken assertion, thanks to Tom Hughes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2077
2003-12-01 13:11:47 +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
18564d3066 Remove out-of-date limitations from tech docs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2073
2003-11-30 17:41:45 +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