]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
21 years agoclarify debugging instructions
Nicholas Nethercote [Tue, 2 Nov 2004 09:13:12 +0000 (09:13 +0000)] 
clarify debugging instructions

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

21 years agoMake these compile again following renaming of some types/fields.
Julian Seward [Tue, 2 Nov 2004 01:39:06 +0000 (01:39 +0000)] 
Make these compile again following renaming of some types/fields.

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

21 years agoGive dirty helper calls a guard field (IRExpr* of type Ity_Bit) which
Julian Seward [Tue, 2 Nov 2004 01:34:15 +0000 (01:34 +0000)] 
Give dirty helper calls a guard field (IRExpr* of type Ity_Bit) which
gates whether or not the call really happens.  Push this through
iropt.  Has no effect at the instruction selectors yet.

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

21 years agoRename some types and data fields in a more logical way. No change of
Julian Seward [Tue, 2 Nov 2004 00:26:55 +0000 (00:26 +0000)] 
Rename some types and data fields in a more logical way.  No change of
functionality.

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

21 years agounbreak compilation...
Nicholas Nethercote [Mon, 1 Nov 2004 19:36:46 +0000 (19:36 +0000)] 
unbreak compilation...

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

21 years agowibble
Nicholas Nethercote [Mon, 1 Nov 2004 18:46:18 +0000 (18:46 +0000)] 
wibble

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

21 years agoMake ESZ less public.
Nicholas Nethercote [Mon, 1 Nov 2004 18:42:23 +0000 (18:42 +0000)] 
Make ESZ less public.

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

21 years agoDon't need to use addr_t anymore, use Addr instead, for consistency.
Nicholas Nethercote [Mon, 1 Nov 2004 18:38:00 +0000 (18:38 +0000)] 
Don't need to use addr_t anymore, use Addr instead, for consistency.

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

21 years ago- Make find_auxv() word-size independent.
Nicholas Nethercote [Mon, 1 Nov 2004 18:22:05 +0000 (18:22 +0000)] 
- Make find_auxv() word-size independent.
- Introduced a new file, basic_types.h, for the basic types (eg. Int, Word).

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

21 years agoMake sure source-location mapping entries of size zero are converted
Tom Hughes [Mon, 1 Nov 2004 17:36:15 +0000 (17:36 +0000)] 
Make sure source-location mapping entries of size zero are converted
to size one even if verbose more is off.

BUG: 92528

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

21 years ago64-bit cleanness tweaks.
Nicholas Nethercote [Mon, 1 Nov 2004 16:52:43 +0000 (16:52 +0000)] 
64-bit cleanness tweaks.

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

21 years agoformat wibble
Nicholas Nethercote [Mon, 1 Nov 2004 16:46:58 +0000 (16:46 +0000)] 
format wibble

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

21 years agoDo 'struct termios' properly.
Nicholas Nethercote [Mon, 1 Nov 2004 16:22:00 +0000 (16:22 +0000)] 
Do 'struct termios' properly.

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

21 years ago64-bit cleanness tweaks.
Nicholas Nethercote [Mon, 1 Nov 2004 15:19:46 +0000 (15:19 +0000)] 
64-bit cleanness tweaks.

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

21 years agoIgnore generated makefiles.
Tom Hughes [Mon, 1 Nov 2004 09:52:12 +0000 (09:52 +0000)] 
Ignore generated makefiles.

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

21 years agoReally add AM_PROG_CC_C_O this time, rather than AC_PROG_CC_C_O.
Tom Hughes [Mon, 1 Nov 2004 09:50:57 +0000 (09:50 +0000)] 
Really add AM_PROG_CC_C_O this time, rather than AC_PROG_CC_C_O.

BUG: 92331

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

21 years agoEnhance sanity checking pertaining to IRCallees -- make sure
Julian Seward [Sun, 31 Oct 2004 21:44:54 +0000 (21:44 +0000)] 
Enhance sanity checking pertaining to IRCallees -- make sure
# regparms <= # actual args :-) Also, properly check clean helper calls.

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

