]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
10 years agoAdd test cases for AVX-1 conditional vector stores:
Julian Seward [Wed, 28 Jan 2015 11:49:46 +0000 (11:49 +0000)] 
Add test cases for AVX-1 conditional vector stores:
VMASKMOVP{D,S} xmm/ymm to memory.  Pertains to #335785.

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

10 years agoAdd test cases for VPMASKMOV{D,Q} xmm/ymm to memory.
Julian Seward [Wed, 28 Jan 2015 11:11:02 +0000 (11:11 +0000)] 
Add test cases for VPMASKMOV{D,Q} xmm/ymm to memory.

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

10 years agoHandle new value ILGop_Ident64 in enum type IRLoadGOp. This tracks
Julian Seward [Tue, 27 Jan 2015 23:10:19 +0000 (23:10 +0000)] 
Handle new value ILGop_Ident64 in enum type IRLoadGOp.  This tracks
vex r3074.

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

10 years agoRemove unused field from NSegment structure.
Florian Krohm [Tue, 27 Jan 2015 20:46:19 +0000 (20:46 +0000)] 
Remove unused field from NSegment structure.

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

10 years agoOS X 10.10: Fix incorrect check for presence of unsupported MACH_SEND_TRAILER in...
Rhys Kidd [Mon, 26 Jan 2015 09:00:51 +0000 (09:00 +0000)] 
OS X 10.10: Fix incorrect check for presence of unsupported MACH_SEND_TRAILER in mach_msg. Partial fix for BZ #343306.

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

10 years agoDarwin14.supp should include suppression for known deliberate memory leak in setenv...
Rhys Kidd [Mon, 26 Jan 2015 03:44:07 +0000 (03:44 +0000)] 
Darwin14.supp should include suppression for known deliberate memory leak in setenv(). Per BZ #343303.

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

10 years agoPartial fix for bz339745. Mac OS: Further progress worker queue thread support. Addit...
Rhys Kidd [Mon, 26 Jan 2015 03:27:01 +0000 (03:27 +0000)] 
Partial fix for bz339745. Mac OS: Further progress worker queue thread support. Additional magic constants have been checked against OS X 10.9 and 10.10

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

10 years agoFollowup to r14886. So it turned out that in m_addrinfo we were already
Florian Krohm [Sat, 24 Jan 2015 18:26:05 +0000 (18:26 +0000)] 
Followup to r14886. So it turned out that in m_addrinfo we were already
strduping the filename which I failed to spot. Thanks to Philippe for
pointing that out.

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

10 years agoVG_(am_get_filename) returns a pointer to memory that belongs to the
Florian Krohm [Sat, 24 Jan 2015 00:02:19 +0000 (00:02 +0000)] 
VG_(am_get_filename) returns a pointer to memory that belongs to the
address space manager. Callers should neither modify the string nor
free it (as the string resides is statically allocated memory). That
calls for a   const HChar *
The type change exposed two bugs. One in m_addrinfo.c and one in
m_debuginfo.c. In both cases the returned string could possibly be freed later
on. So we need to strdup it first. Now fixed.

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

10 years agoMove comments next to the function prototypes they describe.
Florian Krohm [Fri, 23 Jan 2015 19:55:31 +0000 (19:55 +0000)] 
Move comments next to the function prototypes they describe.
No functional change.

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

10 years agoAdd function attributes.
Florian Krohm [Fri, 23 Jan 2015 16:53:06 +0000 (16:53 +0000)] 
Add function attributes.

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

10 years agoWrite proper wrappers for ioctls ION_IOC_ALLOC, ION_IOC_MAP and
Julian Seward [Fri, 23 Jan 2015 12:00:25 +0000 (12:00 +0000)] 
Write proper wrappers for ioctls ION_IOC_ALLOC, ION_IOC_MAP and
ION_IOC_IMPORT, and add a wrapper for SYNC_IOC_MERGE.

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

10 years agoMinor tweaks:
Florian Krohm [Tue, 20 Jan 2015 19:02:05 +0000 (19:02 +0000)] 
Minor tweaks:
- update a few boundary checks
- eliminate a loop
- remove a redundant assert

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

