]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
18 years agoTest some Fortran types.
Julian Seward [Thu, 29 Mar 2007 16:35:00 +0000 (16:35 +0000)] 
Test some Fortran types.

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

18 years agoadd a comment
Nicholas Nethercote [Wed, 28 Mar 2007 12:16:55 +0000 (12:16 +0000)] 
add a comment

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

18 years agoRemove duplicate code -- make XArray use VG_(ssort).
Nicholas Nethercote [Wed, 28 Mar 2007 01:27:05 +0000 (01:27 +0000)] 
Remove duplicate code -- make XArray use VG_(ssort).

Had to change XArray's comparison function to return an Int rather than a
Word so it's consistent with the rest of the world.

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

18 years agoupdate
Nicholas Nethercote [Tue, 27 Mar 2007 07:43:51 +0000 (07:43 +0000)] 
update

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

18 years agoAugment a comment.
Nicholas Nethercote [Tue, 27 Mar 2007 07:41:33 +0000 (07:41 +0000)] 
Augment a comment.

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

18 years agoclarify comment
Nicholas Nethercote [Tue, 27 Mar 2007 06:46:03 +0000 (06:46 +0000)] 
clarify comment

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

18 years agoupdate
Nicholas Nethercote [Mon, 26 Mar 2007 23:53:25 +0000 (23:53 +0000)] 
update

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

18 years agoFix bug 142491: allow more --alloc-fn functions (128, up from 32).
Nicholas Nethercote [Mon, 26 Mar 2007 23:51:29 +0000 (23:51 +0000)] 
Fix bug 142491: allow more --alloc-fn functions (128, up from 32).

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

18 years agoupdate
Nicholas Nethercote [Mon, 26 Mar 2007 23:45:19 +0000 (23:45 +0000)] 
update

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

18 years agoFix bug 142197: don't free --toolname:foo options after they've been munged,
Nicholas Nethercote [Mon, 26 Mar 2007 23:38:42 +0000 (23:38 +0000)] 
Fix bug 142197: don't free --toolname:foo options after they've been munged,
because tools should be able to assume that they are never freed, just like
other options.

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

18 years agoupdate
Nicholas Nethercote [Mon, 26 Mar 2007 22:12:58 +0000 (22:12 +0000)] 
update

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

18 years agoFix 142488: don't read ./.valgrindrc if CWD==HOME.
Nicholas Nethercote [Mon, 26 Mar 2007 22:05:30 +0000 (22:05 +0000)] 
Fix 142488: don't read ./.valgrindrc if CWD==HOME.

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

18 years agoAdd a variant of gsl16test which handles the newer gsl-1.9 package.
Julian Seward [Mon, 26 Mar 2007 15:27:01 +0000 (15:27 +0000)] 
Add a variant of gsl16test which handles the newer gsl-1.9 package.

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

18 years agoAdd assertion + comment to a loop using VG_(getcwd).
Julian Seward [Mon, 26 Mar 2007 15:23:20 +0000 (15:23 +0000)] 
Add assertion + comment to a loop using VG_(getcwd).

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

18 years agoUpdate slightly.
Julian Seward [Mon, 26 Mar 2007 02:11:17 +0000 (02:11 +0000)] 
Update slightly.

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

18 years agoMore info about the VEX changes.
Nicholas Nethercote [Thu, 22 Mar 2007 20:58:50 +0000 (20:58 +0000)] 
More info about the VEX changes.

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

18 years agoDon't build SSE3 tests if the configure test determined that the assembler
Julian Seward [Thu, 22 Mar 2007 12:13:13 +0000 (12:13 +0000)] 
Don't build SSE3 tests if the configure test determined that the assembler
does not know about SSE3 instructions.

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

18 years agoClarify the "out of memory" message.
Nicholas Nethercote [Thu, 22 Mar 2007 03:36:55 +0000 (03:36 +0000)] 
Clarify the "out of memory" message.

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

18 years agoOlder assemblers don't speak SSE3. Add a configure test for it.
Julian Seward [Thu, 22 Mar 2007 00:24:21 +0000 (00:24 +0000)] 
Older assemblers don't speak SSE3.  Add a configure test for it.

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

