]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
22 years agoWhoops, meant to add this with the rest of Massif.
Nicholas Nethercote [Sat, 14 Feb 2004 16:46:17 +0000 (16:46 +0000)] 
Whoops, meant to add this with the rest of Massif.

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

22 years agoAdding Massif, the heap profiler.
Nicholas Nethercote [Sat, 14 Feb 2004 16:40:02 +0000 (16:40 +0000)] 
Adding Massif, the heap profiler.

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

22 years agoNow doing pre_mem_read()s on the args to execve(), so eg. Memcheck can check
Nicholas Nethercote [Thu, 12 Feb 2004 14:34:14 +0000 (14:34 +0000)] 
Now doing pre_mem_read()s on the args to execve(), so eg. Memcheck can check
them.  Added a regtest for this.

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

22 years agoAdd files I forgot to when I committed Tom Hughes' patch for bug 73907.
Nicholas Nethercote [Thu, 12 Feb 2004 08:35:57 +0000 (08:35 +0000)] 
Add files I forgot to when I committed Tom Hughes' patch for bug 73907.

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

22 years agoHeroic patch from Tom Hughes:
Nicholas Nethercote [Wed, 11 Feb 2004 23:33:29 +0000 (23:33 +0000)] 
Heroic patch from Tom Hughes:

  This patch adds translation tests for most of the basic x86 instructions and
  fixes a few missing/broken instructions to work properly.

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

22 years agoAdded support for epoll.
Nicholas Nethercote [Tue, 10 Feb 2004 23:44:15 +0000 (23:44 +0000)] 
Added support for epoll.

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

22 years agoFix for bug 73326. It seems that gcc 3.2.2 is generating negatively-sized
Jeremy Fitzhardinge [Thu, 5 Feb 2004 22:58:37 +0000 (22:58 +0000)] 
Fix for bug 73326.  It seems that gcc 3.2.2 is generating negatively-sized
scopes and out of order line number information in the stabs debug info.
I wonder if this is the stabs writer rotting now that dwarf is the
default...

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

22 years agoFix broken "make dist".
Nicholas Nethercote [Thu, 5 Feb 2004 14:27:36 +0000 (14:27 +0000)] 
Fix broken "make dist".

Doesn't fix "make distcheck", however, because this happens:

  /usr/bin/ld: cannot open linker script file ../../coregrind/x86/stage2.lds:
  No such file or directory

For some reason I can't work out, that file is built when you make in a CVS
tree, or manually from a "make dist" tarball, but not when you "make
distcheck".

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

22 years agoKilled the terminally wounded --stop-after option.
Nicholas Nethercote [Sun, 1 Feb 2004 17:29:59 +0000 (17:29 +0000)] 
Killed the terminally wounded --stop-after option.

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

22 years agoNo longer showing debugging options for --help; only for the newly added
Nicholas Nethercote [Sat, 31 Jan 2004 22:55:15 +0000 (22:55 +0000)] 
No longer showing debugging options for --help;  only for the newly added
--help-debug.

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

22 years agoRearrange CPUID again. Moved most of the helper logic into C, since
Jeremy Fitzhardinge [Mon, 26 Jan 2004 21:11:51 +0000 (21:11 +0000)] 
Rearrange CPUID again.  Moved most of the helper logic into C, since
the assember was getting fiddly.  It now masks out only the undefined
or unimplemented parts of the feature set bits, so it now passes through
all the non-ISA-related feature bits to clients.

It also leaves the vendor ID string unmolested, so that clients can
extract vendor-specific information like extended brand strings and
cache/TLB configuration info.

It does, however, implement some Valgrind-specific requests at 0xd8000000,
though at present the only functionality is the ValgrindVCPU signature.

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

22 years ago"VG_AR_SKIN" --> "VG_AR_TOOL"
Nicholas Nethercote [Mon, 26 Jan 2004 17:24:42 +0000 (17:24 +0000)] 
"VG_AR_SKIN" --> "VG_AR_TOOL"

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

