]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
21 years agoStartup delay and debug printing wibbles.
Julian Seward [Mon, 26 Jul 2004 02:05:26 +0000 (02:05 +0000)] 
Startup delay and debug printing wibbles.

git-svn-id: svn://svn.valgrind.org/vex/trunk@128

21 years agoFix bug in assembly of shifts.
Julian Seward [Mon, 26 Jul 2004 02:04:54 +0000 (02:04 +0000)] 
Fix bug in assembly of shifts.

git-svn-id: svn://svn.valgrind.org/vex/trunk@127

21 years agoFill in a few more thunks cases.
Julian Seward [Sun, 25 Jul 2004 23:39:13 +0000 (23:39 +0000)] 
Fill in a few more thunks cases.

git-svn-id: svn://svn.valgrind.org/vex/trunk@126

21 years agoFix startup stuff a bit.
Julian Seward [Sun, 25 Jul 2004 23:37:53 +0000 (23:37 +0000)] 
Fix startup stuff a bit.

git-svn-id: svn://svn.valgrind.org/vex/trunk@125

21 years agoMore eflags thunks.
Julian Seward [Sun, 25 Jul 2004 18:18:03 +0000 (18:18 +0000)] 
More eflags thunks.

git-svn-id: svn://svn.valgrind.org/vex/trunk@124

21 years agoMore helpers.
Julian Seward [Sun, 25 Jul 2004 18:00:18 +0000 (18:00 +0000)] 
More helpers.

git-svn-id: svn://svn.valgrind.org/vex/trunk@123

21 years agoMake --stop-after= work.
Julian Seward [Sun, 25 Jul 2004 17:26:40 +0000 (17:26 +0000)] 
Make --stop-after= work.

git-svn-id: svn://svn.valgrind.org/vex/trunk@122

21 years agoAdd a few more flag evaluation routines.
Julian Seward [Sun, 25 Jul 2004 17:25:55 +0000 (17:25 +0000)] 
Add a few more flag evaluation routines.

git-svn-id: svn://svn.valgrind.org/vex/trunk@121

21 years agoObserve caller-supplied limit on # of insns allowed in a bb.
Julian Seward [Sun, 25 Jul 2004 17:25:06 +0000 (17:25 +0000)] 
Observe caller-supplied limit on # of insns allowed in a bb.

git-svn-id: svn://svn.valgrind.org/vex/trunk@120

21 years agoFix some bug or other to do with moving values out of the way
Julian Seward [Sun, 25 Jul 2004 17:24:02 +0000 (17:24 +0000)] 
Fix some bug or other to do with moving values out of the way
of rreg live ranges too early.  All this stuff needs revisiting.

git-svn-id: svn://svn.valgrind.org/vex/trunk@119

21 years agoMove the decoding of SFENCE out of the SSE only part of disInstr as it
Tom Hughes [Sun, 25 Jul 2004 15:43:00 +0000 (15:43 +0000)] 
Move the decoding of SFENCE out of the SSE only part of disInstr as it
exists on Athlon's that have MMXEXT support and those don't have SSE state
so won't decode it where it was.

CCMAIL: 85947-done@bugs.kde.org

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

21 years agoAdd instruction tests for the LFENCE/MFENCE/SFENCE instructions.
Tom Hughes [Sun, 25 Jul 2004 15:18:21 +0000 (15:18 +0000)] 
Add instruction tests for the LFENCE/MFENCE/SFENCE instructions.

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

21 years agoMore hacked104 hookups, including the first eflags thunk calculation
Julian Seward [Sun, 25 Jul 2004 01:24:28 +0000 (01:24 +0000)] 
More hacked104 hookups, including the first eflags thunk calculation
routine.

git-svn-id: svn://svn.valgrind.org/vex/trunk@118

21 years agoIntegration stuff to make the 104 testbed work.
Julian Seward [Sun, 25 Jul 2004 00:07:35 +0000 (00:07 +0000)] 
Integration stuff to make the 104 testbed work.

git-svn-id: svn://svn.valgrind.org/vex/trunk@117

21 years agoAdd a hacked version of 1.0.4 as a test bed for Vex.
Julian Seward [Sat, 24 Jul 2004 14:21:10 +0000 (14:21 +0000)] 
Add a hacked version of 1.0.4 as a test bed for Vex.