18 years agoUnbreak the build on ppc64-linux.
Julian Seward [Wed, 21 Mar 2007 02:27:38 +0000 (02:27 +0000)] 
Unbreak the build on ppc64-linux.

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

18 years agoMake ptrace-based launchers able to handle --help, --version etc.
Julian Seward [Mon, 19 Mar 2007 18:38:55 +0000 (18:38 +0000)] 
Make ptrace-based launchers able to handle --help, --version etc.
Problem is that --help etc are handled by the tool exe.  But a
ptrace-based launch scheme can't run "no program" if the user just
types "valgrind --help" because the launcher depends on starting the
client first and only then attaching valgrind to it using ptrace.  So
instead provide a dummy do-nothing program to run when no program is
specified.  m_main notices this and acts as if there really had been
no program specified.

This has no effect at all on Linux/ELF program launching.

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

18 years agoFollowup to r6650: tidy up sys_sigreturn/sys_rt_sigreturn on ppc32/64-linux.
Julian Seward [Mon, 19 Mar 2007 15:29:23 +0000 (15:29 +0000)] 
Followup to r6650: tidy up sys_sigreturn/sys_rt_sigreturn on ppc32/64-linux.

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

18 years agoFollowup to r6650: tidy up sys_sigreturn/sys_rt_sigreturn on ppc32/64-linux.
Julian Seward [Mon, 19 Mar 2007 14:34:08 +0000 (14:34 +0000)] 
Followup to r6650: tidy up sys_sigreturn/sys_rt_sigreturn on ppc32/64-linux.

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

18 years agoDocument and tidy up one of the more arcane corners of signal
Julian Seward [Mon, 19 Mar 2007 13:38:11 +0000 (13:38 +0000)] 
Document and tidy up one of the more arcane corners of signal
handling: why PRE(sys_sigreturn) has to construct a fake syscall
return value which, when written back to the guest state, leaves it
unchanged.  It's only taken me about 3 years to realise why :-)
Fixes to ppc platforms to follow.

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

18 years agoUse a 64-bit counter to keep track of the total number of bytes
Julian Seward [Wed, 14 Mar 2007 11:57:37 +0000 (11:57 +0000)] 
Use a 64-bit counter to keep track of the total number of bytes
allocated, rather than SizeT which is word-sized.  Your average C++
lardware can easily turn over more than 4G in total in a half hour run
on a 32-bit machine, in which case the counter wraps around.

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

18 years agoBack out r6640; I'm pretty sure it is the wrong thing to do now.
Julian Seward [Wed, 14 Mar 2007 11:55:28 +0000 (11:55 +0000)] 
Back out r6640; I'm pretty sure it is the wrong thing to do now.

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

18 years agoTidy up a lot
Julian Seward [Mon, 12 Mar 2007 15:10:59 +0000 (15:10 +0000)] 
Tidy up a lot

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

18 years agoMore redhat8 suppressions.
Julian Seward [Mon, 12 Mar 2007 14:53:58 +0000 (14:53 +0000)] 
More redhat8 suppressions.

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

18 years agoAdd a test for vex ppc64 code generation bug fixed by vex r1739
Julian Seward [Mon, 12 Mar 2007 02:10:23 +0000 (02:10 +0000)] 
Add a test for vex ppc64 code generation bug fixed by vex r1739
(When generating 64-bit code, ensure that any addresses used in 4 or 8
byte loads or stores of the form reg+imm have the lowest 2 bits of imm
set to zero, so that they can safely be used in ld/ldu/lda/std/stdu
instructions.)

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

18 years agoAdd a custom stderr filter for memcheck/tests/amd64/defcfaexpr.
Julian Seward [Mon, 12 Mar 2007 01:29:31 +0000 (01:29 +0000)] 
Add a custom stderr filter for memcheck/tests/amd64/defcfaexpr.

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

18 years agoAdd a test for int3 on x86 (from Peter Maydell)
Julian Seward [Mon, 12 Mar 2007 00:42:26 +0000 (00:42 +0000)] 
Add a test for int3 on x86 (from Peter Maydell)

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

18 years agoAdd a test for int3 on amd64 (from Peter Maydell)
Julian Seward [Mon, 12 Mar 2007 00:27:30 +0000 (00:27 +0000)] 
Add a test for int3 on amd64 (from Peter Maydell)

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