21 years agoRestore the core/tool interface to what it was, by removing the
Julian Seward [Sun, 31 Oct 2004 20:10:04 +0000 (20:10 +0000)] 
Restore the core/tool interface to what it was, by removing the
findhelper routines.

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

21 years agoMake this compile again.
Julian Seward [Sun, 31 Oct 2004 20:09:29 +0000 (20:09 +0000)] 
Make this compile again.

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

21 years agoUse new functions for helper-call-construction.
Julian Seward [Sun, 31 Oct 2004 20:04:05 +0000 (20:04 +0000)] 
Use new functions for helper-call-construction.

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

21 years agoModified/new convenience functions for constructing helper calls.
Julian Seward [Sun, 31 Oct 2004 20:02:16 +0000 (20:02 +0000)] 
Modified/new convenience functions for constructing helper calls.

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

21 years agoFix broken alternative output.
Nicholas Nethercote [Sun, 31 Oct 2004 19:50:22 +0000 (19:50 +0000)] 
Fix broken alternative output.

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

21 years agoRemoved unused junk:
Nicholas Nethercote [Sun, 31 Oct 2004 19:39:18 +0000 (19:39 +0000)] 
Removed unused junk:
- tests for header files that are never utilised
- stupid long and bogus X version test that we ignored anyway

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

21 years agoMust remember to edit the original file, not the generated one...
Nicholas Nethercote [Sun, 31 Oct 2004 18:58:05 +0000 (18:58 +0000)] 
Must remember to edit the original file, not the generated one...

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

21 years agoArch-abstraction:
Nicholas Nethercote [Sun, 31 Oct 2004 18:48:21 +0000 (18:48 +0000)] 
Arch-abstraction:
- Added include/x86-linux/ and include/linux/ subdirectories, with Makefile.am
  files.

- Overhauled the definitions of kernel types.  include/vg_kerneliface.h is now
  three files, include/linux/vki.h, include/x86-linux/vki_arch.h, and
  include/x86-linux/vki_arch_posixtypes.h.  These files separate the
  common/Linux and x86/Linux parts cleanly.  All code is copied verbatim from
  the relevant kernel headers, except that VKI_/vki_ prefixes are added as
  necessary to distinguish them from glibc types.  (This is done consistently,
  unlike previously when some types did not have the prefixes.)

  All code is clearly marked to show which particular header file it came from,
  and the Linux version used.  (I used 2.6.8.1, the most recent stable release,
  for all of them.)

  A few of the types changed;  this is because they changed between the older
  versions of Linux and the current 2.6.8.1.  I checked that all these changes
  were ok with respect to backwards compatibility for our purposes.