git-svn-id: svn://svn.valgrind.org/vex/trunk@116

21 years agoDelete this directory.
Julian Seward [Sat, 24 Jul 2004 14:16:51 +0000 (14:16 +0000)] 
Delete this directory.

git-svn-id: svn://svn.valgrind.org/vex/trunk@115

21 years agoDelete this stuff. Not part of vex.
Julian Seward [Sat, 24 Jul 2004 14:16:04 +0000 (14:16 +0000)] 
Delete this stuff.  Not part of vex.

git-svn-id: svn://svn.valgrind.org/vex/trunk@114

21 years agoClean up unused stuff.
Julian Seward [Sat, 24 Jul 2004 14:14:24 +0000 (14:14 +0000)] 
Clean up unused stuff.

git-svn-id: svn://svn.valgrind.org/vex/trunk@113

21 years agoAdd mechanisms for calling helper functions from generated code.
Julian Seward [Sat, 24 Jul 2004 13:12:23 +0000 (13:12 +0000)] 
Add mechanisms for calling helper functions from generated code.

git-svn-id: svn://svn.valgrind.org/vex/trunk@112

21 years agoCompilation fixes for gcc-2.96.
Julian Seward [Sat, 24 Jul 2004 01:24:38 +0000 (01:24 +0000)] 
Compilation fixes for gcc-2.96.

git-svn-id: svn://svn.valgrind.org/vex/trunk@111

21 years agoFix bug causing real registers to be bought back into circulation
Julian Seward [Fri, 23 Jul 2004 16:59:48 +0000 (16:59 +0000)] 
Fix bug causing real registers to be bought back into circulation
(moved from Unavail to Free) too early, following the end of fixed
live ranges.  This was causing nonsense like "shl %cl,%ecx".

At the same time, greatly improve debug printing.

git-svn-id: svn://svn.valgrind.org/vex/trunk@110

21 years agoFix indentation in emit_X86Instr. Whitespace change only.
Julian Seward [Fri, 23 Jul 2004 12:57:47 +0000 (12:57 +0000)] 
Fix indentation in emit_X86Instr.  Whitespace change only.

git-svn-id: svn://svn.valgrind.org/vex/trunk@109

21 years agoFinish first pass through x86 assembler.
Julian Seward [Fri, 23 Jul 2004 11:43:43 +0000 (11:43 +0000)] 
Finish first pass through x86 assembler.

git-svn-id: svn://svn.valgrind.org/vex/trunk@108

21 years agoFill in many (most) x86 emission cases.
Julian Seward [Fri, 23 Jul 2004 01:34:11 +0000 (01:34 +0000)] 
Fill in many (most) x86 emission cases.

git-svn-id: svn://svn.valgrind.org/vex/trunk@107

21 years agoGet rid of these too.
Julian Seward [Thu, 22 Jul 2004 17:41:22 +0000 (17:41 +0000)] 
Get rid of these too.

git-svn-id: svn://svn.valgrind.org/vex/trunk@106

21 years agoGet rid of this.
Julian Seward [Thu, 22 Jul 2004 17:40:10 +0000 (17:40 +0000)] 
Get rid of this.

git-svn-id: svn://svn.valgrind.org/vex/trunk@105

21 years agoStart pushing some instructions through the x86 assembler.
Julian Seward [Thu, 22 Jul 2004 17:26:12 +0000 (17:26 +0000)] 
Start pushing some instructions through the x86 assembler.

git-svn-id: svn://svn.valgrind.org/vex/trunk@104

21 years agoMakefile for use with icc.
Julian Seward [Thu, 22 Jul 2004 17:25:03 +0000 (17:25 +0000)] 
Makefile for use with icc.

git-svn-id: svn://svn.valgrind.org/vex/trunk@103

21 years agoMore x86 insn emitter hacking.
Julian Seward [Thu, 22 Jul 2004 16:47:21 +0000 (16:47 +0000)] 
More x86 insn emitter hacking.

git-svn-id: svn://svn.valgrind.org/vex/trunk@102