22 years agoMade code more concise. In particular:
Nicholas Nethercote [Mon, 26 Jan 2004 17:14:17 +0000 (17:14 +0000)] 
Made code more concise.  In particular:

  - introduced DIS() and DIP() macros to shorten debug printing

  - introduce jmp_lit(), jcc_lit(), jmp_treg() for common UCode sequences

  - replace many unnecessary dis?dis_buf:NULL tests with dis_buf, by
    changing the tests in disAMode()

Overall, reduced code size by about 230 lines.

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

22 years agoPatch from Tom Hughes:
Nicholas Nethercote [Mon, 26 Jan 2004 17:10:01 +0000 (17:10 +0000)] 
Patch from Tom Hughes:

    Patch to provide a proper environment to the debugger

    Although this patch isn't strictly needed to allow alternative debuggers to
    be used, it is needed if you want to use an X based debugger such as ups
    (and presumably ddd) as VG_(system) has until now passed an empty
    enviroment when starting the debugger but that causes DISPLAY to be lost.

    This patch causes VG_(system) to pass a copy of the client environment
    instead, with the necessary mashing done to clean up the LD_xxx variables.

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

22 years agoPatch from Tom Hughes:
Nicholas Nethercote [Mon, 26 Jan 2004 16:48:06 +0000 (16:48 +0000)] 
Patch from Tom Hughes:

    Patch to allow debuggers other than GDB to be used

    The patch replaces --gdb-attach and --gdb-path with --db-attach and
    --db-command which are more general. The --db-command switch takes a
    command string that can contain one or more instances of %p and %f markers.
    The %p marker is replaced with the PID of the process to attach to and the
    %f marker with the filename of the executable being attached to.

    The default command is "gdb -nw %f %p" which gaves the same result as
    currently.

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

22 years agoRemove some small unnecessary, out-of-date bits
Nicholas Nethercote [Mon, 26 Jan 2004 14:51:40 +0000 (14:51 +0000)] 
Remove some small unnecessary, out-of-date bits

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

22 years agoFix comment
Nicholas Nethercote [Mon, 26 Jan 2004 14:50:45 +0000 (14:50 +0000)] 
Fix comment

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

22 years agostaticalise
Nicholas Nethercote [Sun, 25 Jan 2004 20:33:53 +0000 (20:33 +0000)] 
staticalise

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

22 years agoAnti-globalisation
Nicholas Nethercote [Sun, 25 Jan 2004 19:30:29 +0000 (19:30 +0000)] 
Anti-globalisation

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

22 years agoOops, make base static.
Jeremy Fitzhardinge [Sun, 25 Jan 2004 03:44:18 +0000 (03:44 +0000)] 
Oops, make base static.

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

22 years agoDon't use TSC for internal timing purposes. This is for two reasons:
Jeremy Fitzhardinge [Sun, 25 Jan 2004 03:32:58 +0000 (03:32 +0000)] 
Don't use TSC for internal timing purposes.  This is for two reasons:
 - old CPUs (and their modern embedded clones) don't implement the TSC
 - new machines with power management, the TSC changes rate, and so is
   useless as a timebase
Valgrind doesn't use read_millisecond_timer very much these days, so
the expense of doing a gettimeofday syscall shouldn't be a huge issue.
Naturally, rdtsc is still available for client purposes (if the host CPU
supports it).

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

22 years agoVirtualize CPUID. Rather than just using the host CPU's CPUID,
Jeremy Fitzhardinge [Sun, 25 Jan 2004 02:38:29 +0000 (02:38 +0000)] 
Virtualize CPUID.  Rather than just using the host CPU's CPUID,
we now completely virtualize it.  The feature flags returned are the
intersection of the set the CPU supports, and the set of flags Valgrind
supports.  This turns out to be a small number of features, like FPU,
TSC, MMX, SSE, SSE2, FXSR.  All mention of things which are only useful
to kernel-mode code are also suppressed.  This CPUID doesn't support
any extended feature flags, or extended CPUID operations.  It returns a
vendor string of "ValgrindVCPU".

