]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
13 years agodrd: Make sure that frame unwind information is generated for DRD intercepts
Bart Van Assche [Sun, 17 Jun 2012 08:46:32 +0000 (08:46 +0000)] 
drd: Make sure that frame unwind information is generated for DRD intercepts
such that pthread_cancel() works properly. See also Ulrich Drepper, Cancellation
and C++ Exceptions, 2010 (http://udrepper.livejournal.com/21541.html).

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

13 years agodrd: Add two regression test output files
Bart Van Assche [Sun, 17 Jun 2012 06:13:58 +0000 (06:13 +0000)] 
drd: Add two regression test output files

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

13 years agoRecognize clang version correctly. Closes #301984.
Bart Van Assche [Sun, 17 Jun 2012 05:53:02 +0000 (05:53 +0000)] 
Recognize clang version correctly. Closes #301984.

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

13 years agoAlign VG_(threads)[]
Bart Van Assche [Sun, 17 Jun 2012 05:51:48 +0000 (05:51 +0000)] 
Align VG_(threads)[]

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

13 years agoAdd strchr.stderr.exp3 to memcheck/tests/Makefile.am
Bart Van Assche [Sun, 17 Jun 2012 05:51:03 +0000 (05:51 +0000)] 
Add strchr.stderr.exp3 to memcheck/tests/Makefile.am

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

13 years agoNEWS: add information about post-3.7.0 DRD changes
Bart Van Assche [Sat, 16 Jun 2012 19:02:25 +0000 (19:02 +0000)] 
NEWS: add information about post-3.7.0 DRD changes

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

13 years agodrd manual: Update according to post-3.7.0 changes
Bart Van Assche [Sat, 16 Jun 2012 18:51:16 +0000 (18:51 +0000)] 
drd manual: Update according to post-3.7.0 changes

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

13 years agomemcheck/tests/strchr: Add expected output for openSUSE 12.1
Bart Van Assche [Sat, 16 Jun 2012 18:50:04 +0000 (18:50 +0000)] 
memcheck/tests/strchr: Add expected output for openSUSE 12.1

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

13 years agoFix order of % versus * in memalign2.c new checks introduced in 12642
Philippe Waroquiers [Fri, 15 Jun 2012 22:57:40 +0000 (22:57 +0000)] 
Fix order of % versus * in memalign2.c new checks introduced in 12642
(spotted by Florian eagle eyes)

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

13 years agoFix 203877 and 301229 increase to 16Mb maximum allowed alignment for memalign() and...
Philippe Waroquiers [Fri, 15 Jun 2012 22:19:59 +0000 (22:19 +0000)] 
Fix 203877 and 301229 increase to 16Mb maximum allowed alignment for memalign() and posix_memalign
Note that VG_(arena_memalign) is not used by core or tools for the moment.
We have one single maxima for both the V core/tools and the client.
Enhanced memcheck/tests/memalign2.c to test 4 Mb and 16 Mb alignments.

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

13 years agoAdd a hack (disabled by default) that attempts to unwind the stack on
Julian Seward [Fri, 15 Jun 2012 16:20:23 +0000 (16:20 +0000)] 
Add a hack (disabled by default) that attempts to unwind the stack on
ARM by simply scanning up and looking for words that look like they
might be return addresses.  Last-ditch hack for when the CFI trail
goes cold.

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

13 years agoUpdate.
Julian Seward [Fri, 15 Jun 2012 15:48:24 +0000 (15:48 +0000)] 
Update.

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

13 years agoUpdate.
Julian Seward [Thu, 14 Jun 2012 23:32:44 +0000 (23:32 +0000)] 
Update.

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

13 years agoHave the inner Valgrind registering the interim_stack asap.
Philippe Waroquiers [Thu, 14 Jun 2012 22:18:50 +0000 (22:18 +0000)] 
Have the inner Valgrind registering the interim_stack asap.
This is needed to have the outer valgrind able to do stack
traces of the inner Valgrind before the main thread runs.
Without this, the outer crashes (segv) when doing a stack trace.
In mtV.txt, an ugly kludge was described to avoid this crash.
This is the clean solution replacing the kludge.

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

13 years agoFix assert in gdbserver for watchpoints watching the same address
Philippe Waroquiers [Thu, 14 Jun 2012 19:56:20 +0000 (19:56 +0000)] 
Fix assert in gdbserver for watchpoints watching the same address

GDB can create watchpoints watching the same address.
This was causing assertion failures.
To handle this, hash table (with key watched address) is replaced
by an xarray of address/lengh/kind.
Fully identical watches are ignored (either not inserted, and
not causing a problem if already deleted).

gdbserver_tests/mcwatchpoint enhanced to test duplicated watchpoints

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

13 years agoUpdate.
Julian Seward [Thu, 14 Jun 2012 08:52:11 +0000 (08:52 +0000)] 
Update.

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

13 years agoUpdate with recent notes.
Julian Seward [Wed, 13 Jun 2012 11:12:49 +0000 (11:12 +0000)] 
Update with recent notes.

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

13 years agoChange the V output file name from out-V to out-VAL.
Julian Seward [Wed, 13 Jun 2012 11:12:06 +0000 (11:12 +0000)] 
Change the V output file name from out-V to out-VAL.

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

13 years agoUpdate.
Julian Seward [Wed, 13 Jun 2012 11:11:10 +0000 (11:11 +0000)] 
Update.

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

13 years agoUpdate.
Julian Seward [Tue, 12 Jun 2012 15:00:00 +0000 (15:00 +0000)] 
Update.

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

13 years agoUpdate.
Julian Seward [Tue, 12 Jun 2012 08:46:09 +0000 (08:46 +0000)] 
Update.

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

13 years agoAvoid unused warning for ptrace_write_memory in vgdb.c (only used on some platforms)
Philippe Waroquiers [Sun, 10 Jun 2012 12:26:26 +0000 (12:26 +0000)] 
Avoid unused warning for ptrace_write_memory in vgdb.c (only used on some platforms)

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

13 years agodrd: Don't sporadically report false positives on newly allocated memory. Fixes ...
Bart Van Assche [Sun, 10 Jun 2012 10:44:05 +0000 (10:44 +0000)] 
drd: Don't sporadically report false positives on newly allocated memory. Fixes #297147.

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

13 years agoAdd a stackframe around function call. Avoids testcase hangs
Florian Krohm [Sat, 9 Jun 2012 16:19:31 +0000 (16:19 +0000)] 
Add a stackframe around function call. Avoids testcase hangs
when compiled with -O3. Found and debugged by Christian.

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

13 years agoFix typo/merge problem (replace s390x by mips32 in target.c)
Philippe Waroquiers [Sat, 9 Jun 2012 09:31:43 +0000 (09:31 +0000)] 
Fix typo/merge problem (replace s390x by mips32 in target.c)

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

13 years agoUpdate Subversion ignore lists
Bart Van Assche [Sat, 9 Jun 2012 06:33:44 +0000 (06:33 +0000)] 
Update Subversion ignore lists

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

13 years agoAdjusting the svn:executable property on none/tests/mips32/filter_stderr.
Petar Jovanovic [Sat, 9 Jun 2012 01:56:58 +0000 (01:56 +0000)] 
Adjusting the svn:executable property on none/tests/mips32/filter_stderr.

vg_regtest failed on MIPS as filter_stderr was not an executable.
MIPS port is currently tracked as bug #270777.

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

13 years agoAmend do_shadow_Dirty and do_origins_Dirty so they no longer assert
Florian Krohm [Fri, 8 Jun 2012 16:01:19 +0000 (16:01 +0000)] 
Amend do_shadow_Dirty and do_origins_Dirty so they no longer assert
if the helper call touches an odd number of bytes in memory.

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

13 years agoavoid gcc warning regarding local/global variable shadowing in cdsg test
Christian Borntraeger [Fri, 8 Jun 2012 07:13:17 +0000 (07:13 +0000)] 
avoid gcc warning regarding local/global variable shadowing in cdsg test

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

13 years agos390: also fix the memcheck testcase for cdsg regarding alignment
Christian Borntraeger [Fri, 8 Jun 2012 06:59:33 +0000 (06:59 +0000)] 
s390: also fix the memcheck testcase for cdsg regarding alignment

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

13 years agodrd: Add a suppression pattern
Bart Van Assche [Fri, 8 Jun 2012 06:59:18 +0000 (06:59 +0000)] 
drd: Add a suppression pattern

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

13 years agoCDSG needs quad word (16 byte) aligned data structures. Since the stack
Christian Borntraeger [Fri, 8 Jun 2012 06:39:43 +0000 (06:39 +0000)] 
CDSG needs quad word (16 byte) aligned data structures. Since the stack
on s390 has only 8 byte alignment gcc cant guarantee 16 byte alignment
for local variables. As a global variable gcc can do that.

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

13 years agomips32-linux port: add missing (empty) stderr.exp files.
Julian Seward [Thu, 7 Jun 2012 11:38:40 +0000 (11:38 +0000)] 
mips32-linux port: add missing (empty) stderr.exp files.

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

13 years agoMerge in a port for mips32-linux, by Petar Jovanovic and Dejan Jevtic,
Julian Seward [Thu, 7 Jun 2012 09:32:40 +0000 (09:32 +0000)] 
Merge in a port for mips32-linux, by Petar Jovanovic and Dejan Jevtic,
mips-valgrind@rt-rk.com, Bug 270777.

Valgrind: new non-test files for mips32-linux.

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

13 years agoMerge in a port for mips32-linux, by Petar Jovanovic and Dejan Jevtic,
Julian Seward [Thu, 7 Jun 2012 09:23:23 +0000 (09:23 +0000)] 
Merge in a port for mips32-linux, by Petar Jovanovic and Dejan Jevtic,
mips-valgrind@rt-rk.com, Bug 270777.

Valgrind: new non-test files for mips32-linux.

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

13 years agoMerge in a port for mips32-linux, by Petar Jovanovic and Dejan Jevtic,
Julian Seward [Thu, 7 Jun 2012 09:13:21 +0000 (09:13 +0000)] 
Merge in a port for mips32-linux, by Petar Jovanovic and Dejan Jevtic,
mips-valgrind@rt-rk.com, Bug 270777.

Valgrind: changes to existing files.

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

13 years agoSupport "compare double ansd swap" insns: CDS, CDSY, and CDSG
Florian Krohm [Wed, 6 Jun 2012 02:27:51 +0000 (02:27 +0000)] 
Support "compare double ansd swap" insns: CDS, CDSY, and CDSG
valgrind bits for fixing bugzilla #291865. See also VEX r2372.

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

13 years agoFixes for 'make dist'.
Julian Seward [Tue, 5 Jun 2012 11:10:19 +0000 (11:10 +0000)] 
Fixes for 'make dist'.

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

13 years agoAdd macros I_REPLACE_SONAME_FNNAME_Z{U,Z} for general end-user use.
Julian Seward [Tue, 5 Jun 2012 07:12:15 +0000 (07:12 +0000)] 
Add macros I_REPLACE_SONAME_FNNAME_Z{U,Z} for general end-user use.
The I_WRAP_SONAME_FNNAME_Z{U,Z} equivalents have been present for
years.  Seems inconsistent for the REPLACE versions to be missing.

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

13 years agoUpdate.
Julian Seward [Tue, 5 Jun 2012 00:32:51 +0000 (00:32 +0000)] 
Update.

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

13 years agoConvert avx-1 into a proper regression test.
Julian Seward [Tue, 5 Jun 2012 00:31:49 +0000 (00:31 +0000)] 
Convert avx-1 into a proper regression test.

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

13 years agoFix breakage I introduced in r12609, sigh.
Julian Seward [Tue, 5 Jun 2012 00:30:24 +0000 (00:30 +0000)] 
Fix breakage I introduced in r12609, sigh.

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

13 years agoAdd feature testing for AVX. Also make the return values into named
Julian Seward [Mon, 4 Jun 2012 07:39:30 +0000 (07:39 +0000)] 
Add feature testing for AVX.  Also make the return values into named
constants.

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

13 years agoUpdate.
Julian Seward [Sun, 3 Jun 2012 23:14:23 +0000 (23:14 +0000)] 
Update.

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

13 years agoUpdate.
Julian Seward [Sun, 3 Jun 2012 23:13:08 +0000 (23:13 +0000)] 
Update.

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

13 years agoIf we are doing cache simulation, refuse to start at all if the minimum
Julian Seward [Sun, 3 Jun 2012 23:10:55 +0000 (23:10 +0000)] 
If we are doing cache simulation, refuse to start at all if the minimum
cache line size is smaller than the maximum guest register size.

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

13 years agom_machine: add new function VG_(machine_get_size_of_largest_guest_register)
Julian Seward [Sun, 3 Jun 2012 22:40:07 +0000 (22:40 +0000)] 
m_machine: add new function VG_(machine_get_size_of_largest_guest_register)
cachegrind: use the new function to abort startup if the minumum line
  size is smaller than the size of the largest guest register.
Partially derived from a patch by Josef Weidendorfer.

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

13 years agoTweak testcase. Invalidate cc, making sure it is set later.
Florian Krohm [Sun, 3 Jun 2012 22:37:15 +0000 (22:37 +0000)] 
Tweak testcase. Invalidate cc, making sure it is set later.

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

13 years agoPOWER Processor decimal FP support, part 5. (Valgrind side). Bug #299694.
Julian Seward [Sat, 2 Jun 2012 23:48:06 +0000 (23:48 +0000)] 
POWER Processor decimal FP support, part 5.  (Valgrind side).  Bug #299694.
(Carl Love, carll@us.ibm.com and Maynard Johnson, maynardj@us.ibm.com)

This patch adds support for Power Decimal Floating Point (DFP) . This
is the fifth patch set in the series of five to add the DFP
instruction support to Valgrind.  Adds support for the ddedpd,
ddedpdq, denbcd, denbcdq, dtstsf, and dtstsfq instructions.

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

13 years agoRippled from VEX r2366. Part of reducing size of IRExpr.
Florian Krohm [Sat, 2 Jun 2012 20:30:41 +0000 (20:30 +0000)] 
Rippled from VEX r2366. Part of reducing size of IRExpr.
These are the valgrind bits.

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

13 years agoUpdate.
Julian Seward [Sat, 2 Jun 2012 11:55:52 +0000 (11:55 +0000)] 
Update.

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

13 years agoUpdate ignored files.
Florian Krohm [Sat, 2 Jun 2012 02:39:54 +0000 (02:39 +0000)] 
Update ignored files.

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

13 years agoRipple from VEX r2363. Part of reducing size of IRExpr.
Florian Krohm [Fri, 1 Jun 2012 20:43:03 +0000 (20:43 +0000)] 
Ripple from VEX r2363. Part of reducing size of IRExpr.

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

13 years agoTrack the change to IRDirty guest state effect annotations introduced
Julian Seward [Fri, 1 Jun 2012 16:11:41 +0000 (16:11 +0000)] 
Track the change to IRDirty guest state effect annotations introduced
in vex r2362.

mc_translate.c: also do PCast 64->32 a bit more efficiently.

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

13 years agoAdd missing .exp files.
Florian Krohm [Fri, 1 Jun 2012 03:20:47 +0000 (03:20 +0000)] 
Add missing .exp files.

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

13 years agoReduce size of an IRStmt from 40 bytes to 32 bytes on LP64
Florian Krohm [Thu, 31 May 2012 15:48:13 +0000 (15:48 +0000)] 
Reduce size of an IRStmt from 40 bytes to 32 bytes on LP64
by allocating the details of a PutI statement into a struct
of its own and link to that (as is being done for Dirty and CAS).

These are the valgrind bits (see also VEX r2361).

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

13 years agoAdd testcases for "compare and swap".
Florian Krohm [Wed, 30 May 2012 20:46:58 +0000 (20:46 +0000)] 
Add testcases for "compare and swap".

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

13 years agoFix MacOS passsigalrm.c compilation error due to SIGRTMIN not existing on MacOS
Philippe Waroquiers [Tue, 29 May 2012 17:04:13 +0000 (17:04 +0000)] 
Fix MacOS passsigalrm.c compilation error due to SIGRTMIN not existing on MacOS
The test will very probably fail on MacOS (as gdb output will contain SIGUSR1
rather than signal SIGRTMIN, but at least it should compile).
(not tested on MacOS; just tested that it still works on linux)

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

13 years agoFix machine detection on s390 to not bail out the regression
Christian Borntraeger [Tue, 29 May 2012 11:02:28 +0000 (11:02 +0000)] 
Fix machine detection on s390 to not bail out the regression
test on unknown systems.

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

13 years agoDocument the register(s) used for thread pointer
Philippe Waroquiers [Mon, 28 May 2012 16:55:35 +0000 (16:55 +0000)] 
Document the register(s) used for thread pointer

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

13 years agoLet valgrind check the tls argument if the appropriate flag is set
Christian Borntraeger [Mon, 28 May 2012 11:51:50 +0000 (11:51 +0000)] 
Let valgrind check the tls argument if the appropriate flag is set

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

13 years agoImprove cross referencing of gdbserver monitor commands
Philippe Waroquiers [Mon, 28 May 2012 08:56:24 +0000 (08:56 +0000)] 
Improve cross referencing of gdbserver monitor commands

Based on a suggestion and patch from Marc Bessieres
(marc.bessieres@gmail.com)

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

13 years agofix the warning introduced by fixing SETTLS clone flag PRE_READ logic
Philippe Waroquiers [Sun, 27 May 2012 20:21:02 +0000 (20:21 +0000)] 
fix the warning introduced by fixing SETTLS clone flag PRE_READ logic

on amd64, vki_modify_ldt_t was defined as void (not very clear why).
sizeof (void) cannot be taken (or more precisely can be taken,
but nobody knows what that means and what gcc does).
So, uncommended the (supposedly) correct definition of the type.
Note that I checked the definition on debian 6.0, kernel 2.6.32
and the structure is still ok.

Still needed to look at the other platforms not properly
handling the *SETTID and the SETTLS flags in clone PRE_READ
logic and/or not defining the type vki_modify_ldt_t

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

13 years agoAdd more test cases for VCMPSS, and reenable disabled tests for VCMPSD
Julian Seward [Sun, 27 May 2012 13:52:54 +0000 (13:52 +0000)] 
Add more test cases for VCMPSS, and reenable disabled tests for VCMPSD
and VEXTRACTF128, now that the implementation has been fixed.  Current
status that all so-far implemented AVX instructions are tested by this
file, and none have any detectable failures.

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

13 years agoAdd tests for all AVX instructions implemented so far.
Julian Seward [Sun, 27 May 2012 08:26:49 +0000 (08:26 +0000)] 
Add tests for all AVX instructions implemented so far.

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

13 years agoFix false positive in sys_clone on amd64 when optional args are not given (e.g. child...
Philippe Waroquiers [Sat, 26 May 2012 23:08:41 +0000 (23:08 +0000)] 
Fix false positive in sys_clone on amd64 when optional args are not given (e.g. child_tidptr)

rev 10493 fixed bug 117564 in syswrap-x86-linux.c.
This commit fixes the same problem in syswrap-amd64-linux.c.
The problem makes memcheck/tests/linux/stack_switch fails (at least on gcc20)
with unexpected
   ==802== Syscall param clone(child_tidptr) contains uninitialised byte(s)
The problem originates from always checking 3 optional args PRE_read,
while these should be checked only if the corresponding flags are set.

syswrap-{arm,ppc32,ppc64}-linux.c seems to have the same problem
(but no visible effect) : VKI_CLONE_PARENT_SETTID,VKI_CLONE_CHILD_SETTID
and VKI_CLONE_SETTLS not properly handled in the PRE part.

syswrap-s390x-linux.c seems to have the VKI_CLONE_SETTLS part wrong,
but VKI_CLONE_PARENT_SETTID and VKI_CLONE_CHILD_SETTID correct.

Commiting a fix just for amd64 for now.
We probably better make some common code in syswrap-generic.c
to regroup all similar platforms.

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

13 years agoAdd missing gdbserver xml files for shadow registers for ppc32
Philippe Waroquiers [Fri, 25 May 2012 23:22:39 +0000 (23:22 +0000)] 
Add missing gdbserver xml files for shadow registers for ppc32

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

13 years agoas vgdb not activated by default on android, need to fix the example
Philippe Waroquiers [Fri, 25 May 2012 22:36:01 +0000 (22:36 +0000)] 
as vgdb not activated by default on android, need to fix the example

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

13 years agoUpdate.
Julian Seward [Fri, 25 May 2012 15:53:37 +0000 (15:53 +0000)] 
Update.

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

13 years agoUpdate.
Julian Seward [Fri, 25 May 2012 13:51:33 +0000 (13:51 +0000)] 
Update.

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

13 years agogdbserver: introduce support to show the AVX registers.
Philippe Waroquiers [Thu, 24 May 2012 21:33:17 +0000 (21:33 +0000)] 
gdbserver: introduce support to show the AVX registers.

This implies to change the interface between the
arch independent gdbserver files and the arch dependent files
as AVX implies a choice of xml files at run time.

In valgrind-low-amd64.c, the xml files and the nr of registers
are different depending on AVX support or not.

Other platforms still have a fully static nr of registers.

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

13 years agoUpdate.
Julian Seward [Thu, 24 May 2012 21:07:16 +0000 (21:07 +0000)] 
Update.

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

13 years agoPrepare for AVX support : restructure gdbsrv/target/valgrind-low/arch low
Philippe Waroquiers [Wed, 23 May 2012 21:50:36 +0000 (21:50 +0000)] 
Prepare for AVX support : restructure gdbsrv/target/valgrind-low/arch low

AVX support implies to have target xml files which are selected
according to the machine hwcaps.
This change improves the structure of the gdbserver software layering
to prepare for this.

Basically, the protocol files (e.g. server.c) are now calling directly
the valgrind target operations which are now defined in target.h/target.c
(before, there was a level of indirection inheritated from the GDB
structure which was useless for valgrind gdbserver).
+ clarified some comments

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

13 years agoadd some intial kvm ioctls (low hanging fruits). This gets rid of some valgrind
Christian Borntraeger [Wed, 23 May 2012 15:59:40 +0000 (15:59 +0000)] 
add some intial kvm ioctls (low hanging fruits). This gets rid of some valgrind
warnings regarding KVM ioctl without a length/direction specifier.

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

13 years agoUpdate.
Julian Seward [Wed, 23 May 2012 11:40:03 +0000 (11:40 +0000)] 
Update.

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

13 years agoUpdate.
Julian Seward [Tue, 22 May 2012 10:50:19 +0000 (10:50 +0000)] 
Update.

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

13 years agoAdd comments from Julian as to why mc_main.c and mc_replace_strmem.c
Florian Krohm [Tue, 22 May 2012 01:41:48 +0000 (01:41 +0000)] 
Add comments from Julian as to why mc_main.c and mc_replace_strmem.c
deserve special compilation treatment.

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

13 years agoFix fallout from recent AVX commit (guest_XMMn no longer exist;
Julian Seward [Mon, 21 May 2012 22:53:06 +0000 (22:53 +0000)] 
Fix fallout from recent AVX commit (guest_XMMn no longer exist;
use guest_YMMn instead)

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

13 years agoFix VALGRIND_MINOR/VALGRIND_MAJOR symbols. This got forgotten about
Julian Seward [Mon, 21 May 2012 21:57:05 +0000 (21:57 +0000)] 
Fix VALGRIND_MINOR/VALGRIND_MAJOR symbols.  This got forgotten about
in 3.7.0 (oops).

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

13 years agoAdd -fomit-frame-pointer for s390. The GCC maintainer was telling me that
Florian Krohm [Mon, 21 May 2012 16:18:23 +0000 (16:18 +0000)] 
Add -fomit-frame-pointer for s390. The GCC maintainer was telling me that
this has been the preferred way to compile for quite a while. So let's follow
suit. The perf bucket did not reveal any measurable difference.

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

13 years agoHandle 32-byte loads/stores, as created by recently added AVX support.
Julian Seward [Mon, 21 May 2012 13:44:54 +0000 (13:44 +0000)] 
Handle 32-byte loads/stores, as created by recently added AVX support.

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

13 years agoHandle increase in ppc64 guest state size resulting from r2331.
Julian Seward [Mon, 21 May 2012 11:01:35 +0000 (11:01 +0000)] 
Handle increase in ppc64 guest state size resulting from r2331.

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

13 years agoAdd initial support for Intel AVX instructions (Valgrind side).
Julian Seward [Mon, 21 May 2012 10:18:10 +0000 (10:18 +0000)] 
Add initial support for Intel AVX instructions (Valgrind side).
Tracker bug is #273475.

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

13 years agodefine AM_COND_IF if not yet defined (needed to build with automake 1.10)
Philippe Waroquiers [Fri, 18 May 2012 16:48:20 +0000 (16:48 +0000)] 
define AM_COND_IF if not yet defined (needed to build with automake 1.10)

Patch from Dave Goodell

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

13 years agoFix 274078 improved configure logic for mpicc
Philippe Waroquiers [Thu, 17 May 2012 15:32:54 +0000 (15:32 +0000)] 
Fix 274078  improved configure logic for mpicc

Patch from Dave Goodell.
See bug 274078 for detailed patch description.

Tested on deb6/amd64 with a static MPI (now it will be ignored
rather than make the Valgrind build failing), with a shared MPI,
and with no MPI.

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

13 years agoname_of_sched_event was missing some values and returning "??UNKNOWN??" instead.
Philippe Waroquiers [Thu, 17 May 2012 14:31:13 +0000 (14:31 +0000)] 
name_of_sched_event was missing some values and returning "??UNKNOWN??" instead.
* re-ordered the values to match the declaration order in
  libvex_trc_values.h and pub_core_dispatch_asm.h
* added missing values

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

13 years agoNEWS entry for revision 12564 (bypass gcc 4.4/gcc 4.5 bug)
Philippe Waroquiers [Tue, 15 May 2012 21:16:28 +0000 (21:16 +0000)] 
NEWS entry for revision 12564 (bypass gcc 4.4/gcc 4.5 bug)

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

13 years agoBypass gcc 4.4/4.5 compilation bug by moving -fomit-frame-pointer to Makefile.all.am
Philippe Waroquiers [Tue, 15 May 2012 21:04:31 +0000 (21:04 +0000)] 
Bypass gcc 4.4/4.5 compilation bug by moving -fomit-frame-pointer to Makefile.all.am
gcc 4.4 and 4.5 has a bug which causes miscompilation of mc_main.c:
 args are not correctly given to VG_(am_munmap_valgrind).
This causes the secondary map entries to not be unmapped
(which can cause unlimited memory growth)
and/or causes the assert on VG_(am_munmap_valgrind) result to fail.

Removing the pragma optimize from mc_main.c and inserting it instead
in Makefile.all.am for x86 solves the gcc bug.

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

13 years agoAdd assertion that the munmap of the secmap succeeds.
Philippe Waroquiers [Sun, 13 May 2012 22:58:09 +0000 (22:58 +0000)] 
Add assertion that the munmap of the secmap succeeds.
It is suspected that there is a bug in the call to VG_(am_munmap_valgrind).

At first sight, it looks like a bug in gcc version 4.4.5 (Debian 4.4.5-8)
which seems to pass wrong arguments from mc_main.c to aspace mgr function.
Some tests are failing on gcc20 with this assert a.o.
  ./vg-in-place ./perf/bz2 x
gives an assert.
The bug does not happen if Valgrind is compiled with gcc 4.7.0.

On gcc20, the new tests failing with this assert are:
memcheck/tests/linux/lsframe1            (stderr)
memcheck/tests/linux/lsframe2            (stderr)
memcheck/tests/linux/stack_switch        (stderr)
memcheck/tests/origin5-bz2               (stdout)
memcheck/tests/vcpu_bz2                  (stdout)
memcheck/tests/vcpu_bz2                  (stderr)

The assert is committed so as to see other platforms
where this is failing.

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

13 years agoMove registration of mc_pre_reg_read to mc_post_clo_init.
Florian Krohm [Sat, 12 May 2012 18:06:35 +0000 (18:06 +0000)] 
Move registration of mc_pre_reg_read to mc_post_clo_init.
This fixes the regtest failure for memcheck/tests/clireq_nofill on s390x.

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

13 years agoAdd a few testcases that exercise the s390_calculate_icc helper.
Florian Krohm [Sat, 12 May 2012 00:05:14 +0000 (00:05 +0000)] 
Add a few testcases that exercise the s390_calculate_icc helper.

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

13 years agofix 299756 (for symmetry, --free-fill must be ignored for MEMPOOL_FREE and FREELIKE...
Philippe Waroquiers [Fri, 11 May 2012 22:10:39 +0000 (22:10 +0000)] 
fix 299756 (for symmetry, --free-fill must be ignored for MEMPOOL_FREE and FREELIKE client requests).

Test program from goodell@mcs.anl.gov

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

13 years agofix 219156 support static malloc or alternate malloc lib (e.g. tcmalloc) with new...
Philippe Waroquiers [Fri, 11 May 2012 19:33:46 +0000 (19:33 +0000)] 
fix 219156 support static malloc or alternate malloc lib (e.g. tcmalloc) with new option --soname-synonyms

* pub_tool_redir.h : define the prefix to be used for "soname synonym"
  place holder
* vg_replace_malloc.c : define synonym place holder for malloc related
  functions
* m_redir.c : when detecting a soname synonym place holder redir spec, search
  in clo_soname_synonyms if there is a synonym pattern.
  If yes, replace the soname pattern. If not, ignore the redir spec.
* various files: implement or document the new clo --soname-synonyms
* new test memcheck/tests/static_malloc.vgtest

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

13 years agoSupport DWARF version 4 DW_AT_high_pc constant form. #299053.
Julian Seward [Wed, 9 May 2012 23:09:05 +0000 (23:09 +0000)] 
Support DWARF version 4 DW_AT_high_pc constant form.  #299053.
(Mark Wielaard, mjw@redhat.com)

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

13 years agofix typo in README_DEVELOPERS
Philippe Waroquiers [Sun, 6 May 2012 21:29:59 +0000 (21:29 +0000)] 
fix typo in README_DEVELOPERS

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

13 years agoAvoid regtest failures on x86_64 and ppc64 when toolchains for the
Florian Krohm [Sun, 6 May 2012 03:51:00 +0000 (03:51 +0000)] 
Avoid regtest failures on x86_64 and ppc64 when toolchains for the
seconday platform (x86 and ppc32, respectively) is not available.
Add -DVGA_SEC_xxxxx and -DVGP_SEC_... to the GCC command line
indicating that a seconday platform is supported. Make arch_test.c
recognise those flags.
Fixes bugzilla #296983.

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

13 years agoRequire automake-1.10 for proper handling of include file dependencies
Florian Krohm [Sun, 6 May 2012 03:37:25 +0000 (03:37 +0000)] 
Require automake-1.10 for proper handling of include file dependencies
in .S files. Also included here is some cleanup, including a reversion
of r10378. Fixes bugzilla #197914.

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

13 years agoAvoid duplicate primary names when merging identical symbol table entries.
Philippe Waroquiers [Sat, 5 May 2012 22:18:24 +0000 (22:18 +0000)] 
Avoid duplicate primary names when merging identical symbol table entries.
--trace-redir=yes shows that there are duplicated redir entries e.g.
--32537--    TOPSPECS of soname NONE filename /home/philippe/valgrind/m_redir_trace/memcheck/vgpreload_memcheck-amd64-linux.so
--32537--      libc.so*                  strcasecmp_l                   R-> (2014.0) 0x04c28bf0
--32537--      libc.so*                  strcasecmp_l                   R-> (2014.0) 0x04c28bf0
--32537--      libc.so*                  __GI_strcasecmp_l              R-> (2014.0) 0x04c28b70
--32537--      libc.so*                  __GI_strcasecmp_l              R-> (2014.0) 0x04c28b70

These are caused by the merging of identical debug entries always
adding the two primary names, even if the entries are exactly the same.

This patch avoids duplicated names in debug info if the entry to merge
has only one name identical to the entry name to which we are merging.

This avoids the useless duplicated redir entries, and slightly decreases
the "dinfo" memory usage.

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

13 years agoFix svn:ignore on ppc test buckets
Florian Krohm [Sat, 5 May 2012 19:22:41 +0000 (19:22 +0000)] 
Fix svn:ignore on ppc test buckets

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

13 years agoImprove m_redir.c debug trace by adding filename.
Philippe Waroquiers [Thu, 3 May 2012 21:09:51 +0000 (21:09 +0000)] 
Improve m_redir.c debug trace by adding filename.
Many objects (shared or non shared) have no soname.
In such case, showing the filename clarifies where the
redir spec is coming from.

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