1248 Commits

Author SHA1 Message Date
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
44be79eb9e pkgconfig support. Patch by Dimitri Papadopoulos
MERGE TO STABLE

CCMAIL: 68566-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2048
2003-11-19 21:50:07 +00:00
Nicholas Nethercote
095472ed9c Fix regtest for change of error message.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2045
2003-11-19 20:09:53 +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
7b252e6097 updating .cvsignore
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2038
2003-11-19 00:55:44 +00:00
Dirk Mueller
2446c65296 only say something if there is something to say
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2037
2003-11-19 00:55:32 +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
Nicholas Nethercote
354e75a208 Support posix_memalign properly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2028
2003-11-15 19:24:08 +00:00
Nicholas Nethercote
fb2d543ee8 Started to rescind the name "skin", replacing it with "tool". Did this in all
the places that normal users will see:

  - command line: --tool=foo (although --skin=foo still works)
  - docs: removed all traces (included renaming coregrind_skins.html to
    coregrind_tools.html)
  - in the usage messages
  - in error messages

Also did in in some places that I judged were unlikely to cause clashes with
existing workspaces:

  - in the header comments of many files (eg. "This file is part of Memcheck, a
    Valgrind tool for...")
  - in the regtests script
  - in the .supp files
  - in AUTHORS
  - in README_MISSING_SYSCALL_OR_IOCTL

Also update the AUTHORS file to mention Jeremy.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2027
2003-11-14 17:47:54 +00:00
Nicholas Nethercote
c4d186f121 Removed no-longer-needed declarations of __SOME_SKIN_H.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2025
2003-11-13 23:02:16 +00:00
Nicholas Nethercote
d1642f0ed8 Greatly improved the symbol table reading code. It was a kludgy, accreted
mess.  Pulled the symbol table reading bit out of vg_read_lib_symbols() into
read_symtab(), in the process removing the awful twice-only loop used to read
the symbol table and the dynamic symbol table.  Factored out the code used to
find sections of interest (eg. .strtab, .symtab, .stabs, .plt, etc), replacing
nine (yes, nine) individual and slightly differing searches.

It's now much easier to understand, 132 lines shorter, and provides a better
base for easily doing more complicated debug stuff, eg. when we start reading
in all the debugging info (such as .debug_info for dwarf2).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2024
2003-11-13 22:34:00 +00:00
Nicholas Nethercote
4126f4b26e Remove local shellshort function, use the standard VG_(ssort).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2023
2003-11-13 21:50:45 +00:00
Nicholas Nethercote
1be389cee1 Remove the Memcheck==Valgrind fallacy from Memcheck's start-up message.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2022
2003-11-13 17:57:18 +00:00
Nicholas Nethercote
e9a3bff869 Changed error messages: subsidiary explanations within an error message are now
indented one space;  previously it was mixed, but Memcheck/Addrcheck indented
"Address" lines 3, which made them hard to see in the stack trace.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2021
2003-11-13 17:53:43 +00:00
Nicholas Nethercote
d7bfd760a8 Changed error messages: now don't print anything below main() unless the new
option --show-below-main is on.  It's on by default.  It also affects
suppressions generated with --gen-suppressions=yes.  Updated reg tests
accordingly.

Also updated docs for this.  And added some missing command-line args to docs.
Also compartmentalised the options a little in the docs, and rearranged the
order of options in the usage message, in anticipation of a bigger
rearrangement that will be necessary soon -- to distinguish options used by all
skins from those used by error-checking skins, to skin-specific ones.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2020
2003-11-13 17:35:04 +00:00
Nicholas Nethercote
5de6ace29c Be quieter.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2019
2003-11-13 16:49:22 +00:00
Jeremy Fitzhardinge
f15fa06f97 Fix some (bone-headed) loose ends left by my last checkin. "make regtest"
actually works this time.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2018
2003-11-10 21:21:00 +00:00
Nicholas Nethercote
8166b6f985 Don't print this debug msg if -q is on.
MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2017
2003-11-10 13:26:49 +00:00
Jeremy Fitzhardinge
64b0808872 Only set the thread's status to WaitSys if we're actually waiting for
a proxyLWP to complete a syscall.

Update sigaltstack test to use mmap to allocate the stack.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2016
2003-11-09 09:51:33 +00:00
Jeremy Fitzhardinge
4eac75bf3e Fix some bugs in syscall/signal handling:
If the proxyLWP for a thread got a signal just as we were sending the
syscall request to it, then we would end up running the syscall twice.
The fix is to not check the results pipe while sending the syscall request
- wait until we're in a better state for handling signals (the deadlock
the results-read was supposed to avoid cannot actually happen).

Related to that, if we're delivering a signal to a thread, and that thread
is currently waiting for a syscall to complete, make sure we collect the
syscall results before entering the signal handler (otherwise we may end
up bogusly trying to restart the syscall by moving EIP back, even though
it now points to the signal handler rather than the syscall instruction)