18 years agoHandle sys_ioprio_set on amd64-linux.
Julian Seward [Sun, 11 Mar 2007 19:28:02 +0000 (19:28 +0000)] 
Handle sys_ioprio_set on amd64-linux.

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

18 years agoIt appears glibc-2.5's getenv() function steps along environment
Julian Seward [Sun, 11 Mar 2007 13:00:34 +0000 (13:00 +0000)] 
It appears glibc-2.5's getenv() function steps along environment
strings in 16-bit chunks, which can cause false errors in some cases
(sigh).  So do the usual thing and replace it.

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

18 years agowibble
Nicholas Nethercote [Sat, 10 Mar 2007 02:27:44 +0000 (02:27 +0000)] 
wibble

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

18 years agoupdate
Nicholas Nethercote [Sat, 10 Mar 2007 00:52:54 +0000 (00:52 +0000)] 
update

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

18 years agoUpdate.
Julian Seward [Thu, 8 Mar 2007 19:57:43 +0000 (19:57 +0000)] 
Update.

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

18 years agoRecord which SuSE 10.1 packages are needed for a successful 'make dist'.
Julian Seward [Thu, 8 Mar 2007 19:56:58 +0000 (19:56 +0000)] 
Record which SuSE 10.1 packages are needed for a successful 'make dist'.

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

18 years agoGenerate valid XML (conforming to docs/internals/xml-output.txt) even
Julian Seward [Thu, 8 Mar 2007 19:56:14 +0000 (19:56 +0000)] 
Generate valid XML (conforming to docs/internals/xml-output.txt) even
when VG_(name_of_launcher) is NULL.

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

18 years agoHorrible hacks to make 'make dist' work properly. Previously it only
Julian Seward [Thu, 8 Mar 2007 01:52:37 +0000 (01:52 +0000)] 
Horrible hacks to make 'make dist' work properly.  Previously it only
worked on systems when the configure script found a usable mpicc,
bizarrely.

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

18 years agoUpdate bug status file.
Tom Hughes [Wed, 7 Mar 2007 11:14:22 +0000 (11:14 +0000)] 
Update bug status file.

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

18 years agoAdd support for linux key management system calls.
Tom Hughes [Wed, 7 Mar 2007 11:12:13 +0000 (11:12 +0000)] 
Add support for linux key management system calls.
Based on patch from Ezra Peisach <epeisach@bu.edu>.
Fixes bug #139300.

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

18 years agoAdd support for some I2C ioctls.
Tom Hughes [Wed, 7 Mar 2007 10:07:13 +0000 (10:07 +0000)] 
Add support for some I2C ioctls.
Based on patch from Jean Delvare <khali@linux-fr.org>.
Fixes bug #142186.

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

18 years agoHandle some additional ptrace reason codes. Based on a patch
Tom Hughes [Wed, 7 Mar 2007 09:48:32 +0000 (09:48 +0000)] 
Handle some additional ptrace reason codes. Based on a patch
from Magnus Vesterlund <magnus_vesterlund@hotmail.com>.

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

18 years agoUpdate.
Julian Seward [Wed, 28 Feb 2007 14:10:43 +0000 (14:10 +0000)] 
Update.

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

18 years agoAdd a regression test for unwind handling of DW_CFA_def_cfa_expression.
Julian Seward [Wed, 28 Feb 2007 13:27:37 +0000 (13:27 +0000)] 
Add a regression test for unwind handling of DW_CFA_def_cfa_expression.

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

18 years agoHandle DW_CFA_def_cfa_expression; also DW_OP_mul.
Julian Seward [Wed, 28 Feb 2007 13:03:27 +0000 (13:03 +0000)] 
Handle DW_CFA_def_cfa_expression; also DW_OP_mul.

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

18 years agoFill in a few more DWARF3 'expression' related cases.
Julian Seward [Wed, 28 Feb 2007 01:46:30 +0000 (01:46 +0000)] 
Fill in a few more DWARF3 'expression' related cases.

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

18 years agoTrack recent XArray changes.
Julian Seward [Tue, 27 Feb 2007 22:36:14 +0000 (22:36 +0000)] 
Track recent XArray changes.

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