21 years agoClarify error msgs
Nicholas Nethercote [Thu, 22 Jul 2004 12:41:12 +0000 (12:41 +0000)] 
Clarify error msgs

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

21 years agoIn response to bug #85665, clarify what --trace-children=yes does.
Nicholas Nethercote [Thu, 22 Jul 2004 08:57:50 +0000 (08:57 +0000)] 
In response to bug #85665, clarify what --trace-children=yes does.

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

21 years agoMake a start on x86 instruction emission.
Julian Seward [Thu, 22 Jul 2004 01:14:11 +0000 (01:14 +0000)] 
Make a start on x86 instruction emission.

git-svn-id: svn://svn.valgrind.org/vex/trunk@101

21 years agoRename x86h_defs.[ch] to x86host_defs.[ch].
Julian Seward [Wed, 21 Jul 2004 18:53:20 +0000 (18:53 +0000)] 
Rename x86h_defs.[ch] to x86host_defs.[ch].

git-svn-id: svn://svn.valgrind.org/vex/trunk@100

21 years agoAssembler infrastructure.
Julian Seward [Wed, 21 Jul 2004 18:49:27 +0000 (18:49 +0000)] 
Assembler infrastructure.

git-svn-id: svn://svn.valgrind.org/vex/trunk@99

21 years agoFix checking of execve() when argv is a null pointer.
Tom Hughes [Wed, 21 Jul 2004 16:23:38 +0000 (16:23 +0000)] 
Fix checking of execve() when argv is a null pointer.

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

21 years ago- Fix up verbosity control.
Julian Seward [Wed, 21 Jul 2004 12:28:07 +0000 (12:28 +0000)] 
- Fix up verbosity control.
- A quick bit of profiling and inlining of HReg functions as
  a result.

git-svn-id: svn://svn.valgrind.org/vex/trunk@98

21 years agoCorrect Cachegrind changes; better late than never.
Nicholas Nethercote [Wed, 21 Jul 2004 10:37:31 +0000 (10:37 +0000)] 
Correct Cachegrind changes;  better late than never.

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

21 years agoType name wibble
Nicholas Nethercote [Wed, 21 Jul 2004 08:49:02 +0000 (08:49 +0000)] 
Type name wibble

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

21 years agoFix scary bug causing mis-identification of SSE stores vs loads.
Julian Seward [Tue, 20 Jul 2004 23:49:22 +0000 (23:49 +0000)] 
Fix scary bug causing mis-identification of SSE stores vs loads.

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

21 years agoRemove duplicate suppressions for SuSE 9.0 (section appeared twice)
Julian Seward [Tue, 20 Jul 2004 22:42:44 +0000 (22:42 +0000)] 
Remove duplicate suppressions for SuSE 9.0 (section appeared twice)
and add one for SuSE 9.1.

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

21 years agotypo
Nicholas Nethercote [Tue, 20 Jul 2004 14:18:51 +0000 (14:18 +0000)] 
typo

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

21 years agocomment typo
Nicholas Nethercote [Tue, 20 Jul 2004 13:29:02 +0000 (13:29 +0000)] 
comment typo

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

21 years agoFix extremely obscure bug in xadd picked up by QEMU's test suite. The
Julian Seward [Tue, 20 Jul 2004 12:24:53 +0000 (12:24 +0000)] 
Fix extremely obscure bug in xadd picked up by QEMU's test suite.  The
(almost useless) instruction "xadd %reg,%reg" gave the wrong answer
due to a subtlety of the order in which the destination registers are
PUTted to.

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

21 years agogcc sometimes generates "sbbl %reg,%reg" to convert the carry flag
Julian Seward [Tue, 20 Jul 2004 11:42:24 +0000 (11:42 +0000)] 
gcc sometimes generates "sbbl %reg,%reg" to convert the carry flag
into 0 or -1 in reg.  This has no actual dependency on reg, but
memcheck can't see that, and so will yelp if reg contains garbage.  A
simple fix is to put zero into reg before we start, zapping any
undefinedness it might otherwise contain.

Hopefully fixes #84978 (unconfirmed)

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