If the host CPU doesn't support CPUID, then we make sure we treat it as
an illegal instruction (I'm not sure if we handle the eflags bit toggle
test right).  This is because the CPUID helper doesn't actually use the
cpuid instruction in all cases, so it may succeed where the host CPU
wouldn't (other instructions which depend on feature flags will end up
generating those instructions, so they'll endup generating a SIGILL if
client code uses them on a CPU which doesn't support them).

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

22 years agodon't mess with prefix.
Dirk Mueller [Sat, 24 Jan 2004 22:32:56 +0000 (22:32 +0000)] 
don't mess with prefix.
CCMAIL: 72784-done@bugs.kde.org

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

22 years agoForgot to remove this.
Nicholas Nethercote [Sat, 24 Jan 2004 20:29:43 +0000 (20:29 +0000)] 
Forgot to remove this.

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

22 years agoMoved stage2.c into vg_main.c. Merged main() and VG_(main)(); VG_(main)()
Nicholas Nethercote [Sat, 24 Jan 2004 18:18:54 +0000 (18:18 +0000)] 
Moved stage2.c into vg_main.c.  Merged main() and VG_(main)();  VG_(main)()
no longer exists.  One advantage of this is that global
variables/structures needed for communicating between the two can be made
local.  Also, the order in which things happen has been simplified.

This is mostly just a big refactoring.  Startup is now a fair bit easier to
understand.  Dependencies between the various startup stages are fairly well
documented in comments.  Also, --help and --version now work properly --
eg. --help gives tool-specific help if --tool was specified.  There is still
some parts where things could be reordered and/or simplified, and where the
dependencies aren't clear.  These are marked with 'XXX'.

One new feature was added: ability to read options from ~/.valgrindrc and
./.valgrindrc.  Part of this is support for specifying tool-specific options
in the form --toolname:tool-specific-option.

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

22 years agoFix bug 73219. This adds a general mechanism for querying the host CPU's
Jeremy Fitzhardinge [Fri, 23 Jan 2004 23:09:01 +0000 (23:09 +0000)] 
Fix bug 73219.  This adds a general mechanism for querying the host CPU's
capabilities, and uses it to see if it has SSE/SSE2/fxsave support before
trying to use fxsave at startup.

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

22 years agoMake output more thread-independent.
Nicholas Nethercote [Wed, 21 Jan 2004 17:40:16 +0000 (17:40 +0000)] 
Make output more thread-independent.

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

22 years agoChange test so output doesn't depend on thread scheduling.
Nicholas Nethercote [Wed, 21 Jan 2004 17:34:56 +0000 (17:34 +0000)] 
Change test so output doesn't depend on thread scheduling.

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

22 years agoFix a bug in Cachegrind: when invalidating BBs, the lookup in the BBCC_table
Nicholas Nethercote [Wed, 21 Jan 2004 16:12:55 +0000 (16:12 +0000)] 
Fix a bug in Cachegrind:  when invalidating BBs, the lookup in the BBCC_table
sometimes failed, causing an assertion failure.  This is because the debug
info for the code address, which is used in the lookup,
can change -- eg. "myprint.c:myprint()" is found at instrumentation, but by the
time the invalidation occurs, it's changed to "myprint.c:???".  So it now falls
back to a slow exhaustive search of the table.

This was causing cachegrind/tests/dlclose to fail, and should hopefully fix
bug #72781.

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

22 years agoConvert "skin" to "tool" in various places; almost entirely within comments,
Nicholas Nethercote [Wed, 21 Jan 2004 15:08:04 +0000 (15:08 +0000)] 
Convert "skin" to "tool" in various places;  almost entirely within comments,
nothing that will affect code.

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