10 years agoAdd even more built-in functions for ICC.
Florian Krohm [Tue, 20 Jan 2015 18:46:13 +0000 (18:46 +0000)] 
Add even more built-in functions for ICC.
Patch by Gregory Czajkowski <gregczajkowski@yahoo.com>
Part of fixing BZ #339542.

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

10 years agoInitial trawl through bugs from 22 Nov 2014 to 20 Jan 2015.
Julian Seward [Tue, 20 Jan 2015 01:24:39 +0000 (01:24 +0000)] 
Initial trawl through bugs from 22 Nov 2014 to 20 Jan 2015.

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

10 years agoImport the list of bugs fixed in 3.10.1 (apparently never copied
Julian Seward [Tue, 20 Jan 2015 00:47:21 +0000 (00:47 +0000)] 
Import the list of bugs fixed in 3.10.1 (apparently never copied
into the trunk's NEWS file) and remove duplicates.

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

10 years agoPull in bugs opened after 22 Nov 2014.
Julian Seward [Tue, 20 Jan 2015 00:24:51 +0000 (00:24 +0000)] 
Pull in bugs opened after 22 Nov 2014.

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

10 years agoAdd some parentheses to keep gcc 5 (prerelease) from complaining.
Julian Seward [Tue, 20 Jan 2015 00:12:18 +0000 (00:12 +0000)] 
Add some parentheses to keep gcc 5 (prerelease) from complaining.
No functional change.

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

10 years agoHandle the memfd_create system call.
Tom Hughes [Mon, 19 Jan 2015 21:52:44 +0000 (21:52 +0000)] 
Handle the memfd_create system call.

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

10 years agoAdd more built-in functions for ICC.
Florian Krohm [Thu, 15 Jan 2015 15:54:40 +0000 (15:54 +0000)] 
Add more built-in functions for ICC.
Patch by Gregory Czajkowski <gregczajkowski@yahoo.com>
Part of fixing BZ #339542.

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

10 years agoRetroactive NEWS update for r14859, r14860 and r14861
Rhys Kidd [Wed, 14 Jan 2015 13:03:51 +0000 (13:03 +0000)] 
Retroactive NEWS update for r14859, r14860 and r14861

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

10 years agoExport VG_(discard_tranalsations_safely) to the tools. It is
Florian Krohm [Tue, 13 Jan 2015 17:33:59 +0000 (17:33 +0000)] 
Export VG_(discard_tranalsations_safely) to the tools. It is
only allowed to be called in certain contexts which is
enforced at runtime.
Change callgrind accordingly.
New header file pub_tool_transtab.h added.

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

10 years agoBZ #342795 Internal glibc __GI_mempcpy call should be intercepted.
Mark Wielaard [Tue, 13 Jan 2015 16:10:20 +0000 (16:10 +0000)] 
BZ #342795 Internal glibc __GI_mempcpy call should be intercepted.

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

10 years agoAdd to svn ignore auxprogs/getoff-*-darwin files created on OS X. The equivalent...
Rhys Kidd [Mon, 12 Jan 2015 13:29:29 +0000 (13:29 +0000)] 
Add to svn ignore auxprogs/getoff-*-darwin files created on OS X. The equivalent files are ignored from other architectures in this folder. Simple change, no-BZ.

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

10 years agoAdd to svn ignore gdbserver_tests/*.dSYM intermediate files created on OS X. These...
Rhys Kidd [Sun, 11 Jan 2015 07:04:20 +0000 (07:04 +0000)] 
Add to svn ignore gdbserver_tests/*.dSYM intermediate files created on OS X. These files are ignored in all other sub folders where created. Simple change, no-BZ.

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

10 years agoTrack VEX r3063 (function prototype change).
Florian Krohm [Sat, 10 Jan 2015 16:11:30 +0000 (16:11 +0000)] 
Track VEX r3063 (function prototype change).

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

10 years agoRemove superfluous function call.
Florian Krohm [Sat, 10 Jan 2015 15:25:54 +0000 (15:25 +0000)] 
Remove superfluous function call.

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

10 years agoRe-enable building of manythreads and thread-exits tests. Patch and discussion per...
Rhys Kidd [Fri, 9 Jan 2015 15:56:36 +0000 (15:56 +0000)] 
Re-enable building of manythreads and thread-exits tests. Patch and discussion per BZ #341613.

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

10 years agoDarwin13.supp should include suppression for known uninitialised read in pthread_rwlo...
Rhys Kidd [Fri, 9 Jan 2015 15:41:15 +0000 (15:41 +0000)] 
Darwin13.supp should include suppression for known uninitialised read in pthread_rwlock_init() as required to pass the memcheck/tests/darwin/pth-supp test. Patch and discussion per BZ #339780.

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

10 years agoDarwin13.supp should include suppression for known deliberate memory leak in setenv...
Rhys Kidd [Fri, 9 Jan 2015 15:32:07 +0000 (15:32 +0000)] 
Darwin13.supp should include suppression for known deliberate memory leak in setenv(). Patch and discussion per BZ #339755.

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

10 years agoComment only changes.
Florian Krohm [Thu, 8 Jan 2015 21:05:03 +0000 (21:05 +0000)] 
Comment only changes.

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

10 years agoAdd VG_(gettimeofday) such that callgrind can use it without
Florian Krohm [Thu, 8 Jan 2015 14:43:29 +0000 (14:43 +0000)] 
Add VG_(gettimeofday) such that callgrind can use it without
a bloody hack.

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

10 years agoCallgrind: fix BB discarding
Josef Weidendorfer [Thu, 8 Jan 2015 14:15:18 +0000 (14:15 +0000)] 
Callgrind: fix BB discarding

When the info struct for a BB is created, we use the first guest
instruction address as key to insert the info into a hash table.
We should do the same when discarding.

This actually is not a real problem, as Callgrind obviously
is used very rarely with redirections. But we should be consistent
with cachegrind.

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

10 years agoWhen creating a log-file (xml or otherwise) give everybody
Florian Krohm [Wed, 7 Jan 2015 14:47:15 +0000 (14:47 +0000)] 
When creating a log-file (xml or otherwise) give everybody
read permission. Previously, only user could read which was
incovenient for some typical workflows.
Suggested in BZ #339542.

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

10 years agoAdd command line option --max-connect=INT to allow the user to provide
Florian Krohm [Wed, 7 Jan 2015 14:42:11 +0000 (14:42 +0000)] 
Add command line option --max-connect=INT to allow the user to provide
an upper bound for the number of connected processes.
Part of fixing BZ #337869.

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

10 years agoFix a typo.
Florian Krohm [Tue, 6 Jan 2015 17:07:09 +0000 (17:07 +0000)] 
Fix a typo.

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

10 years agoSmall doc improvement: make more clear that --show-leak-kinds and --errors-for-leak...
Philippe Waroquiers [Mon, 5 Jan 2015 17:00:54 +0000 (17:00 +0000)] 
Small doc improvement:  make more clear that --show-leak-kinds and --errors-for-leak-kinds
have an effect only for a full leak search.

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

10 years agoFix compiler detection for ICC.
Florian Krohm [Mon, 5 Jan 2015 14:28:46 +0000 (14:28 +0000)] 
Fix compiler detection for ICC.
Patch by Gregory Czajkowski (gregczajkowski@yahoo.com).
Part of fixing BZ #339542.

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

10 years agoAvoid warning on Addr sp, unused on some platforms (e.g. ppc32)
Philippe Waroquiers [Mon, 5 Jan 2015 13:31:07 +0000 (13:31 +0000)] 
Avoid warning on Addr sp, unused on some platforms (e.g. ppc32)

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

10 years agoFix Makefile.am so it works for builds configured with
Florian Krohm [Sun, 4 Jan 2015 22:55:45 +0000 (22:55 +0000)] 
Fix Makefile.am so it works for builds configured with
--enable-only32bit.

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

10 years agoFix a compiler warning about an incompatible format.
Florian Krohm [Sun, 4 Jan 2015 22:47:32 +0000 (22:47 +0000)] 
Fix a compiler warning about an incompatible format.
Shows up on 32-bit builds only.

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

10 years ago* Remove useless typedef and uses of Addr32 and Addr64, just use Addr
Philippe Waroquiers [Sun, 4 Jan 2015 20:33:50 +0000 (20:33 +0000)] 
* Remove useless typedef and uses of Addr32 and Addr64, just use Addr
* uses correct filename in "dying here #ifdef"
* small reformat

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

10 years agoChange most remaining use of Addr64 in coregrind and the tools to Addr.
Florian Krohm [Sun, 4 Jan 2015 17:20:45 +0000 (17:20 +0000)] 
Change most remaining use of Addr64 in coregrind and the tools to Addr.
Tracking VEX r3056.

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

10 years agoTyEnt::TyStOrUn::fieldRs is never NULL as VG_(newXA) always returns
Florian Krohm [Sun, 4 Jan 2015 11:30:11 +0000 (11:30 +0000)] 
TyEnt::TyStOrUn::fieldRs is never NULL as VG_(newXA) always returns
something != NULL. Testing fieldRs for NULL-ness was confusing static
analysis. It usually takes such tests as evidence that the pointer
can in fact be NULL and may report false positives as a consequence.

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

10 years agoTrack the IMark changes in VEX r3055.
Florian Krohm [Fri, 2 Jan 2015 17:32:40 +0000 (17:32 +0000)] 
Track the IMark changes in VEX r3055.

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

10 years agoTrack VEX r3052 (VexTranslateArgs::guest_bytes_addr is an Addr value).
Florian Krohm [Fri, 2 Jan 2015 11:45:57 +0000 (11:45 +0000)] 
Track VEX r3052 (VexTranslateArgs::guest_bytes_addr is an Addr value).
There is more to tidy up here -- but that's for anoher day.

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

10 years agoRemove -Wcast-qual as it is already being added by Makefile.all.am
Florian Krohm [Thu, 1 Jan 2015 18:47:56 +0000 (18:47 +0000)] 
Remove -Wcast-qual as it is already being added by Makefile.all.am

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

10 years agoAdd -std=gnu99 to the list of compile flags.
Florian Krohm [Thu, 1 Jan 2015 18:26:05 +0000 (18:26 +0000)] 
Add -std=gnu99 to the list of compile flags.
Remove -Wno-long-long as it is no longer needed. long long is part
of C99.

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

10 years agoThe definition of type Addr has moved to VEX and
Florian Krohm [Wed, 31 Dec 2014 12:11:15 +0000 (12:11 +0000)] 
The definition of type Addr has moved to VEX and
the resteer callback has changed (VEX r3050). Track those changes.

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

10 years agoImport offsetof and vg_alignof from VEX (tracking VEX r3049).
Florian Krohm [Mon, 29 Dec 2014 22:19:24 +0000 (22:19 +0000)] 
Import offsetof and vg_alignof from VEX (tracking VEX r3049).

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

10 years agoAdd a command line option to allow the user to provide an upper bound
Florian Krohm [Mon, 29 Dec 2014 22:07:35 +0000 (22:07 +0000)] 
Add a command line option to allow the user to provide an upper bound
for the number of connected processes. This is still lame but better
than asking her to recompile.
Part of fixing BZ #337869.

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

10 years agoChange a logging function to use SizeT (tracking VEX r3047).
Florian Krohm [Mon, 29 Dec 2014 20:23:11 +0000 (20:23 +0000)] 
Change a logging function to use SizeT (tracking VEX r3047).

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

10 years agoMove definition of type SizeT to VEX (see VEX r3046).
Florian Krohm [Mon, 29 Dec 2014 19:06:40 +0000 (19:06 +0000)] 
Move definition of type SizeT to VEX (see VEX r3046).
Enhance printeffery to print SizeT values.

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

10 years agoFix 342221 - socket connect produce false positive saying access to uninitialized...
Philippe Waroquiers [Mon, 29 Dec 2014 18:24:37 +0000 (18:24 +0000)] 
Fix 342221 - socket connect produce false positive saying access to uninitialized memory area

As we check what follows af_family, the length to check must be decreased
by sizeof(af_maily)

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

10 years agoRemove the type AddrH. The code assumes in many places that the host
Florian Krohm [Mon, 29 Dec 2014 17:04:46 +0000 (17:04 +0000)] 
Remove the type AddrH. The code assumes in many places that the host
and guest architecture are the same. So the type is really pointless
nowadays.

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

10 years agoFix 341539 VG_(describe_addr) should not describe address as belonging to client
Philippe Waroquiers [Sun, 28 Dec 2014 17:30:22 +0000 (17:30 +0000)] 
Fix 341539 VG_(describe_addr) should not describe address as belonging to client
        segment if it is past the heap end

Describes specifically an address that is in the brk data segment
or in the 'reduced' (after brk reduction) section of the brk data segment.

Based on a patch from Ivo Raisr.

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

10 years agoAvoid spurious warnings about white space following a backslash
Florian Krohm [Sun, 28 Dec 2014 16:46:14 +0000 (16:46 +0000)] 
Avoid spurious warnings about white space following a backslash
in a line splice.

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

10 years agoFix a few casts. A void * cannot be used to initialise a function pointer.
Florian Krohm [Wed, 24 Dec 2014 11:11:42 +0000 (11:11 +0000)] 
Fix a few casts. A void * cannot be used to initialise a function pointer.

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

10 years agoElimnate two magic constants.
Florian Krohm [Tue, 23 Dec 2014 11:05:21 +0000 (11:05 +0000)] 
Elimnate two magic constants.

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

10 years agoFix a typo, introduced when fixing a typo.
Philippe Waroquiers [Sun, 21 Dec 2014 17:53:42 +0000 (17:53 +0000)] 
Fix a typo, introduced when fixing a typo.

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

10 years agoFix typo
Philippe Waroquiers [Sun, 21 Dec 2014 17:46:11 +0000 (17:46 +0000)] 
Fix typo

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

10 years agoFollow up to rev 14823: make errors when reporting command line non critical
Philippe Waroquiers [Sun, 21 Dec 2014 17:31:54 +0000 (17:31 +0000)] 
Follow up to rev 14823: make errors when reporting command line non critical
(as e.g. cmdline reporting is not available on MacOS)

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

10 years ago342063 wrong format specifier for test mcblocklistsearch in gdbserver_tests
Philippe Waroquiers [Sun, 21 Dec 2014 17:02:38 +0000 (17:02 +0000)] 
342063  wrong format specifier for test mcblocklistsearch in gdbserver_tests
Patch from Ivo Raisr.

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

10 years agoBuffer audit. Resize some.
Florian Krohm [Sat, 20 Dec 2014 16:52:08 +0000 (16:52 +0000)] 
Buffer audit. Resize some.

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

10 years agoBuffer audit. Resize a few.
Florian Krohm [Fri, 19 Dec 2014 20:29:22 +0000 (20:29 +0000)] 
Buffer audit. Resize a few.

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

10 years agoFix a buffer overflow (in case read had returned 1000).
Florian Krohm [Fri, 19 Dec 2014 20:25:46 +0000 (20:25 +0000)] 
Fix a buffer overflow (in case read had returned 1000).
Write out the whole command line.

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

10 years agoThis commit fixes a redundant #if defined line. The define
Carl Love [Wed, 17 Dec 2014 21:41:58 +0000 (21:41 +0000)] 
This commit fixes a redundant #if defined line.  The define
VG_PLAT_USES_PPCTOC is only true for PPC64 big endian, do not
need to quailify the #if statement condition of VG_PLAT_USES_PPCTOC
with !VGP_ppc64le_linux.

There is no associated bugzilla.  The fix is in response to an
email message.

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

10 years agoFix 341789 - aarch64: shmat fails with valgrind on ARMv8
Philippe Waroquiers [Wed, 17 Dec 2014 20:39:55 +0000 (20:39 +0000)] 
Fix 341789 - aarch64: shmat fails with valgrind on ARMv8
arm64, like amd64, must not use VKI_IPC_64, even
if this symbol is defined.
This makes the shmctl fail, which results in a zero size returned,
which means that the succesful shmat is not reported to the aspacemgr.

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

10 years agoRemove two fixed-size buffers in the dwarf readers.
Florian Krohm [Wed, 17 Dec 2014 19:52:25 +0000 (19:52 +0000)] 
Remove two fixed-size buffers in the dwarf readers.

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

10 years agoJoin two #ifdefs, eliminating one.
Florian Krohm [Wed, 17 Dec 2014 13:18:51 +0000 (13:18 +0000)] 
Join two #ifdefs, eliminating one.

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

10 years agoFor s390 use symbolic register names.
Florian Krohm [Wed, 17 Dec 2014 11:52:39 +0000 (11:52 +0000)] 
For s390 use symbolic register names.

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

10 years agoAvoid compiler warnings on s390x.
Florian Krohm [Wed, 17 Dec 2014 11:35:10 +0000 (11:35 +0000)] 
Avoid compiler warnings on s390x.

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

10 years agoComment change. Function vg_panic does not exist.
Florian Krohm [Wed, 17 Dec 2014 11:01:40 +0000 (11:01 +0000)] 
Comment change. Function vg_panic does not exist.

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

10 years agoFix 197259 Unsupported arch_prtctl PR_SET_GS option
Philippe Waroquiers [Wed, 17 Dec 2014 00:00:11 +0000 (00:00 +0000)] 
Fix 197259  Unsupported arch_prtctl PR_SET_GS option
(valgrind side).
In summary: we were counting somewhat on the luck for FS,
we now similarly count on luch for GS
See VEX commit log r3043 for more details.

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

10 years agoSimplify the VG_(get_filename_linenum) interface by removing
Florian Krohm [Tue, 16 Dec 2014 20:55:58 +0000 (20:55 +0000)] 
Simplify the VG_(get_filename_linenum) interface by removing
the dirname_available parameter. It's redundant. The value
of the returned directory name can be tested instead.

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

10 years agoAdd a clarifying comment.
Florian Krohm [Tue, 16 Dec 2014 12:04:03 +0000 (12:04 +0000)] 
Add a clarifying comment.

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

10 years agoRemove duplicate command line option.
Florian Krohm [Tue, 16 Dec 2014 08:12:02 +0000 (08:12 +0000)] 
Remove duplicate command line option.

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

10 years agoUpdate tracking the file removal in VEX r3042.
Florian Krohm [Mon, 15 Dec 2014 21:56:00 +0000 (21:56 +0000)] 
Update tracking the file removal in VEX r3042.

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

10 years agoRemove callgrind's percentify and commify functions as well as the
Florian Krohm [Sun, 14 Dec 2014 15:39:57 +0000 (15:39 +0000)] 
Remove callgrind's percentify and commify functions as well as the
assorted buffers that go with them.
Part of fixing BZ #337869.

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

10 years agoEnhance the "Author" section of the manpage as suggested
Florian Krohm [Sat, 13 Dec 2014 18:55:35 +0000 (18:55 +0000)] 
Enhance the "Author" section of the manpage as suggested
in BZ #226609.

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

10 years agoFix BZ #116002.
Florian Krohm [Sat, 13 Dec 2014 18:35:00 +0000 (18:35 +0000)] 
Fix BZ #116002.
Left justification of strings in myvprintf_str was mixed up.
Now fixed and %s formats changed accordingly.
In function myvprintf_int64: the local buffer was not large
enough to hold ULONG_MAX in binary notation. Numbers were
truncated at 39 digits.
Testcases added.

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

10 years agoreach_thread_register cannot be compiled on Mac OS as Mac OS
Philippe Waroquiers [Sat, 13 Dec 2014 16:36:12 +0000 (16:36 +0000)] 
reach_thread_register cannot be compiled on Mac OS as Mac OS
had no pthread barrier.
(the Makefile.am protects this with a if HAVE_PTHREAD_BARRIER)
But the test should then be protected with a prereq that the
executable exists.
(analysis and fix suggestion by rhyskidd, part of fixing 341613)

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

10 years agoAdd limited support for printing floating point numbers to
Florian Krohm [Fri, 12 Dec 2014 19:32:10 +0000 (19:32 +0000)] 
Add limited support for printing floating point numbers to
VG_(debugLog_vprintf).
Remove function VG_(percentify) and fix up its call sites (part of
fixing BZ #337869.
Allow the width in a format specification to be '*', i.e. the width is
given as an additional function argument.

The limitations for printing floating point numbers are:
(1) %f is the only supported format. Width and precision can be
    specified.
(2) Funny numbers (NaN and such) are not supported.
(3) Floating point numbers need to be benign in the sense that their
    integral part fits into an ULong.
This is good enough for our purposes.

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

10 years agoUpdate detection of tool-chain support for MPX insns
Florian Krohm [Fri, 12 Dec 2014 17:44:36 +0000 (17:44 +0000)] 
Update detection of tool-chain support for MPX insns
to better work for older assemblers.
Pertains to BZ #339542.

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

10 years agoUpdate expected output for none/tests/darwin/access_extended.
Julian Seward [Tue, 9 Dec 2014 22:25:47 +0000 (22:25 +0000)] 
Update expected output for none/tests/darwin/access_extended.
Fixes #341615.  (Rhys Kidd, rhyskidd@gmail.com)

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

10 years agoDetect presence of sse3 instructions on x86.
Florian Krohm [Tue, 9 Dec 2014 20:08:46 +0000 (20:08 +0000)] 
Detect presence of sse3 instructions on x86.
Set VEX_HWCAPS_X86_SSE3 accordingly.
This came about by grepping the source for VEX_HWCAPS_X86_SSE3
and observing that the flag was tested for (in VEX) but not set.

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

10 years agoAnnounce, that the long displacement facility is noq required for s390x.
Florian Krohm [Mon, 8 Dec 2014 14:03:00 +0000 (14:03 +0000)] 
Announce, that the long displacement facility is noq required for s390x.
Update minimum machine model. See also VEX r3034.

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

10 years agoRemove fixed size arrays in the dwarf-3 parser.
Florian Krohm [Sun, 7 Dec 2014 18:58:59 +0000 (18:58 +0000)] 
Remove fixed size arrays in the dwarf-3 parser.
Use proper initialisation functions for the type and variable parser.
Add functions to release the dynamically allocated functions.
No longer maintain content of popped-off stack entries as that is
essentially freed memory and complicates matters unnecessarily.
Part of fixing BZ #337869.

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

11 years agoEliminate fixed size buffer 'the_CIEs' and allocate it dynamically.
Florian Krohm [Sat, 6 Dec 2014 21:58:50 +0000 (21:58 +0000)] 
Eliminate fixed size buffer 'the_CIEs' and allocate it dynamically.
Part of fixing BZ #337869.

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

11 years agoUpdate test result following VEX r3029.
Florian Krohm [Fri, 5 Dec 2014 18:29:38 +0000 (18:29 +0000)] 
Update test result following VEX r3029.

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

11 years agoAdd -Wformat -Wformat-security to the list of compile flags.
Florian Krohm [Wed, 3 Dec 2014 22:53:00 +0000 (22:53 +0000)] 
Add -Wformat -Wformat-security to the list of compile flags.
This was not as straight forward as expected. Specifically, adding the
new flag to CFLAGS in configure.ac did not work and was causing
compiler warnings. For instance, compiling memcheck/tests/execve2.c will
generate a -Wnonnull warning even though the testcase is explicitly
compiled with -Wno-nonnull. The reason is that (a) -Wformat is implied by
-Wnonnull and (b) the list of compiler flags gets assembled in the wrong
order. The culprit appears to be that we modify CFLAGS in configure.ac and
that really is not the right place. Conceptually, configure should determine
tool-chain capabilities and not assemble compiler flags. That should be done
in Makefiles. This patch entangles all this.

So, whatever was added to CFLAGS in configure.ac has now been moved to
Makefile.all.am and Makefile.tool-tests.am. Those are:
-Wno-long-long
-Wwrite-strings
-Wcast-qual
-fno-stack-protector
Note, that this change allows us to simplify Makefile.tool-tests.am which
in the past was disabling some of those flags (e.g. by adding -Wno-cast-qual
again).
In case of the clang compiler, extra command line options are needed. I've
moved those into a separate 'if COMPILER_IS_CLANG' section and not merge
them into baseline flags.

Related to BZ 334727.

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

11 years agoAdd script. Comes in handy when messing with the build system
Florian Krohm [Wed, 3 Dec 2014 22:48:29 +0000 (22:48 +0000)] 
Add script. Comes in handy when messing with the build system
to make sure no compiler flags get lost (as they did at some
point in the past).

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

11 years agoFix a few VG_(message) invocations. The function does not add a
Florian Krohm [Sat, 29 Nov 2014 17:50:10 +0000 (17:50 +0000)] 
Fix a few VG_(message) invocations. The function does not add a
newline character under the covers.

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

11 years agoFix BZ 334802. Patch by Mark Wielaard with a few mods to make it apply.
Florian Krohm [Sat, 29 Nov 2014 14:41:32 +0000 (14:41 +0000)] 
Fix BZ 334802. Patch by Mark Wielaard with a few mods to make it apply.
r14794 is related as well.
Also: remove -Wno-format-zero-length from compile options.

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

11 years agoFix up the error processing in VG_(expand_file_name). E.g. giving
Florian Krohm [Sat, 29 Nov 2014 13:31:18 +0000 (13:31 +0000)] 
Fix up the error processing in VG_(expand_file_name). E.g. giving
--log-file=  on the command line results in the following error:

valgrind: --log-file: filename is emptyBad option: --log-file=
...

Relatedly, fix the 1st argument to VG_(expand_file_name) in coredump-elf.c.
This should not contain additional verbiage as it is assumed to be an option
name which us used to construct an error message containing
option_name=file_name

As an aside, this logic in coredump-elf.c seems odd:
If VG_(clo_log_fname_expanded) is not NULL, then it has already been
expanded in main_process_cmd_line_options. Expanding it again would only
make a difference, if the original logfile name contained an environment
variable whose value contained %q{whatever} thereby referring to a yet
another environment variable. That seems strange.
But I'm not touching it.

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

11 years agoAdd an early-clobber constraint. Otherwise, it will segfault when compiled
Florian Krohm [Fri, 28 Nov 2014 12:42:39 +0000 (12:42 +0000)] 
Add an early-clobber constraint. Otherwise, it will segfault when compiled
with gcc 4.9.2

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

11 years agomips64: add test cases for Cavium BBIT032 and BBIT132
Petar Jovanovic [Wed, 26 Nov 2014 23:50:31 +0000 (23:50 +0000)] 
mips64: add test cases for Cavium BBIT032 and BBIT132

This is a follow up to VEX r3028. This change adds two test cases
for Cavium instructions BBIT032 and BBIT132.

Issue tracked in BZ #339288.

Patch by Maran Pakkirisamy.

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

11 years agoBug 341238. Recognize GCC5/DWARFv5 DW_LANG constants Go, C11, C++11, C++14.
Mark Wielaard [Wed, 26 Nov 2014 15:43:14 +0000 (15:43 +0000)] 
Bug 341238. Recognize GCC5/DWARFv5 DW_LANG constants Go, C11, C++11, C++14.

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

11 years agodrd: Add a consistency check
Bart Van Assche [Wed, 26 Nov 2014 12:47:19 +0000 (12:47 +0000)] 
drd: Add a consistency check

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

11 years agoAdd a file tracking the 3.10.x merge status.
Julian Seward [Tue, 25 Nov 2014 23:19:24 +0000 (23:19 +0000)] 
Add a file tracking the 3.10.x merge status.

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