]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
22 years agodon't use acconfig.h anymore because its deprecated with newer autoconf svn/VALGRIND_1_0_BRANCH
Dirk Mueller [Wed, 16 Oct 2002 12:41:06 +0000 (12:41 +0000)] 
don't use acconfig.h anymore because its deprecated with newer autoconf
versions. it will work with old autoconf as well.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1234

22 years agoAdd a suppression for R H 7.3 on i686.
Julian Seward [Sun, 13 Oct 2002 23:03:07 +0000 (23:03 +0000)] 
Add a suppression for R H 7.3 on i686.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1229

22 years agoUpdate detailed bug status for 1.0.4.
Julian Seward [Sun, 13 Oct 2002 21:45:35 +0000 (21:45 +0000)] 
Update detailed bug status for 1.0.4.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1228

22 years agoAdd more stuff.
Julian Seward [Sun, 13 Oct 2002 17:30:52 +0000 (17:30 +0000)] 
Add more stuff.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1227

22 years agoPut __pthread_getspecific_addr inside ifdefs.
Julian Seward [Sun, 13 Oct 2002 17:07:25 +0000 (17:07 +0000)] 
Put __pthread_getspecific_addr inside ifdefs.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1226

22 years agoUpdate docs for 1.0.4, including adding the FAQ.
Julian Seward [Sun, 13 Oct 2002 17:03:36 +0000 (17:03 +0000)] 
Update docs for 1.0.4, including adding the FAQ.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1225

22 years ago---> 1.0.4
Julian Seward [Sun, 13 Oct 2002 15:06:44 +0000 (15:06 +0000)] 
---> 1.0.4

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1224

22 years agoAdd Jeremy Fitzhardinge's --weird-hacks=lax-ioctls patch, and add some docs.
Julian Seward [Sun, 13 Oct 2002 15:06:24 +0000 (15:06 +0000)] 
Add Jeremy Fitzhardinge's --weird-hacks=lax-ioctls patch, and add some docs.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1223

22 years agoCreate __ versions of the select and poll symbols, so that all
Julian Seward [Sun, 13 Oct 2002 14:50:48 +0000 (14:50 +0000)] 
Create __ versions of the select and poll symbols, so that all
references are caught (Jeremy Fitzhardinge)

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1222

22 years agoImplement (sort-of) pthread_attr_{set,get}guardsize.
Julian Seward [Sun, 13 Oct 2002 14:40:29 +0000 (14:40 +0000)] 
Implement (sort-of) pthread_attr_{set,get}guardsize.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1221

22 years agoClarify meanings for leak detection. (Gregory Hosler)
Julian Seward [Sun, 13 Oct 2002 12:45:05 +0000 (12:45 +0000)] 
Clarify meanings for leak detection.  (Gregory Hosler)

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1220

22 years agoAdd ever more new ioctls and syscalls.
Julian Seward [Sun, 13 Oct 2002 12:41:50 +0000 (12:41 +0000)] 
Add ever more new ioctls and syscalls.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1219

22 years agoAdd sem_timedwait(). From Scott Smith <sls@cs.unt.edu>.
Julian Seward [Sun, 13 Oct 2002 12:23:26 +0000 (12:23 +0000)] 
Add sem_timedwait().  From Scott Smith <sls@cs.unt.edu>.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1218

22 years agoChange the capitalisation of Reuben's Mite.
Julian Seward [Sun, 13 Oct 2002 12:11:43 +0000 (12:11 +0000)] 
Change the capitalisation of Reuben's Mite.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1217

22 years agoImplement primary opcode 0x1A (SBB Eb,Gb).
Julian Seward [Sun, 13 Oct 2002 12:10:36 +0000 (12:10 +0000)] 
Implement primary opcode 0x1A (SBB Eb,Gb).

MERGE TO HEAD if it ain't already there

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1216