18 years agoupdate
Nicholas Nethercote [Tue, 27 Feb 2007 22:31:45 +0000 (22:31 +0000)] 
update

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

18 years agoBarf more elegantly.
Julian Seward [Tue, 27 Feb 2007 18:38:33 +0000 (18:38 +0000)] 
Barf more elegantly.

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

18 years agoAdd .eh_frame gunk for VG_(amd64_linux_REDIR_FOR_vgettimeofday) and
Julian Seward [Tue, 27 Feb 2007 18:37:21 +0000 (18:37 +0000)] 
Add .eh_frame gunk for VG_(amd64_linux_REDIR_FOR_vgettimeofday) and
VG_(amd64_linux_REDIR_FOR_vgettimeofday) so they can participate in
stack unwinding.

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

18 years agoMake the leb readers 64-bit clean. That should guard against another
Julian Seward [Tue, 27 Feb 2007 17:43:43 +0000 (17:43 +0000)] 
Make the leb readers 64-bit clean.  That should guard against another
couple of decades of Moore's law.

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

18 years agoAdd limited support for DWARF3 'expressions' in stack-unwind (CFI)
Julian Seward [Tue, 27 Feb 2007 16:52:23 +0000 (16:52 +0000)] 
Add limited support for DWARF3 'expressions' in stack-unwind (CFI)
info (DW_CFA_def_cfa_expression, DW_CFA_expression,
DW_CFA_val_expression).  Mechanism to support all of these is in place
although only DW_CFA_val_expression is currently connected up.

This is really nasty.  The basic idea is to partially evaluate each
expression at the debuginfo-reading time by running it on a stack
machine in which each stack element is an expression tree.  If the
expression can be 'run' successfully, the tree (dag, really) remaining
at the top of the stack is massaged and put into the DiCfSI record for
that address range.  At unwind time the tree is evaluated if needed.
Such cases are in fact extremely rare and so the vast majority of
unwindings use the same mechanism as before.

As a result of all this:

* some obscure cases in glibc-2.5's libpthread.so unwind when they
  didn't before

* --debug-dump=frames produces identical output to that of readelf
  for libc-2.5.so and associated libpthread.so

* All the action centers around the new type CfiExpr, which is a
  union expression-tree type in the same style as IRExpr et al

* Many dark corners of the CFI reader have been looked at and
  (re-)validated

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

18 years agoVG_(addToXA): return index in the array where the item was added.
Julian Seward [Tue, 27 Feb 2007 16:40:53 +0000 (16:40 +0000)] 
VG_(addToXA): return index in the array where the item was added.

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

18 years agoCallgrind: Fix potential buffer overruns with user provided strings
Josef Weidendorfer [Mon, 26 Feb 2007 00:16:09 +0000 (00:16 +0000)] 
Callgrind: Fix potential buffer overruns with user provided strings

This introduces some macros to shorten the code for output of
strings to a file descriptor. I could use this a lot,
but this commit limits itself to the potential buffer overruns
(to ease backporting - provided we want to do this)

Heavy use of the macros probably blows up the code. Perhaps
it would be better to provide e.g. a VG_(write_str3) function
in the tool API.

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

18 years agoComment-only change.
Julian Seward [Sun, 25 Feb 2007 17:13:19 +0000 (17:13 +0000)] 
Comment-only change.

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

18 years agoGet rid of the type XArrayStrings in m_clientstate and use new generic
Julian Seward [Sun, 25 Feb 2007 15:08:24 +0000 (15:08 +0000)] 
Get rid of the type XArrayStrings in m_clientstate and use new generic
equivalents in module m_xarray instead.  A suprisingly pervasive
change.

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

18 years agoMake all the m_xarray functions tool-visible.
Julian Seward [Sun, 25 Feb 2007 15:04:40 +0000 (15:04 +0000)] 
Make all the m_xarray functions tool-visible.

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

18 years agoExpandable arrays of arbitrary element type T are a simple, useful
Julian Seward [Sun, 25 Feb 2007 11:51:13 +0000 (11:51 +0000)] 
Expandable arrays of arbitrary element type T are a simple, useful
abstraction implemented independently in several places in the code
base (bad!).  This commit moves into public view a generic
implementation of it which has been lurking in readxcoff.c for some
time.  Currently nothing uses it.

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