21 years agoSome systems seem to need linux/netlink.h for linux/fs.h to compile
Tom Hughes [Mon, 19 Jul 2004 23:16:41 +0000 (23:16 +0000)] 
Some systems seem to need linux/netlink.h for linux/fs.h to compile
correctly, so we include it beforehand in case.

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

21 years agoComplete first pass thru x86 instruction selector.
Julian Seward [Mon, 19 Jul 2004 12:48:11 +0000 (12:48 +0000)] 
Complete first pass thru x86 instruction selector.

git-svn-id: svn://svn.valgrind.org/vex/trunk@97

21 years agoAdd another C call helper.
Nicholas Nethercote [Mon, 19 Jul 2004 08:18:00 +0000 (08:18 +0000)] 
Add another C call helper.

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

21 years agoTeach x86 insn selector how to generate code for 64-bit expressions.
Julian Seward [Mon, 19 Jul 2004 02:51:12 +0000 (02:51 +0000)] 
Teach x86 insn selector how to generate code for 64-bit expressions.

git-svn-id: svn://svn.valgrind.org/vex/trunk@96

21 years agoRefine x86 instruction representation a bit.
Julian Seward [Mon, 19 Jul 2004 01:56:50 +0000 (01:56 +0000)] 
Refine x86 instruction representation a bit.

git-svn-id: svn://svn.valgrind.org/vex/trunk@95

21 years agoLoads more x86 insn selector hacking.
Julian Seward [Sun, 18 Jul 2004 23:06:45 +0000 (23:06 +0000)] 
Loads more x86 insn selector hacking.

git-svn-id: svn://svn.valgrind.org/vex/trunk@94

21 years agoInclude new_override.stdout.exp in 'make dist'.
Nicholas Nethercote [Sun, 18 Jul 2004 12:05:37 +0000 (12:05 +0000)] 
Include new_override.stdout.exp in 'make dist'.

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

21 years ago--> 2.1.3.CVS
Julian Seward [Sun, 18 Jul 2004 11:47:55 +0000 (11:47 +0000)] 
--> 2.1.3.CVS

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

21 years agoExtra info for FAQ.
Nicholas Nethercote [Sun, 18 Jul 2004 10:35:36 +0000 (10:35 +0000)] 
Extra info for FAQ.

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

21 years ago--> 2.1.2
Julian Seward [Sun, 18 Jul 2004 09:25:17 +0000 (09:25 +0000)] 
--> 2.1.2

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

21 years agoadd #85416.
Julian Seward [Sun, 18 Jul 2004 09:24:57 +0000 (09:24 +0000)] 
add #85416.

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

21 years agoOnly treat colons in the switch name as important when looking for a
Tom Hughes [Sun, 18 Jul 2004 08:05:44 +0000 (08:05 +0000)] 
Only treat colons in the switch name as important when looking for a
toolname to check - colons in the switch value are now ignored.

CCMAIL: 85416-done@bugs.kde.org

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

21 years agoMucho instruction selector hacking.
Julian Seward [Sun, 18 Jul 2004 01:28:30 +0000 (01:28 +0000)] 
Mucho instruction selector hacking.

git-svn-id: svn://svn.valgrind.org/vex/trunk@93

21 years agoVersion wibble
Julian Seward [Sat, 17 Jul 2004 23:44:48 +0000 (23:44 +0000)] 
Version wibble

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

21 years agoTrack bug resolutions which happened today.
Julian Seward [Sat, 17 Jul 2004 23:44:35 +0000 (23:44 +0000)] 
Track bug resolutions which happened today.

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

21 years agoDeltas from Jeremy.
Julian Seward [Sat, 17 Jul 2004 23:26:46 +0000 (23:26 +0000)] 
Deltas from Jeremy.

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

21 years agoAdd a bunch of asserts to check the results of calls to system malloc().
Nicholas Nethercote [Sat, 17 Jul 2004 16:40:50 +0000 (16:40 +0000)] 
Add a bunch of asserts to check the results of calls to system malloc().

Assertions are arguably not the right thing here, but the practice is
widespread and we're not planning on making asserts optional, and it's a lot
better than no checking.

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

21 years agoMake the _dl_relocate_object suppressions more general so that they
Tom Hughes [Sat, 17 Jul 2004 14:16:03 +0000 (14:16 +0000)] 
Make the _dl_relocate_object suppressions more general so that they
work on more systems. The glibc 2.3 suppressions are already like this.

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