22 years agoUpdated the manual for some recent changes, esp. the fact that Memcheck is no
Nicholas Nethercote [Wed, 21 Jan 2004 13:59:23 +0000 (13:59 +0000)] 
Updated the manual for some recent changes, esp. the fact that Memcheck is no
longer the default.

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

22 years agoThis change implements the TLS extension to the x86 ABI. This allows
Jeremy Fitzhardinge [Wed, 21 Jan 2004 01:27:27 +0000 (01:27 +0000)] 
This change implements the TLS extension to the x86 ABI.  This allows
threads to have thread-private data which is quickly accessible via a
segment in the GDT, stored in %gs.  The patch implements the relevent
syscalls (setthreadarea), and also manages switching the VCPU's segment
information at thread context-switch time.  Mostly Tom Hughes' work.

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

22 years agoSmall update about unimplemented instructions.
Jeremy Fitzhardinge [Wed, 21 Jan 2004 01:21:29 +0000 (01:21 +0000)] 
Small update about unimplemented instructions.

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

22 years agoHasn't this been added already?
Jeremy Fitzhardinge [Wed, 21 Jan 2004 01:20:38 +0000 (01:20 +0000)] 
Hasn't this been added already?

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

22 years agoPatch to add support for the alternate MOVQ encoding, from Tom Hughes.
Nicholas Nethercote [Tue, 20 Jan 2004 22:28:26 +0000 (22:28 +0000)] 
Patch to add support for the alternate MOVQ encoding, from Tom Hughes.

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

22 years agoFrom Tom Hughes: patch to report port numbers correctly
Nicholas Nethercote [Tue, 20 Jan 2004 14:43:42 +0000 (14:43 +0000)] 
From Tom Hughes: patch to report port numbers correctly

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

22 years agoAdding files from Tom Hughes' SSE-completion patch, which I forgot yesterday.
Nicholas Nethercote [Tue, 20 Jan 2004 09:24:53 +0000 (09:24 +0000)] 
Adding files from Tom Hughes' SSE-completion patch, which I forgot yesterday.

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

22 years agoUpdate limitations section: merge some old changes from 2.0.0 branch, and some
Nicholas Nethercote [Mon, 19 Jan 2004 22:20:38 +0000 (22:20 +0000)] 
Update limitations section: merge some old changes from 2.0.0 branch, and some
new changes that only apply to HEAD.

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

22 years agoSome clarifications to README_MISSING_SYSCALL_OR_IOCTL.
Jeremy Fitzhardinge [Mon, 19 Jan 2004 22:02:43 +0000 (22:02 +0000)] 
Some clarifications to README_MISSING_SYSCALL_OR_IOCTL.

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

22 years agoReduce the pounding.
Jeremy Fitzhardinge [Mon, 19 Jan 2004 21:47:52 +0000 (21:47 +0000)] 
Reduce the pounding.

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

22 years agoAdd some comments
Jeremy Fitzhardinge [Mon, 19 Jan 2004 21:47:25 +0000 (21:47 +0000)] 
Add some comments

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

22 years agoRemove unnecessary line
Nicholas Nethercote [Mon, 19 Jan 2004 21:35:52 +0000 (21:35 +0000)] 
Remove unnecessary line

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

22 years agoUpdate instructions for FV.
Nicholas Nethercote [Mon, 19 Jan 2004 19:32:30 +0000 (19:32 +0000)] 
Update instructions for FV.

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

22 years agoPatch from Tom Hughes, for bug 72643:
Nicholas Nethercote [Mon, 19 Jan 2004 19:14:18 +0000 (19:14 +0000)] 
Patch from Tom Hughes, for bug 72643:

  Patch to improve SSE/SS2 support

  This patch should implement most of the missing SSE/SSE2 opcodes. About
  the only ones it doesn't do are the MASKMOVxxx ones as they are quite
  horrible and involved an implicit reference to EDI so I need to think
  about them a bit more.

  The patch also includes a set of tests for the MMX/SSE/SSE2 opcodes to
  validate that they have the same effect under valgrind as they do when
  run normally. In one or two cases this wasn't actually the case even
  for some of the implemented opcodes, so I fixed those as well ;-)

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

