Commit Graph

26 Commits

Author SHA1 Message Date
Frédéric Gobry
9158ab04e5 added rules to generate libpthread.so
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@54
2002-04-12 13:32:11 +00:00
Julian Seward
d9f72279d7 Oops! An important file I forgot to add (is part of the pthread_
mega-merge).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@53
2002-04-12 11:49:29 +00:00
Julian Seward
7a36f60133 Mega-merge of my last 2 weeks hacking. This basically does the groundwork
for pthread_* support.  Major changes:

* Valgrind now contains a (skeletal!) user-space pthreads
  implementation.  The exciting bits are in new file vg_scheduler.c.
  This contains thread management and scheduling, including nasty crud
  to do with making some syscalls (read,write,nanosleep) nonblocking.
  Also implementation of pthread_ functions: create join
  mutex_{create,destroy,lock,unlock} and cancel.

* As a side effect of the above, major improvements to signal handling
  and to the client-request machinery.  This is now used to intercept
  malloc/free etc too; the hacky way this is done before is gone.
  Another side effect is that vg_dispatch.S is greatly simplified.
  Also, the horrible hacks to do with delivering signals to threads
  blocked in syscalls are gone, since the new mechanisms cover this case
  easily.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@52
2002-04-12 11:12:52 +00:00
Julian Seward
1271ae8557 New files to support pthreads.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@51
2002-04-12 10:26:32 +00:00
Frédéric Gobry
8185e4582f splitted the suppression files so that default.supp can be created by picking
from the library specific supp files.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@45
2002-04-04 09:18:39 +00:00
Julian Seward
232f2a3c57 (VG_(do__NR_sigaction)): Don't allow setting of
handlers for SIGKILL or SIGSTOP.  This fixes
valgrind: vg_signals.c:723 (vgPlain_do__NR_sigaction):
Assertion `our_old_handler == ((void *)0)' failed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@40
2002-03-29 14:02:34 +00:00
Julian Seward
df8253eda3 Significantly improved SYSV IPC call handling. Unfortunately some of
this stuff doesn't use safe_dereference when it should.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@38
2002-03-29 04:35:08 +00:00
Frédéric Gobry
94f4cbf5ad Applied patch from Simon Hausmann <hausmann@kde.org> to enable automake1.5
compilation, except for the use of $(EXEEXT) which generates annoying warnings.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@34
2002-03-26 20:44:55 +00:00
Julian Seward
eb920f9f85 Change VG_N_EPOCHS to 20000 to avoid resolution loss for long-running
loops.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@33
2002-03-25 02:02:52 +00:00
Julian Seward
2ec0ebd9dc Add experimental omission of V-bits for address values, using
--check-addrVs=no.  The default behaviour, =yes, is the original
behaviour.  So far this is undocumented.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@32
2002-03-25 00:07:36 +00:00
Frédéric Gobry
61a11f917a added a bzdist target
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@31
2002-03-24 18:01:46 +00:00
Julian Seward
5b1ca0492b Detect FPU instructions which set %EFLAGS and mark the resulting
UInstrs accordingly.  Fixes a bug in the simulated CPU in which the
results of f{u}comi{p} FPU insns were ignored, potentially leading to
wrong program behaviour.  This will only have happened to people using
P6/P7/K7 class CPUs.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@30
2002-03-24 13:52:19 +00:00
Julian Seward
990cfcba30 Remove mention of vg_version.h.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@28
2002-03-24 12:32:13 +00:00
Julian Seward
fe84217f78 Use autoconf tests for glibc version in argc/argv/envp search.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@27
2002-03-24 12:22:39 +00:00
Julian Seward
bd48889f4a Fix plumbing of version number from config.h to vg_main.c
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@26
2002-03-24 12:18:35 +00:00
Julian Seward
6b710076fa Print suggested fix to avoid this panic:
VG_ASSUMED_EXE_BASE doesn't match reality


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@23
2002-03-24 12:03:00 +00:00
Julian Seward
13c77e7c76 Implement DAA as well as DAS. Byrial Jensen <byrial@image.dk>
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@22
2002-03-24 11:54:07 +00:00
Julian Seward
5b93a2116c Markup wibbles.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@19
2002-03-24 11:31:13 +00:00
Julian Seward
0523b62608 Change message "Use of uninitialized CPU condition code" to
"Conditional jump or move depends on uninitialised value(s)", since
that will be more meaningful to most programmers.  Also change the
suppression-kind to Cond in .supp files.  The old Value0 descriptor
means the same and is still accepted.  Suggested by Joe Buck
<Joe.Buck@synopsys.com>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@18
2002-03-24 11:29:13 +00:00
Julian Seward
66c4d5263b (merge from 20020320)
Syscalls/ioctls added between 0317 and 0320.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15
2002-03-24 10:17:25 +00:00
Julian Seward
e6cde31da7 (merge from 20020320)
(commented out): sleep(10) at startup to give enough time to attach GDB.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14
2002-03-24 10:05:14 +00:00
Julian Seward
ff2c1db04a (merge from 20020320)
Modify codegen_SAHF so the instrumenter doesn't generate spurious
value errors if parts of %eax other than %ah are undefined.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13
2002-03-24 10:03:17 +00:00
Julian Seward
01772f27ae (merge from 20020320)
Implement x86 das instruction.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12
2002-03-24 10:00:09 +00:00
Julian Seward
db5f7ae5a8 (merge from 20020320)
Allow suppressions with only a single level of backtrace, for suppressing
against libraries compiled with -fomit-frame-pointer.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11
2002-03-24 09:45:26 +00:00
Frédéric Gobry
b17d5d40a3 improved the build system
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9
2002-03-22 13:38:30 +00:00
Julian Seward
72a784f3b1 Initial revision
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2
2002-03-22 01:27:54 +00:00