21 years agoUpdate preamble a la Nick's suggestions.
Julian Seward [Sat, 17 Jul 2004 13:38:12 +0000 (13:38 +0000)] 
Update preamble a la Nick's suggestions.

Remove duplicate re SIOCGMIIPHY.

Remove claim that it compiles with icc-8.0.  It doesn't.
(/me is confused; I thought relevant fixes had already been committed).

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

21 years agoCheck mmap() and munmap() results at startup; they can fail if a hard memory
Nicholas Nethercote [Sat, 17 Jul 2004 12:57:44 +0000 (12:57 +0000)] 
Check mmap() and munmap() results at startup;  they can fail if a hard memory
limit is set.  This fixes bug #82722.

CCMAIL: 82722-done@bugs.kde.org

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

21 years agoClarify Cachegrind changes
Nicholas Nethercote [Sat, 17 Jul 2004 12:49:53 +0000 (12:49 +0000)] 
Clarify Cachegrind changes

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

21 years ago2.1.2 is imminent. I've tried to find all the changes since 2.1.1 and
Julian Seward [Sat, 17 Jul 2004 12:19:43 +0000 (12:19 +0000)] 
2.1.2 is imminent.  I've tried to find all the changes since 2.1.1 and
list them here.  (Reading 4 months worth of commit logs is sooo
fascinating :-) Please let me know asap of anything I've forgotten or
been erroneous on.

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

21 years agoMake sure init_global_thread_specific_state() set the global_init_done
Tom Hughes [Sat, 17 Jul 2004 11:08:03 +0000 (11:08 +0000)] 
Make sure init_global_thread_specific_state() set the global_init_done
flag before the call to __uselocale() in order to avoid deadlock.

CCMAIL: 77952-done@bugs.kde.org

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

21 years agoSupport FBLD, FBSTP. Patch courtesy of Jani Monoses.
Nicholas Nethercote [Sat, 17 Jul 2004 10:01:51 +0000 (10:01 +0000)] 
Support FBLD, FBSTP.  Patch courtesy of Jani Monoses.

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

21 years agoFix typo in comment.
Tom Hughes [Fri, 16 Jul 2004 23:07:58 +0000 (23:07 +0000)] 
Fix typo in comment.

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

21 years agoBring this up to date.
Julian Seward [Fri, 16 Jul 2004 21:35:09 +0000 (21:35 +0000)] 
Bring this up to date.

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

21 years agoGet rid of add with carry and subtract with borrow from the IR.
Julian Seward [Fri, 16 Jul 2004 21:19:05 +0000 (21:19 +0000)] 
Get rid of add with carry and subtract with borrow from the IR.

git-svn-id: svn://svn.valgrind.org/vex/trunk@92

21 years agotemporarily print storage stats
Julian Seward [Fri, 16 Jul 2004 21:18:25 +0000 (21:18 +0000)] 
temporarily print storage stats

git-svn-id: svn://svn.valgrind.org/vex/trunk@91

21 years agoMucho x86 instruction selector hacking.
Julian Seward [Fri, 16 Jul 2004 21:03:45 +0000 (21:03 +0000)] 
Mucho x86 instruction selector hacking.

git-svn-id: svn://svn.valgrind.org/vex/trunk@90

21 years agoSlightly change, with J's approval, startup copyright messages to better
Nicholas Nethercote [Fri, 16 Jul 2004 17:44:00 +0000 (17:44 +0000)] 
Slightly change, with J's approval, startup copyright messages to better
reflect reality.

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

21 years agoapostrophe pedantry; comment change only
Nicholas Nethercote [Fri, 16 Jul 2004 17:32:15 +0000 (17:32 +0000)] 
apostrophe pedantry;  comment change only

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

21 years agoAdd comments to explain the address space padding technology.
Tom Hughes [Fri, 16 Jul 2004 15:36:45 +0000 (15:36 +0000)] 
Add comments to explain the address space padding technology.

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

21 years agoCommit missing kernel interface definitions for async I/O calls.
Tom Hughes [Fri, 16 Jul 2004 06:03:24 +0000 (06:03 +0000)] 
Commit missing kernel interface definitions for async I/O calls.

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