22 years agoUpdated example Makefile.am for recent FV changes.
Nicholas Nethercote [Mon, 19 Jan 2004 15:45:27 +0000 (15:45 +0000)] 
Updated example Makefile.am for recent FV changes.

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

22 years agoOops, add missing file.
Jeremy Fitzhardinge [Fri, 16 Jan 2004 05:37:46 +0000 (05:37 +0000)] 
Oops, add missing file.

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

22 years agoAdd other .exp file for exec-sigmask.
Jeremy Fitzhardinge [Fri, 16 Jan 2004 02:19:15 +0000 (02:19 +0000)] 
Add other .exp file for exec-sigmask.

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

22 years agoFix bug 72484. Set the process signal mask to match the client's before
Jeremy Fitzhardinge [Fri, 16 Jan 2004 02:17:30 +0000 (02:17 +0000)] 
Fix bug 72484.  Set the process signal mask to match the client's before
running exec.

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

22 years agoFix bug 72650. Only restart syscalls on signal if the client asked for it.
Jeremy Fitzhardinge [Fri, 16 Jan 2004 02:15:23 +0000 (02:15 +0000)] 
Fix bug 72650.  Only restart syscalls on signal if the client asked for it.

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

22 years agoRemove address from output, which varies from machine to machine and causes
Nicholas Nethercote [Fri, 9 Jan 2004 16:15:06 +0000 (16:15 +0000)] 
Remove address from output, which varies from machine to machine and causes
failure.

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

22 years agoyet another SSE insn (rsqrtss)
Dirk Mueller [Wed, 7 Jan 2004 19:07:02 +0000 (19:07 +0000)] 
yet another SSE insn (rsqrtss)

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

22 years agoFix "make dist"
Jeremy Fitzhardinge [Wed, 7 Jan 2004 08:47:44 +0000 (08:47 +0000)] 
Fix "make dist"

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

22 years agoMake badrw.c conform to C89; split things onto separate lines so it's
Jeremy Fitzhardinge [Wed, 7 Jan 2004 08:47:03 +0000 (08:47 +0000)] 
Make badrw.c conform to C89; split things onto separate lines so it's
clear what the messages are talking about.

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

22 years agoFix for bug 72006 by Tom Hughes: report proper error returns for mmap()
Jeremy Fitzhardinge [Wed, 7 Jan 2004 08:44:43 +0000 (08:44 +0000)] 
Fix for bug 72006 by Tom Hughes: report proper error returns for mmap()

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

22 years agoMake fork test deterministic.
Jeremy Fitzhardinge [Tue, 6 Jan 2004 21:46:02 +0000 (21:46 +0000)] 
Make fork test deterministic.

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

22 years agoRemoved files I meant to with the last commit.
Nicholas Nethercote [Tue, 6 Jan 2004 16:08:31 +0000 (16:08 +0000)] 
Removed files I meant to with the last commit.

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

22 years agoremove anonymous unions - not supported by older versions of gcc.
Dirk Mueller [Tue, 6 Jan 2004 16:02:29 +0000 (16:02 +0000)] 
remove anonymous unions - not supported by older versions of gcc.

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

22 years agoMake --gdb-attach=yes work properly; rather than trying to attach gdb
Jeremy Fitzhardinge [Tue, 6 Jan 2004 00:18:21 +0000 (00:18 +0000)] 
Make --gdb-attach=yes work properly; rather than trying to attach gdb
to itself, Valgrind forks a child, and uses ptrace to manipulate its
state into what the client state would be at that point, and attaches
gdb to that.  In addition to giving gdb clean state to inspect, it
also stops mistakes in gdb (eg, continuing) from killing your target.
It also makes gdb strictly read-only; any state changes made from within
gdb will not be reflected in the running client.  Patch from Tom Hughes.

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