22 years agomerge revs
Julian Seward [Sun, 13 Oct 2002 11:52:00 +0000 (11:52 +0000)] 
merge revs
   acconfig.h 1.4
   configure.in 1.70
   coregrind/vg_libpthread.c 1.95, 1.97 and 1.98
   coregrind/vg_libpthread_unimp.c 1.33
   coregrind/vg_scheduler.c 1.88
   coregrind/vg_include.h 1.88

Merge support for Red Hat 8 from HEAD.  That means principally the new
thread-specific-data stuff.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1215

22 years agomerge revs:
Julian Seward [Sun, 13 Oct 2002 01:18:49 +0000 (01:18 +0000)] 
merge revs:
   memcheck/mc_include.h,1.5,1.6
   memcheck/mc_main.c,1.14,1.15
   memcheck/mc_translate.c,1.9,1.10
   memcheck/docs manual.html,1.37,1.38
which are:

Incorporate horrible hack to workaround problem of emitting bogus
uninit-value errors on code with inlined strlen() et al from gcc-3.1
and above.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1214

22 years agomerge rev 1.24:
Julian Seward [Sat, 12 Oct 2002 18:32:06 +0000 (18:32 +0000)] 
merge rev 1.24:

From "Francis Lebourse" <flebourse@jetmultimedia.fr>:

[re the ELF symbol reader]

This patch tries to exploit the dynamic symbols of a library if the
standard and debug symbols are missing.

This way, I avoid the "object doesn't have a symbol table message"
message and valgrind is able to print meaningful backtraces (else you
have only "in libsomelib.so"), even in the case of stripped libs.

Since the check of the .dynsym/.dynstr sections is done before the
.symtab/.strtab sections, the previous behavior is preseved for
unstripped libraries.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1212

22 years agomerge rev 1.28:
Julian Seward [Sat, 12 Oct 2002 18:25:42 +0000 (18:25 +0000)] 
merge rev 1.28:

Fixes for the DWARF2 reader, from Josef Weidendorfer:

Attached patch is for the Dwarf2 source line info reader;
For reading, a state machine is used reconstructing source line
info while running and reading (see DWARF2 specification, ch. 6.2).
The state machine was correct, but the calls to addLineInfo()
were wrong: It reported most of the times too small ranges
for source code statements, because it used only the diff of the last
state machine command instead of the diff to the last statement
boundary. Effect: Around 1/3 of all addresses with source line info got
unknown location.
The patch adds a "last_address" to the state machine to remember the last
statement boundary. On reset, it#s initialised to the "invalid" address 0. I
hope this is OK (or should we use "(Addr)-1" instead?).
The patch now uses the "is_stmt" boolean correctly to only call addLineInfo()
if there's a statement boundary (on x86, is_stmt most probably is
always true...).

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1211

22 years agoVG_(client_calloc) was ignoring the --alignment= flag. Fix.
Julian Seward [Sat, 12 Oct 2002 17:55:17 +0000 (17:55 +0000)] 
VG_(client_calloc) was ignoring the --alignment= flag.  Fix.

This problem doesn't appear to exist in the head.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1210

22 years agoRemove all user-visible traces of the --smc-check flag.
Julian Seward [Sat, 28 Sep 2002 12:45:21 +0000 (12:45 +0000)] 
Remove all user-visible traces of the --smc-check flag.

MERGE TO HEAD (I think this is already done, but still)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1132

22 years agoeq_AddrInfo is not currently used
Julian Seward [Sat, 28 Sep 2002 12:37:59 +0000 (12:37 +0000)] 
eq_AddrInfo is not currently used

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1131

22 years agoprintf arg wibble mismatch
Julian Seward [Sat, 28 Sep 2002 12:34:19 +0000 (12:34 +0000)] 
printf arg wibble mismatch

MERGE TO HEAD if applicable

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1130

22 years agosprintf-arg-match wibble
Julian Seward [Sat, 28 Sep 2002 12:32:21 +0000 (12:32 +0000)] 
sprintf-arg-match wibble

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1129

22 years agoImplement missing XCHG insns.
Julian Seward [Sat, 28 Sep 2002 12:21:08 +0000 (12:21 +0000)] 
Implement missing XCHG insns.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1128