21 years agoImplement support for the async I/O system calls in 2.6 kernels. This
Tom Hughes [Thu, 15 Jul 2004 23:13:37 +0000 (23:13 +0000)] 
Implement support for the async I/O system calls in 2.6 kernels. This
requires padding of the address space around calls to io_setup in order
to constrain the kernel's choice of address for the I/O context.

Based on patch from Scott Smith <scott-kde@gelatinous.com> with various
enhancements, this fixes bug #83060.

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

21 years agosetFlags_DSTus_DST1: generate well-typed IR for Mux10 arms
Julian Seward [Thu, 15 Jul 2004 18:18:47 +0000 (18:18 +0000)] 
setFlags_DSTus_DST1: generate well-typed IR for Mux10 arms

git-svn-id: svn://svn.valgrind.org/vex/trunk@89

21 years agoIf new/new[] fails and should throw an exception, abort instead, since we can't
Nicholas Nethercote [Thu, 15 Jul 2004 16:28:36 +0000 (16:28 +0000)] 
If new/new[] fails and should throw an exception, abort instead, since we can't
throw exceptions.

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

21 years agoThis commit fixes things so that the client stack can be easily placed
Nicholas Nethercote [Thu, 15 Jul 2004 14:58:33 +0000 (14:58 +0000)] 
This commit fixes things so that the client stack can be easily placed
anywhere, even below the client executable, just by changing a single
assignment to VG_(clstk_end).  I haven't actually moved the stack, though.

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

21 years agoMerged Valgrind's heap and stack. This has two main advantages:
Nicholas Nethercote [Thu, 15 Jul 2004 12:59:41 +0000 (12:59 +0000)] 
Merged Valgrind's heap and stack.  This has two main advantages:

1. It simplifies various things a bit.

2. Valgrind/tools will run out of memory later than currently in many
circumstances.  This is good news esp. for Calltree.