22 years agoMove logfile fd into safe range.
Jeremy Fitzhardinge [Tue, 6 Jan 2004 00:15:26 +0000 (00:15 +0000)] 
Move logfile fd into safe range.

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

22 years agoDebork regtests
Jeremy Fitzhardinge [Mon, 5 Jan 2004 01:02:10 +0000 (01:02 +0000)] 
Debork regtests

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

22 years agoFix problem with trace-children=yes when using a tool which replaces
Jeremy Fitzhardinge [Sun, 4 Jan 2004 23:52:59 +0000 (23:52 +0000)] 
Fix problem with trace-children=yes when using a tool which replaces
malloc.  The problem was that LD_PRELOAD was being left set with
our replacement .so files, which meant they were being applied to
stage1/stage2.  This caused malloc to fail and a subsequent SIGSEGV.
This change unconditionally removes all of Valgrind's special environment
before each execve, since it will be replaced as needed by the child
Valgrind.

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

22 years agoSupport for FXSAVE/FXRSTOR (Tom Hughes). Fixes #71180.
Julian Seward [Sun, 4 Jan 2004 23:30:55 +0000 (23:30 +0000)] 
Support for FXSAVE/FXRSTOR (Tom Hughes).  Fixes #71180.

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

22 years agoAdd missing atoll16 prototype. I use this in the watchpoint stuff.
Robert Walsh [Sun, 4 Jan 2004 23:15:22 +0000 (23:15 +0000)] 
Add missing atoll16 prototype.  I use this in the watchpoint stuff.

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

22 years agoFix do_exec's permission checking.
Jeremy Fitzhardinge [Sun, 4 Jan 2004 23:10:07 +0000 (23:10 +0000)] 
Fix do_exec's permission checking.

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

22 years agoIn the fast sanity check for these tools which use shadow memory,
Julian Seward [Sun, 4 Jan 2004 23:08:04 +0000 (23:08 +0000)] 
In the fast sanity check for these tools which use shadow memory,
remove the test that the first page of memory is inaccessible.  This
is now getting in the way.

Fixes #69886.

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