This change also adds an assertion to VG_(restart_syscall) to make sure
we were actually restarting a syscall and not just randomly changing EIP
(this found the problem above).

Also, make set/getitimer run in the proxyLWP context, so that they
modify/read the proxyLWP's timers rather than the schedluer LWP's timers.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2013
2003-11-07 23:09:48 +00:00
Nicholas Nethercote
6828a1cbeb Filter out line numbers in vg_scheduler.c in Helgrind's regtests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2012
2003-11-06 11:34:52 +00:00
Julian Seward
083ea7f867 It's not good that the head claims to be some old stable version.
Change the version number to 'HEAD'.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2007
2003-11-06 00:03:20 +00:00
Julian Seward
e215c37a9b Change VG_CORE_INTERFACE_MAJOR_VERSION to 5.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2006
2003-11-05 23:59:21 +00:00
Julian Seward
4201614f47 More SSE support for cachegrind.
MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2003
2003-11-04 22:54:28 +00:00
Helio Chissini de Castro
d99d4203ee - Fix for kernel 2.6. __user need definition.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2001
2003-11-04 12:53:59 +00:00
Helio Chissini de Castro
5181412cab - Fix for kernel 2.6. __user need definition.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1999
2003-11-04 12:33:29 +00:00
Julian Seward
5a67bdae1f If we bomb out due to not finding the executable, print our invokation
name.  Before:

   'ssss' not found in $PATH, aborting.

After:

   ./Inst/bin/valgrind: 'ssss' not found in $PATH, aborting.

(Already in STABLE).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1994
2003-11-04 07:12:06 +00:00
Nicholas Nethercote
450e4bc293 Move var declarations to start of block, for older versions of gcc.
MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1985
2003-11-03 11:12:02 +00:00
Nicholas Nethercote
bbfc62ea8c Fixed bug in overlap check in strncpy() -- it was assuming the src was 'n'
bytes longs, when it could be shorter, which could cause false positives.

Added an example of this to the regtest.

MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1983
2003-11-02 17:43:27 +00:00
Nicholas Nethercote
9c8cc2ba2b Implemented PUSH/POP %{FS,GS}, and PUSH %CS (Nb: there is no POP %CS). Based
on patches from Adam Gundy and Tom Hughes.

MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1982
2003-11-02 17:00:23 +00:00
Nicholas Nethercote
c2e7583aa8 Updated FAQ #8, to reflect the fact that we now support a lot of SSE/SSE2
instructions.

MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1981
2003-11-02 16:32:05 +00:00
Nicholas Nethercote
858c09b74c Deleted FAQ #2, as it is no longer relevant for the head, thanks to Jeremy's
syscalls changes.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1980
2003-11-02 16:27:39 +00:00
Nicholas Nethercote
91686661b2 Make the startup static and suid checks follow symlinks.
Also a couple of minor formatting changes.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1979
2003-11-01 14:49:58 +00:00
Nicholas Nethercote
ddc388cfd7 Add missing printf and pre_mem_read to rt_sigtimedwait(), thanks to Thomas
Lussnig <lussnig@smcc.net>.

MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1978
2003-11-01 14:03:37 +00:00
Dirk Mueller
a38191f22b fix 'make dist'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1977
2003-11-01 01:59:23 +00:00
Jeremy Fitzhardinge
d6fb2a6d85 Oops, add new files
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1976
2003-10-31 18:52:18 +00:00
Jeremy Fitzhardinge
541f9f86f8 Fix --trace-malloc=yes, by using client-side VALGRIND_INTERNAL_PRINTF
to print the allocation traces rather than trying to directly use
VG_(printf).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1975
2003-10-31 07:13:41 +00:00
Jeremy Fitzhardinge
65649c9d47 Patch from Robert Walsh <rjwalsh@durables.org>. Adds some new client
requests to allow client code to print messages through Valgrind's
logging mechanism.  The new requests are:
  VALGRIND_PRINTF - do a normal printf (prefixed with **PID**)
  VALGRIND_PRINTF_BACKTRACE - do a printf with stack trace
  VALGRIND_INTERNAL_PRINTF - printf, but for internal use (prefixed with ==PID==)
  VALGRIND_INTERNAL_PRINTF_BACKTRACE - as above, with backtrace


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1974
2003-10-31 07:12:21 +00:00
Dirk Mueller
0a9c792ab0 fixes .cfi configure problem. apparently compiling is not enough
to invoke the gnu as in all cases.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1973
2003-10-31 03:43:48 +00:00
Dirk Mueller
a32b99ae1f there have been reports that "stat" is not portable enough.
MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1972
2003-10-30 13:49:36 +00:00
Dirk Mueller
257aef7070 for some reason I need that to make it compile on suse 9
MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1971
2003-10-30 13:41:26 +00:00