Some things were going in V's 128MB heap, and some were going in V's 128MB map
segment.  Now all these things are going into a single 256MB map segment.
stage2 has been moved down to 0xb0000000, the start of the 256MB map segment.
The .so files needed by it are placed at 0xb1000000 (that's the map_base).

This required some bootstrapping at startup for memory -- we need to allocate
memory to create the segments skip-list which lets us allocate memory...
solution was to make the first superblock allocated a special static one.
That's pretty simple and enough to get things going.

Removed vg_glibc.c which wasn't doing anything anyway.

Removed VG_(brk) and associated stuff, made all the things that were calling it
call VG_(mmap)() instead.

Removed VG_(valgrind_mmap_end) which was no longer needed.

Rejigged the startup order a bit as necessary.

Moved an important comment from ume.c to vg_main.c where it should be.

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

21 years agoGet rid of guards on IR Puts, and instead have an IR Mux expression.
Julian Seward [Thu, 15 Jul 2004 12:39:03 +0000 (12:39 +0000)] 
Get rid of guards on IR Puts, and instead have an IR Mux expression.
Adjust everything else accordingly.

git-svn-id: svn://svn.valgrind.org/vex/trunk@88

21 years agoFurther improvements to the IR sanity checker.
Julian Seward [Thu, 15 Jul 2004 09:38:27 +0000 (09:38 +0000)] 
Further improvements to the IR sanity checker.
Use these to fix various bugs found in x86->IR.

git-svn-id: svn://svn.valgrind.org/vex/trunk@87

21 years agoComplete the IR sanity checker -- at least up to the point where
Julian Seward [Thu, 15 Jul 2004 03:54:23 +0000 (03:54 +0000)] 
Complete the IR sanity checker -- at least up to the point where
it can typecheck the IR.

git-svn-id: svn://svn.valgrind.org/vex/trunk@86

21 years agoFirst part of IR sanity checking: def/use checks.
Julian Seward [Wed, 14 Jul 2004 22:36:10 +0000 (22:36 +0000)] 
First part of IR sanity checking: def/use checks.

git-svn-id: svn://svn.valgrind.org/vex/trunk@85

21 years agoRationalise IR a bit:
Julian Seward [Wed, 14 Jul 2004 18:24:17 +0000 (18:24 +0000)] 
Rationalise IR a bit:
* remove IR next, it was not needed.
* change the IRTemp -> IRType env so it can be directly indexed
  for speed.

git-svn-id: svn://svn.valgrind.org/vex/trunk@84

21 years agoIntercept 'nothrow' versions of delete and delete[].
Nicholas Nethercote [Wed, 14 Jul 2004 15:38:06 +0000 (15:38 +0000)] 
Intercept 'nothrow' versions of delete and delete[].

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

21 years agox86toIR: SHLD/SHRD
Julian Seward [Wed, 14 Jul 2004 13:18:05 +0000 (13:18 +0000)] 
x86toIR: SHLD/SHRD

git-svn-id: svn://svn.valgrind.org/vex/trunk@83

21 years agox86toIR: add support for add with carry
Julian Seward [Wed, 14 Jul 2004 02:46:52 +0000 (02:46 +0000)] 
x86toIR: add support for add with carry

git-svn-id: svn://svn.valgrind.org/vex/trunk@82

21 years agox86toIR: reorganise multiply stuff, and make a start on division stuff
Julian Seward [Wed, 14 Jul 2004 01:39:17 +0000 (01:39 +0000)] 
x86toIR: reorganise multiply stuff, and make a start on division stuff

git-svn-id: svn://svn.valgrind.org/vex/trunk@81

22 years agoCompilation fixes for older compilers.
Julian Seward [Tue, 13 Jul 2004 18:47:18 +0000 (18:47 +0000)] 
Compilation fixes for older compilers.

git-svn-id: svn://svn.valgrind.org/vex/trunk@80

22 years agox86toIR: some multiply stuff
Julian Seward [Tue, 13 Jul 2004 18:42:17 +0000 (18:42 +0000)] 
x86toIR: some multiply stuff

git-svn-id: svn://svn.valgrind.org/vex/trunk@79

22 years agoRationalise IR-level control flow:
Julian Seward [Mon, 12 Jul 2004 22:49:27 +0000 (22:49 +0000)] 
Rationalise IR-level control flow:
* Remove CJump01.  All conditional jumping is now done
  using the IRStmt_Exit mechanism.
* This means IRNext can only represent unconditional jumps.
  All IRNexts to have a jump-kind field.

git-svn-id: svn://svn.valgrind.org/vex/trunk@78

22 years agox86toIR: rep-prefixed insns
Julian Seward [Mon, 12 Jul 2004 14:00:46 +0000 (14:00 +0000)] 
x86toIR: rep-prefixed insns

git-svn-id: svn://svn.valgrind.org/vex/trunk@77

22 years agoMake sure the separator is restored when scan_colsep exits early. This
Tom Hughes [Mon, 12 Jul 2004 09:35:37 +0000 (09:35 +0000)] 
Make sure the separator is restored when scan_colsep exits early. This
stops the PATH variable being truncated for programs run under valgrind.

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

22 years agoAdd comment.
Nicholas Nethercote [Mon, 12 Jul 2004 09:01:24 +0000 (09:01 +0000)] 
Add comment.

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

22 years agoFinish first pass through x86toIR.c, enough to handle most bbs
Julian Seward [Mon, 12 Jul 2004 08:18:16 +0000 (08:18 +0000)] 
Finish first pass through x86toIR.c, enough to handle most bbs
of "int main ( void ) { return 0; }".  Many more difficult isns
are missing -- rep-prefixes, multiplies, adc, misc others.

git-svn-id: svn://svn.valgrind.org/vex/trunk@76

22 years agoYet more x86 to IR cases. Now more than 1000 bbs go through.
Julian Seward [Mon, 12 Jul 2004 01:03:26 +0000 (01:03 +0000)] 
Yet more x86 to IR cases.  Now more than 1000 bbs go through.

git-svn-id: svn://svn.valgrind.org/vex/trunk@75

22 years agoUpdate VG_(mmap)() in #if'd out branch.
Nicholas Nethercote [Sun, 11 Jul 2004 18:16:36 +0000 (18:16 +0000)] 
Update VG_(mmap)() in #if'd out branch.

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