22 years agoFix really stupid bug in REP SCAS<sz>.
Julian Seward [Sat, 28 Sep 2002 12:17:20 +0000 (12:17 +0000)] 
Fix really stupid bug in REP SCAS<sz>.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1127

22 years agowibble
Nicholas Nethercote [Tue, 24 Sep 2002 10:53:16 +0000 (10:53 +0000)] 
wibble

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1108

22 years agoAdded fpu_28_108.S which was strangely missing.
Nicholas Nethercote [Tue, 24 Sep 2002 09:37:41 +0000 (09:37 +0000)] 
Added fpu_28_108.S which was strangely missing.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1106

22 years agoAdded fpu-28-108.S which was strangely missing.
Nicholas Nethercote [Tue, 24 Sep 2002 09:37:41 +0000 (09:37 +0000)] 
Added fpu-28-108.S which was strangely missing.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1105

22 years agofinal wibbles for 1.0.3
Julian Seward [Wed, 18 Sep 2002 17:18:23 +0000 (17:18 +0000)] 
final wibbles for 1.0.3

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1078

22 years agoAdd as many suppressions as I reasonably can for SuSE 8.1. There's
Julian Seward [Wed, 18 Sep 2002 17:16:10 +0000 (17:16 +0000)] 
Add as many suppressions as I reasonably can for SuSE 8.1.  There's
still a lot of junk, but that can only be fixed by a more direct
tackling of gcc-3.2's bad habits.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1077

22 years agoRegression test for bug where pthread_kill will deliver a signal to a
Julian Seward [Wed, 18 Sep 2002 15:27:54 +0000 (15:27 +0000)] 
Regression test for bug where pthread_kill will deliver a signal to a
thread even though that thread has the signal blocked.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1076

22 years agoDocument sighandling fix in 1.0.3.
Julian Seward [Wed, 18 Sep 2002 14:56:45 +0000 (14:56 +0000)] 
Document sighandling fix in 1.0.3.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1075

22 years agoFix stupid bug in which vg_push_signal_frame/vg_pop_signal_frame assumed
Julian Seward [Wed, 18 Sep 2002 14:50:57 +0000 (14:50 +0000)] 
Fix stupid bug in which vg_push_signal_frame/vg_pop_signal_frame assumed
that the handler wouldn't change the signal-number parameter it was passed.