18 years agoUpdate.
Julian Seward [Sun, 25 Feb 2007 00:04:14 +0000 (00:04 +0000)] 
Update.

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

18 years agoUpdate redhat8 suppressions.
Julian Seward [Sun, 25 Feb 2007 00:03:00 +0000 (00:03 +0000)] 
Update redhat8 suppressions.

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

18 years agoCFI reader: make reading of 'encoded addresses' be much more in
Julian Seward [Sat, 24 Feb 2007 23:29:31 +0000 (23:29 +0000)] 
CFI reader: make reading of 'encoded addresses' be much more in
line with the DWARF3 spec and also with binutils/readelf.c:

- Update some comments

- Get rid of kludge_then_addDiCfSI; apparently no longer needed

- Pass the SegInfo's text_bias around in the AddressDecodingInfo,
  so that ...

- read_encoded_Addr can set 'base' to the text_bias when handling
  DW_EH_PE_absptr.  This is the central change of this commit and
  appears (to me) to be what DWARF3 requires.  (The spec is less
  than clear ..)

- don't use read_encoded_Addr to read the FDE arange field since
  read_encoded_Addr's adding-on of a 'base' value is meaningless
  here - the arange is not an address, but a value saying how many
  bytes the FDE covers.  Instead just read a little-endian value of
  the right size.  This is in accordance with DWARF3 and with
  readelf.c.  Add new function read_le_encoded_literal to make
  this possible.

I believe this is all correct, and it's certainly much better than it
was.  But given that the DWARF3 spec isn't as formal as it should be,
it's hard to be sure.

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