22 years agoHandle 'B' (volatile) and 'k' (const) qualifiers in stabs. (Tom
Julian Seward [Sun, 4 Jan 2004 22:50:16 +0000 (22:50 +0000)] 
Handle 'B' (volatile) and 'k' (const) qualifiers in stabs.  (Tom
Hughes / Manish Singh).  Fixes #71791.

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

22 years agoFolded cg_sim_{gen,I1,D1,L2}.c into cg_sim.c, which makes a lot more sense and
Nicholas Nethercote [Sun, 4 Jan 2004 16:56:57 +0000 (16:56 +0000)] 
Folded cg_sim_{gen,I1,D1,L2}.c into cg_sim.c, which makes a lot more sense and
is shorter.

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

22 years agoUpdated copyright dates for 2004. Also added a couple of missing headers and
Nicholas Nethercote [Sun, 4 Jan 2004 16:43:23 +0000 (16:43 +0000)] 
Updated copyright dates for 2004.  Also added a couple of missing headers and
footers to some new files.

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

22 years agoAdding "use strict" and "use warnings", for safety. Required some extra
Nicholas Nethercote [Sun, 4 Jan 2004 13:08:56 +0000 (13:08 +0000)] 
Adding "use strict" and "use warnings", for safety.  Required some extra
variable declarations.

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

22 years agoAdd copyright notices to new files.
Julian Seward [Sun, 4 Jan 2004 03:46:11 +0000 (03:46 +0000)] 
Add copyright notices to new files.

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

22 years agotypo
Dirk Mueller [Sat, 3 Jan 2004 15:33:09 +0000 (15:33 +0000)] 
typo

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

22 years agoCVS_SILENT ignore
Dirk Mueller [Sat, 3 Jan 2004 15:22:09 +0000 (15:22 +0000)] 
CVS_SILENT ignore

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

22 years agoinfrastructure. Yes, it doesn't do much yet.
Dirk Mueller [Sat, 3 Jan 2004 15:21:14 +0000 (15:21 +0000)] 
infrastructure. Yes, it doesn't do much yet.

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

22 years agoportability
Dirk Mueller [Sat, 3 Jan 2004 15:02:59 +0000 (15:02 +0000)] 
portability

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

22 years agoadding FreeBSD port made by Doug Rabson, thanks!
Dirk Mueller [Sat, 3 Jan 2004 14:49:18 +0000 (14:49 +0000)] 
adding FreeBSD port made by Doug Rabson, thanks!

Currently not compiled, since the autoconf magic is still missing.
Will fill bits in when I have time.

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

22 years agomake it compile on FreeBSD
Dirk Mueller [Sat, 3 Jan 2004 14:24:42 +0000 (14:24 +0000)] 
make it compile on FreeBSD

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

22 years agoremove test for malloc.h
Dirk Mueller [Sat, 3 Jan 2004 14:23:45 +0000 (14:23 +0000)] 
remove test for malloc.h
add tests for endian.h and sys/endian.h (FreeBSD like)

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

22 years agoFix compilation on FreeBSD. extracted from patch by Doug Rabson <dfr@nlsystems.com>
Dirk Mueller [Sat, 3 Jan 2004 14:18:02 +0000 (14:18 +0000)] 
Fix compilation on FreeBSD. extracted from patch by Doug Rabson <dfr@nlsystems.com>

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

22 years agostop whining.
Dirk Mueller [Sat, 3 Jan 2004 12:47:32 +0000 (12:47 +0000)] 
stop whining.

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

22 years agoAdd possible workaround for FAQ 16, from Adam Spragg.
Nicholas Nethercote [Sat, 3 Jan 2004 10:57:20 +0000 (10:57 +0000)] 
Add possible workaround for FAQ 16, from Adam Spragg.

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

22 years agolink bug reporting page instead
Dirk Mueller [Fri, 2 Jan 2004 23:27:29 +0000 (23:27 +0000)] 
link bug reporting page instead
CCMAIL: 69845-done@bugs.kde.org

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

22 years agoremove the files as they're no longer regularly maintained. NEWS should
Dirk Mueller [Fri, 2 Jan 2004 23:14:11 +0000 (23:14 +0000)] 
remove the files as they're no longer regularly maintained. NEWS should
be enough.
CCMAIL: 69844-done@bugs.kde.org

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

22 years agolink the bugzilla
Dirk Mueller [Fri, 2 Jan 2004 23:11:35 +0000 (23:11 +0000)] 
link the bugzilla
CCMAIL: 69843-done@bugs.kde.org

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

22 years agoadd support for mincore syscall, patch by Tom Hughes
Dirk Mueller [Fri, 2 Jan 2004 22:52:34 +0000 (22:52 +0000)] 
add support for mincore syscall, patch by Tom Hughes
CCMAIL: 69783-done@bugs.kde.org

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

22 years agomovntpd/movntps support (patch by Tom Hughes)
Dirk Mueller [Fri, 2 Jan 2004 22:50:04 +0000 (22:50 +0000)] 
movntpd/movntps support (patch by Tom Hughes)
CCMAIL: 69782-done@bugs.kde.org

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

22 years agofix comment
Dirk Mueller [Fri, 2 Jan 2004 22:46:34 +0000 (22:46 +0000)] 
fix comment

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

22 years agoimplement cmpxchg8b, patch by Tom Hughes.
Dirk Mueller [Fri, 2 Jan 2004 22:42:29 +0000 (22:42 +0000)] 
implement cmpxchg8b, patch by Tom Hughes.
CCMAIL: 69688-done@bugs.kde.org

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

22 years ago(David Lee, <david.lee@teracruz.com>)
Julian Seward [Fri, 2 Jan 2004 11:39:06 +0000 (11:39 +0000)] 
(David Lee, <david.lee@teracruz.com>)
This patch fixes a semaphore leak within valgrind. If your application
dynamically allocates/releases semaphores, you will very quickly run out.
Also, as a nice side effect, it implements sem_destroy properly.

(me)
Protect sem_getvalue with a lock/unlock of the semaphore's mutex,
like the other routines do.

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

22 years agomark the braced expression as C(++) extension
Dirk Mueller [Wed, 31 Dec 2003 14:32:23 +0000 (14:32 +0000)] 
mark the braced expression as C(++) extension

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

22 years agoAdd post-FV suppressions needed to make it tolerably quiet on SuSE 9.
Julian Seward [Wed, 24 Dec 2003 11:45:16 +0000 (11:45 +0000)] 
Add post-FV suppressions needed to make it tolerably quiet on SuSE 9.
With these suppressions there are now 15 stderr fails and 2 stdout
fails on SuSE 9.

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

22 years agoStatically allocate a page in the client address space for trampoline
Jeremy Fitzhardinge [Wed, 24 Dec 2003 10:11:11 +0000 (10:11 +0000)] 
Statically allocate a page in the client address space for trampoline
code.  Currently this is just for signal returns, but there's the start
of sysinfo/vsyscalls support, as used by the TLS libraries.

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

22 years agoIt seems newer linkers have scripts which mention the base address twice
Jeremy Fitzhardinge [Wed, 24 Dec 2003 01:50:51 +0000 (01:50 +0000)] 
It seems newer linkers have scripts which mention the base address twice
on one line.

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

22 years agoMake sure we use gcc's ld, not whatever random ld we happen to find in the path.
Jeremy Fitzhardinge [Tue, 23 Dec 2003 01:15:01 +0000 (01:15 +0000)] 
Make sure we use gcc's ld, not whatever random ld we happen to find in the path.

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

22 years agoDe-anonymise a union so as to un-break compilation on gcc-2.95.
Julian Seward [Mon, 22 Dec 2003 22:53:35 +0000 (22:53 +0000)] 
De-anonymise a union so as to un-break compilation on gcc-2.95.

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

22 years agoAdd an implementation of strnlen for memcheck, from Tom Hughes.
Julian Seward [Mon, 22 Dec 2003 22:39:15 +0000 (22:39 +0000)] 
Add an implementation of strnlen for memcheck, from Tom Hughes.

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

22 years agoAdd overlap checking for stpcpy().
Julian Seward [Mon, 22 Dec 2003 22:31:27 +0000 (22:31 +0000)] 
Add overlap checking for stpcpy().

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

22 years agoFixed munmap bug - split_segment wasn't updating the lengths properly.
Jeremy Fitzhardinge [Mon, 22 Dec 2003 10:58:06 +0000 (10:58 +0000)] 
Fixed munmap bug - split_segment wasn't updating the lengths properly.
Turn off debug printing.

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

22 years agoFix nasty use after free bug revealed by last munmap fix.
Jeremy Fitzhardinge [Mon, 22 Dec 2003 10:42:59 +0000 (10:42 +0000)] 
Fix nasty use after free bug revealed by last munmap fix.
Unexport split_segment; it isn't needed elsewhere.
(Something still wrong with munmap.)

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

22 years agoRe-add proper support for mremap(). Also, fix a bug in munmap().
Jeremy Fitzhardinge [Mon, 22 Dec 2003 08:48:50 +0000 (08:48 +0000)] 
Re-add proper support for mremap().  Also, fix a bug in munmap().

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

22 years agoresolve_redir(): when a redirect is resolved, if the source has
Julian Seward [Mon, 22 Dec 2003 00:50:52 +0000 (00:50 +0000)] 
resolve_redir(): when a redirect is resolved, if the source has
already been translated, discard that translation.  Otherwise the
redirect will never take effect.

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