Fixes this:
   vg_signals.c:1065 (vgPlain_signal_returns):
   Assertion `sigNo >= 1 && sigNo <= 64' failed.
and possibly arbitrary other mutancy in the signal handling too.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1074

22 years agoUpdates for 1.0.3
Julian Seward [Wed, 18 Sep 2002 13:53:07 +0000 (13:53 +0000)] 
Updates for 1.0.3

MERGE TO ERASER (??)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1073

22 years agopthread_kill would incorrectly deliver a signal to a thread even if
Julian Seward [Wed, 18 Sep 2002 13:52:36 +0000 (13:52 +0000)] 
pthread_kill would incorrectly deliver a signal to a thread even if
the thread currently had the signal blocked.  Fixed.  It _may_ also
fix some assertion failures in scheduler_sanity() in vg_scheduler.c.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1072

22 years agoKludge to work around the problem thatthe /usr/include/sys/user.h on
Julian Seward [Tue, 17 Sep 2002 16:42:36 +0000 (16:42 +0000)] 
Kludge to work around the problem thatthe /usr/include/sys/user.h on
R H 6.2 doesn't define struct user_fpxregs_struct (problem appeared
with Jason Molenda's ptrace patch).

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1019

22 years ago---> 1.0.3
Julian Seward [Tue, 17 Sep 2002 15:54:58 +0000 (15:54 +0000)] 
---> 1.0.3

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1018

22 years agoSource is .tar.bz2 not .tar.gz
Julian Seward [Tue, 17 Sep 2002 15:33:10 +0000 (15:33 +0000)] 
Source is .tar.bz2 not .tar.gz

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1017

22 years agoSupport __NR_mount and __NR_umount.
Julian Seward [Tue, 17 Sep 2002 15:24:09 +0000 (15:24 +0000)] 
Support __NR_mount and __NR_umount.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1016

22 years agoIncrease VG_N_RWLOCKS from 50 to 500.
Julian Seward [Tue, 17 Sep 2002 15:19:16 +0000 (15:19 +0000)] 
Increase VG_N_RWLOCKS from 50 to 500.

MERGE TO STABLE

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1014

22 years agoSupport for __NR_ptrace, thanks to Jason Molenda. Now valgrind can be
Julian Seward [Tue, 17 Sep 2002 14:31:08 +0000 (14:31 +0000)] 
Support for __NR_ptrace, thanks to Jason Molenda.  Now valgrind can be
used to debug GDB.  Bwaha!

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1011

22 years agoresync with reality
Julian Seward [Tue, 17 Sep 2002 14:11:35 +0000 (14:11 +0000)] 
resync with reality

MERGE TO ERASER (will need updating too)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1010

22 years agoImplement __NR_setresgid (170).
Julian Seward [Tue, 17 Sep 2002 14:03:21 +0000 (14:03 +0000)] 
Implement __NR_setresgid (170).

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1009

22 years agomerge revs
Julian Seward [Sun, 15 Sep 2002 11:50:37 +0000 (11:50 +0000)] 
merge revs
   vg_scheduler.c 1.79.4.29
   vg_libpthread. c1.90.4.11

Reduce polling delays in poll(), select(), pause() and in the scheduler
idle loop.  This reduces some strange non-CPU-bound delays under certain
circumstances.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@973

22 years agopartially merge rev 1.1.2.19:
Julian Seward [Sun, 15 Sep 2002 10:20:22 +0000 (10:20 +0000)] 
partially merge rev 1.1.2.19:

Merge AddrErrs more aggressively.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@972

22 years agomerge rev 1.3.8.13:
Julian Seward [Sun, 15 Sep 2002 10:14:10 +0000 (10:14 +0000)] 
merge rev 1.3.8.13:

VG_(eq_ExeContext): don't dereference null e1 or e2.  Seems to fix
some segfaults pertaining to address errors etc.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@971

22 years agoFix bug in 108-byte load/stores.
Julian Seward [Sat, 14 Sep 2002 00:05:23 +0000 (00:05 +0000)] 
Fix bug in 108-byte load/stores.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@959

22 years agoWhen the client tries to __NR_close() our logfile, claim the close
Julian Seward [Fri, 13 Sep 2002 15:38:32 +0000 (15:38 +0000)] 
When the client tries to __NR_close() our logfile, claim the close
succeeded, which is a lie since we just ignore it -- otherwise the
log disappears at that point.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@949

22 years agoAdded Ram Bhamidipaty's wibble patch.
Nicholas Nethercote [Thu, 12 Sep 2002 10:47:07 +0000 (10:47 +0000)] 
Added Ram Bhamidipaty's wibble patch.

Merge to ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@941

22 years agoFixed two CPUID auto-cache detection problems reported by Guillaume Laurent:
Nicholas Nethercote [Wed, 11 Sep 2002 17:13:28 +0000 (17:13 +0000)] 
Fixed two CPUID auto-cache detection problems reported by Guillaume Laurent:

  - Some Intel cases were missing, giving spurious warnings such as:

    --18114-- warning: Unknown Intel cache config value (0x50), ignoring

  - The 0x40 case was wrong... its meaning depends on whether you have a P6
    core ("no L2 cache present") or a P4 core ("no L3 cache present").
    Damn wretched Intel CPUID format.

    I was unwittingly assuming P6 cores which meant that P4 cores reporting
    no L3 got this bogus warning:

    --18114-- warning: L2 cache not installed, ignore L2 results.

    So I now don't do anything for that case, and detect a missing L2 cache
    by checking if its set by any of the other entries.

Turns out neither was affecting the results, but better to get rid of them
anyway.

Guillaume tested the changes for me so hopefully they work.

MeRGe to ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@936

22 years agoAdded cachegrind and vg_annotate to the spec file, as suggested by
Frédéric Gobry [Fri, 6 Sep 2002 12:46:10 +0000 (12:46 +0000)] 
Added cachegrind and vg_annotate to the spec file, as suggested by
Rafael Garcia-Suarez <rgarciasuarez@free.fr>.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@909

22 years agoForgot to mention an important fix.
Julian Seward [Fri, 6 Sep 2002 00:00:05 +0000 (00:00 +0000)] 
Forgot to mention an important fix.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@905

22 years agoUpdate for 1.0.2.
Julian Seward [Thu, 5 Sep 2002 23:17:38 +0000 (23:17 +0000)] 
Update for 1.0.2.

Unsure if this should somehow be merged to ERASER or not.  Maybe.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@904

22 years ago--> 1.0.2
Julian Seward [Thu, 5 Sep 2002 22:55:09 +0000 (22:55 +0000)] 
--> 1.0.2

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@903

22 years agoInclude %defattr(-,root,root) in valgrind.spec.in so that the
Julian Seward [Thu, 5 Sep 2002 22:14:47 +0000 (22:14 +0000)] 
Include %defattr(-,root,root) in valgrind.spec.in so that the
ownership of the files is correct even if a non-root user builds the
RPM package.  (Matthias Andree <matthias.andree@stud.uni-dortmund.de>)

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@902

22 years agoImplement TIOCLINUX (from Pavel Roskin <proski@gnu.org>).
Julian Seward [Thu, 5 Sep 2002 20:33:26 +0000 (20:33 +0000)] 
Implement TIOCLINUX (from Pavel Roskin <proski@gnu.org>).

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@901

22 years agovalgrind's strcmp() implementation (to clients) treats char as signed
Julian Seward [Thu, 5 Sep 2002 20:02:40 +0000 (20:02 +0000)] 
valgrind's strcmp() implementation (to clients) treats char as signed
whereas the libc implementation it replaces treats char as unsigned.
Fix!  God knows how anything much ever worked before now.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@900

22 years agoUse definition of enum __libc_tsd_key_t from glibc 2.2.4 rather than
Julian Seward [Thu, 5 Sep 2002 19:47:46 +0000 (19:47 +0000)] 
Use definition of  enum __libc_tsd_key_t  from glibc 2.2.4 rather than
2.2.2.  This gets rid of the following message:

valgrind's libpthread.so: libc_internal_tsd_get: dubious key 2

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@899

22 years agoImplement primary opcode 0x10 (ADC Gb,Eb).
Julian Seward [Thu, 5 Sep 2002 19:31:23 +0000 (19:31 +0000)] 
Implement primary opcode 0x10 (ADC Gb,Eb).

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@898

22 years agoAvoiding division by zero errors that were truncating results for OpenOffice
Nicholas Nethercote [Tue, 3 Sep 2002 15:09:06 +0000 (15:09 +0000)] 
Avoiding division by zero errors that were truncating results for OpenOffice
with --trace-children=yes.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@864

22 years agoAdded note about Cachegrind's hack treatment of 28/108B FPU instrs to
Nicholas Nethercote [Tue, 3 Sep 2002 14:09:19 +0000 (14:09 +0000)] 
Added note about Cachegrind's hack treatment of 28/108B FPU instrs to
shortcomings list in manual.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@862

22 years agoIn order to handle FPU instructions with data size of 28 and 108 bytes,
Nicholas Nethercote [Tue, 3 Sep 2002 12:26:09 +0000 (12:26 +0000)] 
In order to handle FPU instructions with data size of 28 and 108 bytes,
implemented a hack:  such instructions have their data_size reduced to 16
bytes for cache simulation purposes, to avoid assertion failures coming from
transfers that involve more than two cache lines.  Should occur rarely in
practice.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@861

22 years agoMake file_err() not abort the current process; recover and keep
Julian Seward [Tue, 3 Sep 2002 12:03:23 +0000 (12:03 +0000)] 
Make file_err() not abort the current process; recover and keep
going instead.  This fixes a problem running OpenOffice on cachegrind.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@860

22 years agoFixed a big problem with Cachegrind. I was assuming that any instruction that
Nicholas Nethercote [Mon, 2 Sep 2002 16:08:14 +0000 (16:08 +0000)] 
Fixed a big problem with Cachegrind.  I was assuming that any instruction that
both read and wrote memory must be doing it to the same address, and was thus
modifying it (eg. 'incl').  But some instructions can read and write different
addresses (eg. pushl %eax, (%ebx)).

Also, it wasn't handling 'rep'-prefixed instructions correctly.  The way they
were instrumented meant that an I-cache access was simulated for every
repetition they do, which is most probably not accurate;  only one I-cache
access should be simulated.

Fixed both of these.  Some largeish changes required, unfortunately:

  - Added 'iddCC' type, the cost-centre for instructions that read and write
    different addresses.   Correspondingly added READ_WRITE_CC as a CC_type.

  - Have to do more correspondingly more complicated things to detect what
    CC_type an x86 instruction is.

  - To handle 'rep' prefixes, now do the I-cache access for such instructions
    before the JIFZ UInstr, so only 1 I-cache access is simulated.  D-cache
    accesses are still done in the same place, so they occur once per
    repetition.

  - Changed the cache simulation log functions;  gone from two to five, we now
    have:

        VG_(log_1I_0D_cache_access)
        VG_(log_0I_1D_cache_access)
        VG_(log_1I_1D_cache_access)
        VG_(log_0I_2D_cache_access)
        VG_(log_1I_2D_cache_access)

    This means fewer spill slots (only 2, I think) have the compact call form,
    which is unfortunate.  Although it's not a problem in the ERASER branch in
    which the helpers aren't hard-wired the way they are in this branch.

Hopefully I've got it right, but I bet I haven't.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@856

22 years agoFixed this bug:
Nicholas Nethercote [Fri, 30 Aug 2002 11:05:33 +0000 (11:05 +0000)] 
Fixed this bug:

  valgrind: vg_cachesim.c:389 (get_BBCC): Assertion `((Bool)0) == remove' failed.