18 years agoMake the frame unwinder able to handle 64-bit DWARF (untested :-(
Julian Seward [Fri, 23 Feb 2007 10:10:02 +0000 (10:10 +0000)] 
Make the frame unwinder able to handle 64-bit DWARF (untested :-(
mostly by a lot of comparison of this code vs that of
binutils-2.17/binutils/dwarf.c vs the relevant specs.

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

18 years agoUpdate
Julian Seward [Fri, 23 Feb 2007 09:04:16 +0000 (09:04 +0000)] 
Update

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

18 years agoAdd an intercept for __memmove_chk (another glibc 2.5 artefact)
Julian Seward [Fri, 23 Feb 2007 09:03:26 +0000 (09:03 +0000)] 
Add an intercept for __memmove_chk (another glibc 2.5 artefact)

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

18 years agoMake ppc32/64-aix5 work again following recent VG_(tt_fast) rearrangement.
Julian Seward [Tue, 20 Feb 2007 19:23:19 +0000 (19:23 +0000)] 
Make ppc32/64-aix5 work again following recent VG_(tt_fast) rearrangement.

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

18 years agocomment
Nicholas Nethercote [Mon, 19 Feb 2007 04:16:09 +0000 (04:16 +0000)] 
comment

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

18 years agoAdd a script to make running in-place simpler.
Nicholas Nethercote [Mon, 19 Feb 2007 04:09:24 +0000 (04:09 +0000)] 
Add a script to make running in-place simpler.

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

18 years agoUpdate
Josef Weidendorfer [Fri, 16 Feb 2007 21:57:27 +0000 (21:57 +0000)] 
Update

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

18 years agoCallgrind: Fix threads display of "callgrind_control -s"
Josef Weidendorfer [Fri, 16 Feb 2007 21:55:25 +0000 (21:55 +0000)] 
Callgrind: Fix threads display of "callgrind_control -s"

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

18 years agoImprove --debug-dump=frames output.
Julian Seward [Fri, 16 Feb 2007 20:11:27 +0000 (20:11 +0000)] 
Improve --debug-dump=frames output.

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

18 years agoCorrectly handle DW_CFA_def_cfa_sf (existing code fails to scale
Julian Seward [Fri, 16 Feb 2007 19:20:28 +0000 (19:20 +0000)] 
Correctly handle DW_CFA_def_cfa_sf (existing code fails to scale
offset by data_a_f).

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

18 years agoUpdate
Julian Seward [Fri, 16 Feb 2007 15:39:24 +0000 (15:39 +0000)] 
Update

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

18 years agoNon-functional (debug printing only) change:
Julian Seward [Fri, 16 Feb 2007 14:17:10 +0000 (14:17 +0000)] 
Non-functional (debug printing only) change:

Implement GNU binutils 'readelf' style output for --debug-dump=lines
(fully) and --debug-dump=frames (partially).

Initial testing with --debug-dump=lines shows our DWARF2 line number
reader behaves identically to readelf for all examples I tried so far.

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

18 years agoMake VG_(printf) et al conform to ANSI w.r.t. capitalisation of
Julian Seward [Fri, 16 Feb 2007 14:10:24 +0000 (14:10 +0000)] 
Make VG_(printf) et al conform to ANSI w.r.t. capitalisation of
hex numbers: %x produces lowercase hex, and %X produces uppercase.
Unfortunately this probably changes the output in dozens of places.

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

18 years ago--wait-for-gdb=yes: gcc 4.1.2 now appears to delete do-nothing loops, so
Julian Seward [Fri, 16 Feb 2007 13:57:07 +0000 (13:57 +0000)] 
--wait-for-gdb=yes: gcc 4.1.2 now appears to delete do-nothing loops, so
make the loop variable volatile so it can't do that.

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

18 years agoUpdate. I hope I got the right section ;-)
Josef Weidendorfer [Fri, 16 Feb 2007 13:17:40 +0000 (13:17 +0000)] 
Update. I hope I got the right section ;-)

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

18 years agocallgrind: fix --collect-systime=yes with "no instrumentation" mode
Josef Weidendorfer [Fri, 16 Feb 2007 13:12:43 +0000 (13:12 +0000)] 
callgrind: fix --collect-systime=yes with "no instrumentation" mode

(see bug 139363)

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

18 years agocorrectify
Nicholas Nethercote [Fri, 16 Feb 2007 11:57:18 +0000 (11:57 +0000)] 
correctify

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

18 years agolackey: Take possible condition invertion for Jccs into account
Josef Weidendorfer [Fri, 16 Feb 2007 11:13:53 +0000 (11:13 +0000)] 
lackey: Take possible condition invertion for Jccs into account

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

18 years agoUpdated expected output.
Julian Seward [Tue, 13 Feb 2007 10:24:32 +0000 (10:24 +0000)] 
Updated expected output.

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

18 years agoupdate
Nicholas Nethercote [Mon, 12 Feb 2007 22:38:50 +0000 (22:38 +0000)] 
update

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

18 years agoEssentially non-functional tidyings and improvements to debuginfo
Julian Seward [Mon, 12 Feb 2007 17:47:14 +0000 (17:47 +0000)] 
Essentially non-functional tidyings and improvements to debuginfo
reading.  Two sets of changes:

* New flags for debugging the readers.
  --debug-dump=syms
  --debug-dump=line
  --debug-dump=frames

  These (currently accepted but nonfunctional) are intended to
  create output in the style of (that is, identical to)
    /usr/bin/readelf --syms
    /usr/bin/readelf --debug-dump=line
    /usr/bin/readelf --debug-dump=frames
  respectively.  The plan is that flaws in these readers can then
  be easily found by diff-ing the output against that from readelf.

  Also, a new flag --trace-symtab-patt=<object filename pattern>
  which is used to limit all debuginfo-related debug info to the
  set of shared object names matching the given pattern.  This
  facilitates extracting the debuginfo details of one specific
  shared object, which is usually what is required, rather than
  having to wade through megabytes of junk from every object in
  the process.

* Propagate the avma/svma/image address-naming scheme
  (as described at the top of debuginfo.c) through large parts of
  readelf.c and readdwarf.c.

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

18 years agoThis code shouldn't be run unless --trace-mem was specified.
Nicholas Nethercote [Mon, 12 Feb 2007 11:28:38 +0000 (11:28 +0000)] 
This code shouldn't be run unless --trace-mem was specified.

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

18 years agoUpdate for changes to lackey
Nicholas Nethercote [Mon, 12 Feb 2007 10:37:37 +0000 (10:37 +0000)] 
Update for changes to lackey

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

18 years ago* make the --trace-mem output format more concise
Julian Seward [Mon, 12 Feb 2007 08:42:13 +0000 (08:42 +0000)] 
* make the --trace-mem output format more concise
* new option --trace-superblocks for getting a log of superblock entries

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

18 years agoGet rid of the unused --model-pthreads flag.
Julian Seward [Mon, 12 Feb 2007 08:39:54 +0000 (08:39 +0000)] 
Get rid of the unused --model-pthreads flag.

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

18 years agoFix ppc64-linux dispatcher following r6582.
Julian Seward [Sun, 11 Feb 2007 09:09:20 +0000 (09:09 +0000)] 
Fix ppc64-linux dispatcher following r6582.

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

18 years agoRedo the dispatcher's fast-cache mechanism (VG_(tt_fast) et al) to be
Julian Seward [Sun, 11 Feb 2007 05:08:06 +0000 (05:08 +0000)] 
Redo the dispatcher's fast-cache mechanism (VG_(tt_fast) et al) to be
more cache friendly.  This changes the mechanism from being a table of
pointers to (guest address, translated code pairs) to being a table of
pairs (guest address, pointer to translated code).  The effect ranges
from zero up to about 20% performance improvement on memcheck, the
biggest effects being seen for programs which jump around a large
number of blocks of code and whose data set does not fit in L2.

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

18 years agoextra thing
Nicholas Nethercote [Sat, 10 Feb 2007 05:20:03 +0000 (05:20 +0000)] 
extra thing

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

18 years agoOops; make declarations match definitions. So much for C's type system.
Julian Seward [Fri, 9 Feb 2007 17:45:09 +0000 (17:45 +0000)] 
Oops; make declarations match definitions.  So much for C's type system.

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

18 years agoWork around gcc limitations on aix.
Julian Seward [Fri, 9 Feb 2007 02:37:11 +0000 (02:37 +0000)] 
Work around gcc limitations on aix.

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

18 years agoUnbreak aix build.
Julian Seward [Fri, 9 Feb 2007 02:11:06 +0000 (02:11 +0000)] 
Unbreak aix build.

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

18 years agoSpecialise VG_(ssort) for 4-word elements. This removes about 80% of
Julian Seward [Thu, 8 Feb 2007 16:25:56 +0000 (16:25 +0000)] 
Specialise VG_(ssort) for 4-word elements.  This removes about 80% of
all calls to VG_(memcpy).  Thanks to cachegrind for showing somebody
was calling VG_(memcpy) a huge number of times, and to callgrind for
finding out who :-)

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

18 years agoUpdate.
Julian Seward [Thu, 8 Feb 2007 12:42:11 +0000 (12:42 +0000)] 
Update.

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

18 years agoHandle type MPI_PACKED and associated functions PMPI_Packed and
Julian Seward [Thu, 8 Feb 2007 12:05:03 +0000 (12:05 +0000)] 
Handle type MPI_PACKED and associated functions PMPI_Packed and
PMPI_Unpacked.

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

18 years agoAdd cg_merge, a program for merging (adding) cachegrind output files,
Julian Seward [Thu, 8 Feb 2007 11:31:03 +0000 (11:31 +0000)] 
Add cg_merge, a program for merging (adding) cachegrind output files,
and associated documentation.

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

18 years agoAdd a new flag --cachegrind-log-file to cg_annotate, which tells it
Julian Seward [Thu, 8 Feb 2007 06:47:19 +0000 (06:47 +0000)] 
Add a new flag --cachegrind-log-file to cg_annotate, which tells it
precisely the name of the profile data file it should use (instead of
assuming cachegrind.out.<pid> where <pid> is specified by the --<pid>
flag).  The old mechanism is still supported though.

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

18 years ago* Add new flag --cachegrind-out-file to specify the output file
Julian Seward [Wed, 7 Feb 2007 19:55:30 +0000 (19:55 +0000)] 
* Add new flag --cachegrind-out-file to specify the output file
  basename to be something other than "cachegrind.out".

* Observe the core-supplied --log-file-qualifier, if specified,
  in creation of output file names.

* To make the above work, move most of the stuff in cg_pre_clo_init
  into cg_post_clo_init, so that the core's determination of the
  log file qualifier, if any, is done by the time cachegrind comes
  to process its arguments.

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