- vg_unsafe.h has been removed;  we are no longer including any kernel headers,
  as we have our own copies for everything.  This is because installed kernel
  headers are not reliable, and often cause compilation problems. (bug
  #92420 is a recent example)

- Removed some no-longer-needed header-presence tests from configure.in.

- Some code in the rest of Valgrind was changed to account for some slight
  changes in the names of our VKI_/vki_ kernel constants and types.

- Updated README_MISSING_SYSCALL_OR_IOCTL accordingly.

- Fixed off-by-one error with VKI_GDT_ENTRY_TLS_MAX (merged from stable branch)

The end result is that the kernel types situation should be much clearer, and
similar files can be created relatively easily for other architectures as
necessary.

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

21 years ago-fomit-frame-pointer is helpul for addrcheck.
Julian Seward [Sun, 31 Oct 2004 17:34:39 +0000 (17:34 +0000)] 
-fomit-frame-pointer is helpul for addrcheck.

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

21 years agoReinstate esp-update pass (now renamed sp-update). Does not work as
Julian Seward [Sun, 31 Oct 2004 14:07:30 +0000 (14:07 +0000)] 
Reinstate esp-update pass (now renamed sp-update).  Does not work as
well as before, because IR's SSA-property makes it more difficult to
decide on a 'chosen one' virtual register to follow around, and so
sometimes misses out some pretty obvious cases.  ToDo: improve.

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

21 years agoAdd some alternate test results for glibc 2.2.5 systems.
Tom Hughes [Sun, 31 Oct 2004 11:31:16 +0000 (11:31 +0000)] 
Add some alternate test results for glibc 2.2.5 systems.

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

21 years agoAdded some extra data race suppressions for glibc 2.3.2.
Tom Hughes [Sun, 31 Oct 2004 10:18:23 +0000 (10:18 +0000)] 
Added some extra data race suppressions for glibc 2.3.2.

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

21 years agoAdd some more data race suppressions for glibc 2.2.5.
Tom Hughes [Sun, 31 Oct 2004 10:13:18 +0000 (10:13 +0000)] 
Add some more data race suppressions for glibc 2.2.5.

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

21 years agoAdd a mini-version of the addrcheck instrumenter so as to help refine
Julian Seward [Sat, 30 Oct 2004 22:25:40 +0000 (22:25 +0000)] 
Add a mini-version of the addrcheck instrumenter so as to help refine
the reg-allocator in the presence of lots of helper calls.

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

21 years agoAdd code to do register preferencing (moves from vreg to rreg cause
Julian Seward [Sat, 30 Oct 2004 22:23:53 +0000 (22:23 +0000)] 
Add code to do register preferencing (moves from vreg to rreg cause
the vreg to be preferenced to rreg).  However, this is disabled as it
usually makes things worse.

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

21 years agoFix bogus assertion in doHelperCall and generally tidy up. I think it
Julian Seward [Sat, 30 Oct 2004 22:20:02 +0000 (22:20 +0000)] 
Fix bogus assertion in doHelperCall and generally tidy up.  I think it
works, but could still be wrong and might need a rewrite.

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

21 years agoMake addrcheck work again, including regparm.
Julian Seward [Sat, 30 Oct 2004 20:40:03 +0000 (20:40 +0000)] 
Make addrcheck work again, including regparm.

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

21 years agoSuppress data race in glibc 2.2.4.
Tom Hughes [Sat, 30 Oct 2004 20:39:10 +0000 (20:39 +0000)] 
Suppress data race in glibc 2.2.4.

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

21 years agoImplement regparm (1 to 3) in the x86 back end.
Julian Seward [Sat, 30 Oct 2004 20:39:01 +0000 (20:39 +0000)] 
Implement regparm (1 to 3) in the x86 back end.

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

21 years agoInstead of denoting helper call targets by their names, add a new type
Julian Seward [Sat, 30 Oct 2004 19:03:02 +0000 (19:03 +0000)] 
Instead of denoting helper call targets by their names, add a new type
IRCallee to carry the name (for printing), the actual address, and the
"regparm" number if relevant.  This gets rid of the need to pass
around helper-lookup callbacks all over the place, and also lays the
groundwork for a generic "regparm" mechanism for the back end.

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

21 years agoAdd and use a new version of the register allocator, which is simpler
Julian Seward [Sat, 30 Oct 2004 13:00:55 +0000 (13:00 +0000)] 
Add and use a new version of the register allocator, which is simpler
and produces much less spill code around real-reg live ranges
(a.k.a. calls to helper functions)

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

21 years agoDebug printing wibble.
Julian Seward [Sat, 30 Oct 2004 00:46:52 +0000 (00:46 +0000)] 
Debug printing wibble.

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

21 years agoRemove unused fields in VRegInfo, and change live-range numbers to 16
Julian Seward [Sat, 30 Oct 2004 00:11:43 +0000 (00:11 +0000)] 
Remove unused fields in VRegInfo, and change live-range numbers to 16
bits.  This reduces the amount of heap allocated by about 6% for
nulgrinding.

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

21 years agoMuch-improved method for configuring test-driver program: copy
Julian Seward [Fri, 29 Oct 2004 23:42:36 +0000 (23:42 +0000)] 
Much-improved method for configuring test-driver program: copy
test_main.h.base to test_main.h, and edit.

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

21 years agoImplement pthread_condattr_setpshared and pthread_condattr_getpshared.
Tom Hughes [Fri, 29 Oct 2004 18:22:38 +0000 (18:22 +0000)] 
Implement pthread_condattr_setpshared and pthread_condattr_getpshared.

BUG: 92264

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

21 years agoAdd AM_PROG_CC_C_O to configure.in to check for cc -c -o support as this
Tom Hughes [Fri, 29 Oct 2004 18:02:13 +0000 (18:02 +0000)] 
Add AM_PROG_CC_C_O to configure.in to check for cc -c -o support as this
is needed for some of the constructs we now use in the Makefile's.

BUG: 92331

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

21 years agowhoops
Nicholas Nethercote [Fri, 29 Oct 2004 13:17:36 +0000 (13:17 +0000)] 
whoops

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

21 years agoFix typo that meant --signal-polltime was not being accepted.
Nicholas Nethercote [Fri, 29 Oct 2004 11:17:21 +0000 (11:17 +0000)] 
Fix typo that meant --signal-polltime was not being accepted.

MERGE TO STABLE

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

21 years agoExtend applicability of register preferencing scheme.
Julian Seward [Fri, 29 Oct 2004 01:29:26 +0000 (01:29 +0000)] 
Extend applicability of register preferencing scheme.

This all needs to be re-considered properly.

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

21 years agoAllow --trace-codegen to take 8 bits, and pass to Vex.
Julian Seward [Fri, 29 Oct 2004 00:42:53 +0000 (00:42 +0000)] 
Allow --trace-codegen to take 8 bits, and pass to Vex.

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

21 years agoClear out old junk.
Julian Seward [Fri, 29 Oct 2004 00:42:07 +0000 (00:42 +0000)] 
Clear out old junk.

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

21 years agoMajorly improve debug printing. Now vex_traceflags contains 8 bits
Julian Seward [Fri, 29 Oct 2004 00:41:29 +0000 (00:41 +0000)] 
Majorly improve debug printing.  Now vex_traceflags contains 8 bits
which control phase printing.

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

21 years agoTrack API changes.
Julian Seward [Thu, 28 Oct 2004 22:19:18 +0000 (22:19 +0000)] 
Track API changes.

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

21 years agoMake these compile again.
Julian Seward [Thu, 28 Oct 2004 22:18:39 +0000 (22:18 +0000)] 
Make these compile again.

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

21 years agoMisc hacks to get Addrcheck working.
Julian Seward [Thu, 28 Oct 2004 22:16:49 +0000 (22:16 +0000)] 
Misc hacks to get Addrcheck working.

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

21 years ago* Add a minimal Vex-ified version of the esp update pass.
Julian Seward [Thu, 28 Oct 2004 22:16:01 +0000 (22:16 +0000)] 
* Add a minimal Vex-ified version of the esp update pass.
* Track todays LibVEX API changes.

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

21 years agoVex-ify.
Julian Seward [Thu, 28 Oct 2004 22:13:46 +0000 (22:13 +0000)] 
Vex-ify.

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

21 years agoVarious changes needed to get Addrcheck supported:
Julian Seward [Thu, 28 Oct 2004 22:11:04 +0000 (22:11 +0000)] 
Various changes needed to get Addrcheck supported:

* Rearrange iropt pipeline so that tree-building is
  no longer anything to do with optimisation, but is
  instead done post-instrumentation

* Allow two instrumentation functions to be passed to
  LibVEX_Translate, not one, so that valgrind can also
  do an sp-update pass

* Add a type VexGuestLayoutInfo for describing the guest
  state, for the benefit of instrumenters.

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

21 years agoWhen a thread is cancelled only abort pending system calls if
Tom Hughes [Thu, 28 Oct 2004 15:56:55 +0000 (15:56 +0000)] 
When a thread is cancelled only abort pending system calls if
the thread is set for asynchronous cancellation and cancellation
is enabled. This fixes a long standing occasional failure in
the pth_cancel2 test.

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

21 years agoUpdate expected output for pth_once in memcheck tests.
Tom Hughes [Thu, 28 Oct 2004 13:52:51 +0000 (13:52 +0000)] 
Update expected output for pth_once in memcheck tests.

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

21 years agoAdd -fno-omit-frame-pointer when building libpthread.so as that gets
Tom Hughes [Thu, 28 Oct 2004 13:47:14 +0000 (13:47 +0000)] 
Add -fno-omit-frame-pointer when building libpthread.so as that gets
loaded into the user's program and we want to be able to trace the
stack properly. Also add -fpic given that the code is going into a
shared library.

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

21 years agoRemove the thread numbers from the messages output by pth_once so that
Tom Hughes [Thu, 28 Oct 2004 13:39:52 +0000 (13:39 +0000)] 
Remove the thread numbers from the messages output by pth_once so that
the order the threads run in doesn't affect the output.

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

21 years agoFinally make VG_(bbs_done) agree exactly with what Lackey measures.
Julian Seward [Thu, 28 Oct 2004 10:31:15 +0000 (10:31 +0000)] 
Finally make VG_(bbs_done) agree exactly with what Lackey measures.

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

21 years ago(Unsuccessfully) try and make the BB counter give the same
Julian Seward [Thu, 28 Oct 2004 09:51:12 +0000 (09:51 +0000)] 
(Unsuccessfully) try and make the BB counter give the same
results as what Lackey says.

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

21 years agoMerge skiplist fix from Tom.
Julian Seward [Thu, 28 Oct 2004 09:02:30 +0000 (09:02 +0000)] 
Merge skiplist fix from Tom.

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

21 years agoFixed get_height to ensure that SK_MAXHEIGHT-1 is the maximum level we
Tom Hughes [Thu, 28 Oct 2004 08:09:05 +0000 (08:09 +0000)] 
Fixed get_height to ensure that SK_MAXHEIGHT-1 is the maximum level we
will allocate for a skip list entry as many routines use arrays of
size SK_MAXHEIGHT to hold a set of level pointers which means that a
level of SK_MAXHEIGHT is not valid due to C arrays being zero based.

This led to a number of subtle and hard to locate problems caused by
stack based arrays being overflowed by one entry when a node was
allocated with the maximum level. As each node only has a one in two
million or so chance of getting a level of SK_MAXHEIGHT this didn't
actually happen all that often.

BUG: 91028

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

21 years agoMake this test marginally more useful.
Julian Seward [Wed, 27 Oct 2004 23:04:37 +0000 (23:04 +0000)] 
Make this test marginally more useful.

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

21 years agoTrack LibVEX API changes.
Julian Seward [Wed, 27 Oct 2004 23:04:12 +0000 (23:04 +0000)] 
Track LibVEX API changes.

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

21 years agoInfrastructural grunge for connecting to Vex.
Julian Seward [Wed, 27 Oct 2004 23:03:32 +0000 (23:03 +0000)] 
Infrastructural grunge for connecting to Vex.

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

21 years agoVexify (partially, in Lackey's case). Seems to work tho.
Julian Seward [Wed, 27 Oct 2004 23:02:38 +0000 (23:02 +0000)] 
Vexify (partially, in Lackey's case).  Seems to work tho.

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

21 years agoChanges pertaining to supporting instrumentation:
Julian Seward [Wed, 27 Oct 2004 23:00:55 +0000 (23:00 +0000)] 
Changes pertaining to supporting instrumentation:

* Constructors for easier construction thereof, and also of
  argument vectors for both clean and dirty helpers.

* Allow/require instrumenters to supply helper-lookup functions.

* Clarify situation re whether or not dirty helpers get passed
  a pointer to the guest state.

* Sanity check IR after instrumentation.

Myriad other changes to make this all work.

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

21 years agoFix yet another bug pertaining to muddy thinking on the meaning of
Julian Seward [Wed, 27 Oct 2004 22:56:54 +0000 (22:56 +0000)] 
Fix yet another bug pertaining to muddy thinking on the meaning of
dead-after numbers.  This one was causing the "Post-instruction
actions for fixed rreg uses" section to free up rregs emerging from
HLRs one insn too late, and causing the sanity-check stuff for the
next insn to fail.

As a result, also properly fix an assertion in the sanity-check
section.

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

21 years agoMake exec-sigmask more robust.
Nicholas Nethercote [Wed, 27 Oct 2004 14:06:56 +0000 (14:06 +0000)] 
Make exec-sigmask more robust.

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

21 years agoJump through a hoop to make vgtest_ume work again on PIE-supporting systems.
Nicholas Nethercote [Wed, 27 Oct 2004 12:05:59 +0000 (12:05 +0000)] 
Jump through a hoop to make vgtest_ume work again on PIE-supporting systems.

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

21 years agowhitespace change only
Nicholas Nethercote [Wed, 27 Oct 2004 12:05:38 +0000 (12:05 +0000)] 
whitespace change only

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

21 years agoUpdate stated version to 437 (for snapshotting).
Julian Seward [Wed, 27 Oct 2004 09:19:44 +0000 (09:19 +0000)] 
Update stated version to 437 (for snapshotting).

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

21 years agoAdd a crude preferencing scheme used when selecting a real register to
Julian Seward [Wed, 27 Oct 2004 09:18:32 +0000 (09:18 +0000)] 
Add a crude preferencing scheme used when selecting a real register to
use.  The effect of a scheme is to favour real regs which don't have
any hard live ranges over those that do, if we have a choice.  The
former group are preferable since using them guarantees we will not
have to spill them across their HLRs.  This reduces code size on x86
by 1 to 2 percent.

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

21 years agoUse gcc, not 'gcc341'.
Julian Seward [Wed, 27 Oct 2004 09:15:47 +0000 (09:15 +0000)] 
Use gcc, not 'gcc341'.

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

21 years agoFix bad undefined value error, thanks to Tom.
Nicholas Nethercote [Tue, 26 Oct 2004 17:03:54 +0000 (17:03 +0000)] 
Fix bad undefined value error, thanks to Tom.

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

21 years agoMake as_shm less brittle.
Nicholas Nethercote [Tue, 26 Oct 2004 16:31:19 +0000 (16:31 +0000)] 
Make as_shm less brittle.

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

21 years agoTweak as_mmap for the possibility of a PIE-supporting system with a 4GB user
Nicholas Nethercote [Tue, 26 Oct 2004 16:30:01 +0000 (16:30 +0000)] 
Tweak as_mmap for the possibility of a PIE-supporting system with a 4GB user
space.

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

21 years agoLeave frame pointers in for the code in lib_replace_malloc.a as
Tom Hughes [Tue, 26 Oct 2004 15:55:46 +0000 (15:55 +0000)] 
Leave frame pointers in for the code in lib_replace_malloc.a as
valgrind likes to be able to trace the stack out of malloc etc.

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

21 years agowhoops, unbreak build
Nicholas Nethercote [Tue, 26 Oct 2004 15:04:39 +0000 (15:04 +0000)] 
whoops, unbreak build

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

21 years ago64-bit cleanness tweaks.
Nicholas Nethercote [Tue, 26 Oct 2004 13:37:48 +0000 (13:37 +0000)] 
64-bit cleanness tweaks.

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

21 years agoCode formatting improvement.
Nicholas Nethercote [Tue, 26 Oct 2004 13:32:11 +0000 (13:32 +0000)] 
Code formatting improvement.

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

21 years agox86 guest: Bite the bullet and update %EIP before each insn
Julian Seward [Tue, 26 Oct 2004 13:26:20 +0000 (13:26 +0000)] 
x86 guest: Bite the bullet and update %EIP before each insn

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

21 years agoMake the tree-builder observe the precise-exceptions requirement
Julian Seward [Tue, 26 Oct 2004 13:25:33 +0000 (13:25 +0000)] 
Make the tree-builder observe the precise-exceptions requirement
properly.  ToDo: less pessimistically

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

21 years agoHacks du jour
Julian Seward [Tue, 26 Oct 2004 13:24:50 +0000 (13:24 +0000)] 
Hacks du jour

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

21 years agoCode formatting changes only.
Nicholas Nethercote [Tue, 26 Oct 2004 13:00:12 +0000 (13:00 +0000)] 
Code formatting changes only.

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

21 years agoComment cleanups only.
Nicholas Nethercote [Tue, 26 Oct 2004 12:56:58 +0000 (12:56 +0000)] 
Comment cleanups only.

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

21 years agoGet rid of a couple of unneeded typedefs.
Julian Seward [Tue, 26 Oct 2004 12:39:24 +0000 (12:39 +0000)] 
Get rid of a couple of unneeded typedefs.

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

21 years ago64-bit cleanness tweaks.
Nicholas Nethercote [Tue, 26 Oct 2004 11:44:46 +0000 (11:44 +0000)] 
64-bit cleanness tweaks.

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

21 years agocomment wibble
Nicholas Nethercote [Tue, 26 Oct 2004 11:24:29 +0000 (11:24 +0000)] 
comment wibble

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

21 years agoArch-abstraction:
Nicholas Nethercote [Tue, 26 Oct 2004 11:18:32 +0000 (11:18 +0000)] 
Arch-abstraction:
- move some asm things into x86/
- also added a check at the start of init_tt_tc() to make sure that
  VG_CODE_OFFSET is correct.

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

21 years ago64-bit cleanness tweaks.
Nicholas Nethercote [Tue, 26 Oct 2004 10:57:24 +0000 (10:57 +0000)] 
64-bit cleanness tweaks.

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

21 years agoComment fix only
Nicholas Nethercote [Tue, 26 Oct 2004 10:19:30 +0000 (10:19 +0000)] 
Comment fix only

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

21 years agoArch-abstraction:
Nicholas Nethercote [Tue, 26 Oct 2004 09:59:49 +0000 (09:59 +0000)] 
Arch-abstraction:
- removed some x86-specific var/function names

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

21 years agoSimulate bit 21 of eflags (ID), so that CPUID tests work properly.
Julian Seward [Tue, 26 Oct 2004 00:50:52 +0000 (00:50 +0000)] 
Simulate bit 21 of eflags (ID), so that CPUID tests work properly.

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

21 years agoGet rid of debug printing.
Julian Seward [Tue, 26 Oct 2004 00:49:13 +0000 (00:49 +0000)] 
Get rid of debug printing.

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

21 years agoUse the new baseblock layout scheme.
Julian Seward [Mon, 25 Oct 2004 23:17:41 +0000 (23:17 +0000)] 
Use the new baseblock layout scheme.

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

21 years agoIncrease size of hacky allocation space. Sigh.
Julian Seward [Mon, 25 Oct 2004 23:16:36 +0000 (23:16 +0000)] 
Increase size of hacky allocation space.  Sigh.

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

21 years agoNew regime for baseblock layout, as described in comment in
Julian Seward [Mon, 25 Oct 2004 23:15:52 +0000 (23:15 +0000)] 
New regime for baseblock layout, as described in comment in
pub/libvex.h.  Now the client has to go along with LibVEX's baseblock
layout decisions and is essentially powerless to make its own
decisions on the matter.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Mon, 25 Oct 2004 20:44:09 +0000 (20:44 +0000)] 
Arch-abstraction:
- use less x86-specific var names

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