Problem was that when an exe segment was unloaded, cachesim_notify_munmap() was
being called after symbols were unloaded.  But it needs the symbols to do the
lookup required to remove the BBCCs.  It was only working some of the time
for exe segments that didn't have any symbols(!)

Fix:  now invalidate translations first, unload symbols second.  This required
adding VG_(is_munmap_exe)() to determine if an unloaded segment is executable.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@839

22 years agoDon't compare actual addresses for FreeErr and FreeMismatchErr. Doing
Julian Seward [Mon, 26 Aug 2002 10:51:01 +0000 (10:51 +0000)] 
Don't compare actual addresses for FreeErr and FreeMismatchErr.  Doing
so generates far too many duplicate errors in some circumstances.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@638

22 years agowibble
Julian Seward [Sun, 25 Aug 2002 20:58:37 +0000 (20:58 +0000)] 
wibble

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@636

22 years agoAdd CURRENT_BUG_STATUS, detailing the 1.0.0 -> 1.0.1 changes.
Julian Seward [Sun, 25 Aug 2002 20:55:25 +0000 (20:55 +0000)] 
Add CURRENT_BUG_STATUS, detailing the 1.0.0 -> 1.0.1 changes.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@635

22 years agoDoc wibble; change $VALGRIND to $VALGRIND_OPTS.
Julian Seward [Sun, 25 Aug 2002 20:10:12 +0000 (20:10 +0000)] 
Doc wibble; change $VALGRIND to $VALGRIND_OPTS.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@634

