Commit Graph

9607 Commits

Author SHA1 Message Date
Florian Krohm
07b6da4bbb Fix EXTRA_DIST. Add dummy .exp file to satisfy the consistency checker
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12904
2012-08-28 00:38:47 +00:00
Florian Krohm
16690f1ef5 s390: Add testcase for the ecag insn. Based on patch by
Divya Vyas (divyvyas@linux.vnet.ibm.com). Update opcode list.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12903
2012-08-26 19:05:06 +00:00
Florian Krohm
7bea862277 On s390: detect presence of stckf hardware facility.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12902
2012-08-26 04:23:08 +00:00
Florian Krohm
3df84e338f Add sem_wait to list of ignored files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12901
2012-08-26 03:24:01 +00:00
Florian Krohm
cd528bd768 Followup patch to r12899, purely mechanical. Rename:
VexEmWarn -> VexEmNote
EmWarn_NUMBER -> EmNote_NUMBER
guest_EMWARN -> guest_EMNOTE
LibVEX_EmWarn_string -> LibVEX_EmNote_string
offB_EMWARN -> offB_EMNOTE
EmWarn_NONE -> EmNote_NONE
See also VEX r2484


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12900
2012-08-26 03:22:09 +00:00
Florian Krohm
adec49e497 Rename libvex_emwarn.h to libvex_emnote.h. See also VEX r2483.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12899
2012-08-25 21:48:22 +00:00
Bart Van Assche
342cac3d59 drd: Correct semaphore tracing in case sem_*wait() did not wait. See also #305690.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12898
2012-08-25 07:25:00 +00:00
Bart Van Assche
023e92dc22 drd: Handle non-zero sem_*wait() return values correctly. Fixes #305690.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12897
2012-08-24 17:59:03 +00:00
Bart Van Assche
04a00aa879 drd/tests: Add test program that makes sem_trywait() return a non-zero value
(provided by Graham Whitted <7wz69ejteg@snkmail.com> - see also #305690).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12896
2012-08-24 17:57:44 +00:00
Julian Seward
cff91df676 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12895
2012-08-24 16:53:02 +00:00
Julian Seward
e126de2d4d Change exp-sgcheck's memcpy implementation to be memmove-like (sigh)
since it appears that some part of the vast stack of libraries that
supports LibreOffice actually abuses it thusly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12894
2012-08-24 16:42:57 +00:00
Julian Seward
ec3a16088b Implement a wrapper for wcslen on Linux, assuming that
sizeof(wchar_t) == 4, which I believe to be true on both Linux
and MacOSX.  Fixes #298281.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12893
2012-08-24 14:44:27 +00:00
Julian Seward
91c005fe90 Fix skipping of block forms when this code is compiled by gcc 4.8 -- it
has always been incorrect, modifying 'p' twice between sequence points.
Fixes #305513.  (Mark Wielaard, mjw@redhat.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12892
2012-08-24 14:38:56 +00:00
Julian Seward
a75f51bbcb Fix up range checking in ML_(addLineInfo). Avoids assertion failure
reported in #304980.  Based on a patch by Jiri Hruska (jirka@fud.cz).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12891
2012-08-24 14:05:01 +00:00
Julian Seward
c0e616b65f Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12890
2012-08-24 00:06:17 +00:00
Julian Seward
b9d41417b1 Add tests for MOVBE in 32 bit mode. See 304867. (Ambroz Bizjak,
ambrop7@gmail.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12889
2012-08-23 23:42:46 +00:00
Julian Seward
213bf1ccbc Add test cases for QDADD and QDSUB. See #305199. (Mans Rullgard,
mans@mansr.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12888
2012-08-23 20:58:08 +00:00
Julian Seward
4eeee6aae4 Fix false positives in count_from_Status etc al. n-i-bz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12887
2012-08-23 19:25:12 +00:00
Florian Krohm
978fa74f3d Add verbiage about hardware facilities.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12886
2012-08-23 00:44:22 +00:00
Florian Krohm
ddd6ac7a7d Fix propagation of undefinedness for Iop_DPBtoBCD and Iop_BCDtoDPB.
Any undefined input bit will cause all output bits to be undefined.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12885
2012-08-22 18:09:07 +00:00
Florian Krohm
7f4d41c4b9 Handle the following IRops as they may get generated:
Iop_Mul8, Iop_Sar8, Iop_CmpwNEZ32, and Iop_8HLto16.
With this change mc_translate now handles all IR ops which are architecture
independent, except Iop_LeftXYZ and Iop_Max32U.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12884
2012-08-20 16:51:39 +00:00
Julian Seward
ed29b0b6a8 Fix POST(posix_spawn) on Darwin so it marks the returned pid as defined.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12883
2012-08-20 10:40:02 +00:00
Philippe Waroquiers
3abbddda09 fix 301281 valgrind hangs on OS X when the process calls system()
After looking more in depth, gdbserver must not be terminated
in PRE(posix_spawn) on MacOS: this is running in the parent and
(on MacOS) is a single syscall similar to a fork+exec.
On linux, posix_spawn is implemented using 2 syscalls
(fork followed by exec).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12882
2012-08-20 09:27:15 +00:00
Philippe Waroquiers
32fe40711e fix n-i-bz vgdb ptrace calls wrong on mips, causing blocked syscalls to fail
(patch from Petar Jovanovic).

The mips specific code of vgdb.c was storing the arguments
at wrong places in the ptrace setreg. This caused the blocked syscall(s)
to return with an error rather than to be properly restarted.
With this commit, the gdbsrv tests are not blocking anymore
with Valgrind mips32 running on mips64 GNU/Linux.
vgdb is believed to be functional, even if process is blocked in a syscall.

The following tests are still failing
gdbserver_tests/mcbreak                  (stdout)
gdbserver_tests/mcbreak                  (stdoutB)
gdbserver_tests/mcbreak                  (stderrB)
gdbserver_tests/mcsignopass              (stderr)
gdbserver_tests/mcsignopass              (stdoutB)
gdbserver_tests/mcsigpass                (stderr)
gdbserver_tests/mcsigpass                (stdoutB)
gdbserver_tests/nlcontrolc               (stdoutB)
gdbserver_tests/nlsigvgdb                (stderr)
gdbserver_tests/nlsigvgdb                (stderrB)

Of the above, nlsigvgdb failure is still strange.
Others looks like "normal" differences due e.g. to mips specific gdb
behaviour and/or none/tests/faultstatus (re-used in gdbsrv tests)
behaving differently on mips.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12881
2012-08-18 11:06:04 +00:00
Philippe Waroquiers
1a7c864141 Document in NEWS the fix committed in revision 12879.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12880
2012-08-18 10:02:32 +00:00
Philippe Waroquiers
6bae0a6e36 Fix 301281 valgrind hangs on OS X when the process calls system()
This should fix the bug (but could not test it : no MacOSX).
See equivalent code in syswrap-generic.c and comment
in pub_tool_gdbserver.h:
// tid == 0 indicates to stop gdbserver and report to gdb
// that the valgrind-ified process has exited.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12879
2012-08-18 09:50:27 +00:00
Julian Seward
e81fb2f3e4 On Darwin, use __NR_poll_nocancel rather than __NR_poll, as per the
comment at the top of the file.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12878
2012-08-18 06:45:07 +00:00
Florian Krohm
18a9544be9 Remove memcheck support for IR op Iop_I16StoF32 which is unused.
See also VEX r2471.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12877
2012-08-18 02:44:49 +00:00
Julian Seward
aeaf0db271 Update bug tracking status post release.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12876
2012-08-17 09:10:37 +00:00
Florian Krohm
5950ef3847 Update list of ignored files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12875
2012-08-16 23:59:27 +00:00
Philippe Waroquiers
0b5f81bfd3 Fix n-i-bz shmat of a segment > 4Gb does not work
Problem was created by get_shm_size returning an UInt rather
than a SizeT.

see http://sourceforge.net/mailarchive/message.php?msg_id=29682827



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12874
2012-08-16 19:40:52 +00:00
Philippe Waroquiers
63c4b7e167 Use -s USR1 instead of -10 to send SIGUSR1 signal
On mips32, 10 is SIGBUS. This was making all tests using
simulate_control_c looping for ever or a long time.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12873
2012-08-15 13:27:23 +00:00
Philippe Waroquiers
15493bb541 Implement --vex-iropt-register-updates=sp-at-mem-access
Option sp-at-mem-access can be used by tools which do not
need an up to date BP and IP at each mem access.
It is needed however to have SP up to date at each memory
access, as an up to date SP is needed to grow the stack in
m_signals.c

Tools massif, cachegrind and callgrind are using sp-at-mem-access
as default.
None tool could also use sp-at-mem-access but default is kept
to unwindregs-at-mem-access (similar to memcheck, drd, helgrind, exp-sgcheck).

exp-dhat, exp-bbv, lackey have not been looked at to see if they
could make use of sp-at-mem-access.

Validated on x86, amd64, ppc64 and s390x.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12872
2012-08-14 22:28:31 +00:00
Julian Seward
27257690fa Party on, dudes!
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12871
2012-08-09 15:51:55 +00:00
Julian Seward
01ac70be21 --> 3.8.0 final
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12866
2012-08-09 15:06:36 +00:00
Julian Seward
99606c64bf --> 3.8.0-TEST3
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12865
2012-08-08 23:35:35 +00:00
Julian Seward
e176db3591 Make the assembler-knows-POWER-DFP test a bit stricter, since it appears
some older assemblers know 'dadd' but not 'dcffix', which also appears
in the DFP tests.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12864
2012-08-08 22:22:26 +00:00
Julian Seward
ccc74aefd3 Move older news into its own file, NEWS.old, so as not to overrun TeX
default memory limits when building the PDF docs.  Fixes #304754.
(Mark Wielaard, mjw@redhat.com)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12863
2012-08-08 20:38:03 +00:00
Julian Seward
c95b63f309 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12862
2012-08-08 20:21:29 +00:00
Tom Hughes
1592db60c5 Add support for the tee and vmsplice system calls. BZ#304561.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12861
2012-08-08 08:03:44 +00:00
Christian Borntraeger
8ebc7597b2 wire up testcase
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12860
2012-08-08 07:54:47 +00:00
Christian Borntraeger
bae94d70af Add a testcase for floating point <-> signed conversion that
actually checks the condition code of the conversion instruction
(most programs dont do that)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12859
2012-08-08 07:50:10 +00:00
Julian Seward
32341bb18b --> 3.8.0-TEST1
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12858
2012-08-07 15:24:51 +00:00
Julian Seward
78bbf3a512 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12857
2012-08-07 14:54:32 +00:00
Julian Seward
95ce4a01e8 Fix some typos.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12856
2012-08-07 14:54:17 +00:00
Julian Seward
fae30e8323 Add a couple of useful examples to the --help text for
--soname-synonyms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12855
2012-08-07 14:46:34 +00:00
Florian Krohm
1f238b89bb Add prerequisites.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12854
2012-08-06 18:37:17 +00:00
Florian Krohm
5fd9d2ae08 Change script to also handle IBM's copyright notice.
Update copyright notices.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12853
2012-08-06 18:34:24 +00:00
Josef Weidendorfer
df260d8344 README_DEVELOPERS: Debugging a tool needs "--tool=..."
Otherwise the function redirections / client requests seem
to get confused. Symptoms are error messages such as
--3031-- VG_USERREQ__CLIENT_CALL1: func=0x0

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12852
2012-08-06 12:27:51 +00:00
Florian Krohm
f1d7df01e1 Add a testcase for the cu41 insn. Update opcode list, NEWS and bugstatus.
#289839 is finally fixed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12851
2012-08-06 00:10:53 +00:00