22 years ago1. The license is actually in the file COPYING, not LICENSE as all
Julian Seward [Sun, 25 Aug 2002 20:07:16 +0000 (20:07 +0000)] 
1.  The license is actually in the file COPYING, not LICENSE as all
    the sources claim.  Automake seems to have some hard-wired notion
    that the license file must be called COPYING, so we have to
    rename in all the source files :-(

2.  Change the license for valgrind.h ONLY to a BSD-style license
    so people can include it in their code.  The entire rest of
    the system remains under the GPL.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@633

22 years ago---> 1.0.1
Julian Seward [Sat, 24 Aug 2002 19:12:07 +0000 (19:12 +0000)] 
---> 1.0.1

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@632

22 years agoPrint a more helpful set of messages when we've run out of memory.
Julian Seward [Sat, 24 Aug 2002 09:47:18 +0000 (09:47 +0000)] 
Print a more helpful set of messages when we've run out of memory.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@631

22 years agoMerge in Nick's final implementation of VG_(strncpy), from ERASER branch.
Julian Seward [Sat, 24 Aug 2002 09:29:03 +0000 (09:29 +0000)] 
Merge in Nick's final implementation of VG_(strncpy), from ERASER branch.

MERGE TO (head, if it isn't ERASER)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@630

22 years agoDo ensure_valgrind() inside __my_pthread_testcancel(). This avoids
Julian Seward [Sat, 24 Aug 2002 09:22:46 +0000 (09:22 +0000)] 
Do ensure_valgrind() inside __my_pthread_testcancel().  This avoids
   vg_libpthread.c:1056 (__my_pthread_testcancel):
   Assertion `res == 0' failed.
when running profiled, threaded programs.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@629

22 years agoGive a binding for vfork() -- just behave like fork(). I hope this
Julian Seward [Sat, 24 Aug 2002 09:19:33 +0000 (09:19 +0000)] 
Give a binding for vfork() -- just behave like fork().  I hope this
is OK.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@628

22 years agoFinish off half-done job for allowing a 4th initial stack value
Julian Seward [Thu, 22 Aug 2002 17:15:15 +0000 (17:15 +0000)] 
Finish off half-done job for allowing a 4th initial stack value
(0xE0000000 - small offset)

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@621

22 years agoFix a couple of doc bugs.
Julian Seward [Wed, 21 Aug 2002 23:05:49 +0000 (23:05 +0000)] 
Fix a couple of doc bugs.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@615

22 years agoHandle startup stacks starting at 0xE0000000.
Julian Seward [Wed, 21 Aug 2002 22:41:35 +0000 (22:41 +0000)] 
Handle startup stacks starting at 0xE0000000.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@614

22 years agoFix for the following:
Julian Seward [Wed, 21 Aug 2002 22:29:14 +0000 (22:29 +0000)] 
Fix for the following:
vg_mylibc:VG_(strncpy)() behaves dubiously -- it can write a
'\0' past the end of the given array.

Possibly accounting for some strange behaviour in the g++3 demangler?

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@613

22 years agoFix a bunch of bogus boundary checks of the form
Julian Seward [Tue, 20 Aug 2002 20:49:10 +0000 (20:49 +0000)] 
Fix a bunch of bogus boundary checks of the form
   if (n < lower_limit && n > upper_limit) {
      /* error case */
   }

The && should really be ||s.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@609

22 years agoImplement __NR_vhangup (syscall 111).
Julian Seward [Tue, 20 Aug 2002 18:29:39 +0000 (18:29 +0000)] 
Implement __NR_vhangup (syscall 111).

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@608

22 years agoMerge rev 1.16.4.8 from ERASER into VALGRIND_1_0_BRANCH:
Julian Seward [Tue, 20 Aug 2002 18:18:54 +0000 (18:18 +0000)] 
Merge rev 1.16.4.8 from ERASER into VALGRIND_1_0_BRANCH:

Added Cyrille Chepelov's patch for identifying cache params of Duron stepping
A0 which has a bug that causes CPUID to misreport L2 cache size.  Untested, I
can only assume it works as I don't have such a machine to try with.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@607

22 years agoImplement __NR_iopl (change I/O privilege level). I suspect this is
Julian Seward [Tue, 20 Aug 2002 18:09:15 +0000 (18:09 +0000)] 
Implement __NR_iopl (change I/O privilege level).  I suspect this is
pretty useless unless the x86 IN/OUT insns are also implemented, but hey.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@606

22 years agoImplement missing FPU ops:
Julian Seward [Mon, 19 Aug 2002 09:13:19 +0000 (09:13 +0000)] 
Implement missing FPU ops:
  FSTSW  m32
  FSAVE  m32
  FRSTOR m32

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@597

22 years agoImplement primary opcode 0x15 (ADC Iv, eAX)
Julian Seward [Mon, 19 Aug 2002 08:37:59 +0000 (08:37 +0000)] 
Implement primary opcode 0x15 (ADC Iv, eAX)

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@596

22 years agoHandle 0xD2 primary opcode (shift-Grp2 Eb, CL)
Julian Seward [Mon, 19 Aug 2002 08:21:09 +0000 (08:21 +0000)] 
Handle 0xD2 primary opcode (shift-Grp2 Eb, CL)

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@595

22 years agoFix stupid bug arising as a result of the call to __libc_freeres() at the
Julian Seward [Fri, 16 Aug 2002 18:51:49 +0000 (18:51 +0000)] 
Fix stupid bug arising as a result of the call to __libc_freeres() at the
end, in which the return value of the process was not correctly propagated.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@594

22 years agoImplement pthread_attr_getdetachstate.
Julian Seward [Fri, 16 Aug 2002 16:50:47 +0000 (16:50 +0000)] 
Implement pthread_attr_getdetachstate.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@593

23 years agobackport -r1.8 patch
Dirk Mueller [Wed, 7 Aug 2002 00:13:10 +0000 (00:13 +0000)] 
backport -r1.8 patch

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@555

23 years agoMerge rev 1.91:
Julian Seward [Tue, 6 Aug 2002 09:06:18 +0000 (09:06 +0000)] 
Merge rev 1.91:

Simulate resolver-specific state as per the real libpthread.so, wherein
the root thread (tid 1) always uses _res as exported from libc.so as its
state.  This fixes the name lookup problems in KAtlantik.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@552

23 years agoThis commit was manufactured by cvs2svn to create branch
no author [Fri, 26 Jul 2002 11:34:39 +0000 (11:34 +0000)] 
This commit was manufactured by cvs2svn to create branch
'VALGRIND_1_0_BRANCH'.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@543

23 years agoWibbles for 1.0.0.
Julian Seward [Fri, 26 Jul 2002 11:34:39 +0000 (11:34 +0000)] 
Wibbles for 1.0.0.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@540

23 years agoOnly run __libc_freeres() when valgrinding. It may do invalid free()s
Julian Seward [Fri, 26 Jul 2002 10:52:48 +0000 (10:52 +0000)] 
Only run __libc_freeres() when valgrinding.  It may do invalid free()s
which cause the low-level memory manager to crash.  When valgrinding
that's all protected, but not when cachegrinding etc.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@537

23 years agoFinal caveats for 1.0.0.
Julian Seward [Thu, 25 Jul 2002 22:45:35 +0000 (22:45 +0000)] 
Final caveats for 1.0.0.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@536

23 years ago--> 1.0.0 (yay!)
Julian Seward [Thu, 25 Jul 2002 22:42:06 +0000 (22:42 +0000)] 
--> 1.0.0 (yay!)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@535

23 years agoPrint more helpful message on JIT failure to handle insns starting with 0x0F.
Julian Seward [Thu, 25 Jul 2002 22:41:40 +0000 (22:41 +0000)] 
Print more helpful message on JIT failure to handle insns starting with 0x0F.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@532

23 years agoSuppressions for R H Limbo (7.3.92)
Julian Seward [Thu, 25 Jul 2002 02:21:53 +0000 (02:21 +0000)] 
Suppressions for R H Limbo (7.3.92)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@531

23 years agoImplement __NR_getxattr.
Julian Seward [Thu, 25 Jul 2002 01:41:01 +0000 (01:41 +0000)] 
Implement __NR_getxattr.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@530

23 years agoTrack ELF frame changes as appearing in Red Hat Limbo (7.3.92).
Julian Seward [Thu, 25 Jul 2002 00:49:51 +0000 (00:49 +0000)] 
Track ELF frame changes as appearing in Red Hat Limbo (7.3.92).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@525