Commit Graph

189 Commits

Author SHA1 Message Date
Julian Seward
adc2dafee9 Update copyright dates, to include 2015. No functional change.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15577
2015-08-21 11:32:26 +00:00
Julian Seward
a2965b750c Remove extraneous "-x" which I suspect is debugging support that got
acidentally left in by r15291.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15521
2015-08-12 10:59:52 +00:00
Florian Krohm
40f17fdf7e Simplify the build script a lot by using the download_prerequisites
script and build prerequisites in tree. Suggested by Dimitry <dimhen@gmail.com>
Also add --disable-bootstrap and some verbiage as to how to speed
up the GCC build even further.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15509
2015-08-08 21:22:55 +00:00
Florian Krohm
296a862b5e Initial checkin
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15507
2015-08-08 14:07:07 +00:00
Rhys Kidd
4848781351 Fix clang/osx: ld: warning: -read_only_relocs cannot be used with x86_64
bz#349769


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15450
2015-07-25 05:50:10 +00:00
Julian Seward
ac60633d65 Bug 345248 - add support for Solaris OS in valgrind
Authors of this port:
    Petr Pavlu         setup@dagobah.cz
    Ivo Raisr          ivosh@ivosh.net
    Theo Schlossnagle  theo@omniti.com
            


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15426
2015-07-21 14:44:28 +00:00
Rhys Kidd
9351332329 Signal handler ucontext_t not filled out correctly on OS X
bz#341419

Before:

== 589 tests, 220 stderr failures, 15 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==

After:

== 591 tests, 220 stderr failures, 15 stdout failures, 0 stderrB failures, 0 stdoutB failures, 30 post failures ==


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15296
2015-05-28 12:49:00 +00:00
Florian Krohm
d655852d69 Remove dependency on bash. Fixes BZ #347978.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15291
2015-05-26 11:52:45 +00:00
Florian Krohm
6dce653240 Add support for building with -fsanitize=undefined.
- add configure option --enable-ubsan 
- add __ubsan helpers (by Julian)

This requires gcc 4.9.2 or later. Not all platforms are supported, though.
With this change and VEX r3099 regression tests pass on amd64
with a valgrind compiled with -fsanitize=undefined.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14995
2015-03-10 16:13:59 +00:00
Florian Krohm
8add9ace6c 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
2015-01-07 14:42:11 +00:00
Florian Krohm
d509d8aff0 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
2014-12-29 22:07:35 +00:00
Florian Krohm
d7811e3de7 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
2014-12-03 22:48:29 +00:00
Julian Seward
3f24896f10 Back out r14781, which was unintended.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14782
2014-11-25 11:43:54 +00:00
Julian Seward
bf927a2e32 arm64: implement "BRK #imm16".
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14781
2014-11-25 11:37:14 +00:00
Florian Krohm
d417ea90c2 Fix a few incorrect format strings. Spotted by the Coverity checker.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14433
2014-09-02 14:21:25 +00:00
Florian Krohm
6cf18881c5 The 4th parameter of lzo1x_decompress_safe has lzo_uint * type
which, despite the name, is a pointer to an unsigned long.
So we should be passing arguments of matching type.
Spotted by the Coverity checker.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14431
2014-09-02 12:05:15 +00:00
Florian Krohm
8a8cc67ca0 Remove some unneeded checks. These were spotted by the Coverity checker.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14430
2014-09-02 11:58:10 +00:00
Philippe Waroquiers
d73c4e2a34 Add comments in getoff.c to clarify its intended usage.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14299
2014-08-17 13:33:57 +00:00
Julian Seward
1fcc17e9a9 Fix build problems on MacOSX pertaining to r14283.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14298
2014-08-17 12:23:56 +00:00
Philippe Waroquiers
d08707f577 * Unbreak build on macos (and on other platforms) that do not have
HAVE_DLINFO_RTLD_DI_TLS_MODID.
* add the copyright notice in auxprogs/getoff.c
* add more prereq to hgtls.vgtest



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14297
2014-08-16 21:00:15 +00:00
Philippe Waroquiers
bc353dfe97 fix 338160: Implement QGetTlsAddr query so that GDB+V gdbsrv can print __thread variables.
To implement QGetTlsAddr, gdbsrv has to know how to get the glibc dtv
address and the module id from the link_map.
These 2 things are dependent on the internals of glibc.
The dependency is mostly isolated in a few lines of arch dependent
code or in an external utility that used a hack + -ldl lib to find
the offset of the modid in the link_map structure.

Tested on x86/amd64/ppc64/s390x. Somewhat tested on ppc32 and arm64.
Untested/a few #ifdef-ed lines not compiled on arm/mips32/mips64
and darwin.

For more background info about thread local storage handling, see
'ELF Handling For Thread-Local Storage' http://www.akkadia.org/drepper/tls.pdf

Changes:
* auxprogs/getoff.c new auxilliary program to get platform specific offsets
  (currently only the offset for the module id in struct link_map).
* configure.ac : check for dlinfo(RTLD_DI_TLS_MODID) needed for getoff.c
* new gdbserver_tests/hgtls, testing various types of __thread variables
* various m_gdbserver files:
  - implement decoding of the QGetTlsAddr query
  - for each platform: platform specific code to get the dtv
  - call to external program getoff-<platform> the first time an
    __thread variable is printed.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14283
2014-08-15 10:27:52 +00:00
Florian Krohm
c40d351f36 Update the C++ demangler by importing files from GCC trunk @ 212125.
Add a smoke test for the demangler and update the helper script.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14124
2014-06-30 21:04:16 +00:00
Florian Krohm
7aefdaa6ef Update the copyright notice in files ending in '.in' because the
script change-copyright-year did not handle them.
Update the script as well.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14087
2014-06-23 19:33:45 +00:00
Julian Seward
00e47d922d Show a line in the output log when the client connects but the
requested file is not found by the server.  This makes it easier to
diagnose client--server communications problems.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13788
2014-02-05 13:20:58 +00:00
Julian Seward
da5aab648e Fix a potentially serious bug discovered by BEAM.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13666
2013-10-20 09:34:13 +00:00
Julian Seward
dbf9b63605 Update copyright dates (20XY-2012 ==> 20XY-2013)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13658
2013-10-18 14:27:36 +00:00
Florian Krohm
bc0d9e14cf Fix a bug introduced in the previous revision.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13538
2013-09-10 14:00:45 +00:00
Julian Seward
64679d15b7 Define _XOPEN_SOURCE before including unistd.h.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13478
2013-08-01 22:16:41 +00:00
Mark Wielaard
defd29702f Bug 321738 Add manpages for vgdb and valgrind-listener.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13443
2013-07-03 10:00:19 +00:00
Julian Seward
e3116970fd Minimal changes needed to make this suitable for trunk:
* add a new flag --allow-mismatched-debuginfo to override the
  CRC32/build-id checks, if needed

* tidy up logic for finding files on the --extra-debuginfo-path
  and at the --debuginfo-server

* don't assert if connection to the debuginfo server is lost;
  instead print a reasonable message and quit.



git-svn-id: svn://svn.valgrind.org/valgrind/branches/DISRV@13431
2013-06-27 17:39:15 +00:00
Julian Seward
68c9403938 Initial code for remote debuginfo server. Handles all ELF/Dwarf{2,3,4}
on Linux.  No Dwarf1, no Stabs, and MacOSX probably won't build.


git-svn-id: svn://svn.valgrind.org/valgrind/branches/DISRV@13423
2013-06-07 16:15:48 +00:00
Florian Krohm
24b5658c60 Tweak script; ignore some more opcodes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13264
2013-01-24 03:21:12 +00:00
Florian Krohm
0641c1dded Identify opcodes that are not handled by the decoder in
guest_s390_toIR.c
Identify a few more duplicate mnemonics to avoid false messages
from the checker.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13168
2012-12-07 04:37:53 +00:00
Florian Krohm
976cdf3374 Accept blank lines in <binutils>/opcodes/s390-opc.txt.
Bug fix: avoid reading something uninitialised


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13157
2012-12-06 05:03:08 +00:00
Florian Krohm
aa4402ac0c The listener does not use VEX types anywhere else. So this
change fixes the copy-and-pasted panic functions to use
native C types.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13061
2012-10-20 19:28:13 +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
Julian Seward
4a3633e266 Update copyright dates to include 2012.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12843
2012-08-05 15:46:46 +00:00
Philippe Waroquiers
ab7b338320 301265 - add x86 support to Android build
Patch by Dragos Tatulea.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12835
2012-08-05 00:08:25 +00:00
Florian Krohm
bf20eec2a1 When parsing guest_s390_toIR.c also recognize opcodes with digits
in their name.
Also add more alternate opcode spellings.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12805
2012-07-30 16:16:24 +00:00
Julian Seward
19940978a4 Use multiple processors to build these tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12679
2012-06-28 09:12:58 +00:00
Julian Seward
a783a5c0f4 Change the V output file name from out-V to out-VAL.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12634
2012-06-13 11:12:06 +00:00
Florian Krohm
afdb2d63bc Add script that assists with updating s390-opcodes.csv.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12450
2012-03-18 01:52:07 +00:00
Florian Krohm
a70a467080 Fix a typo.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12283
2011-12-10 16:06:57 +00:00
Florian Krohm
8dbb84b825 Add script to assist in updating the C++ demangler from GCC trunk.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12282
2011-12-10 16:03:57 +00:00
Florian Krohm
271c9ad7e9 Document test results.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12267
2011-11-11 04:04:12 +00:00
Florian Krohm
7938607bae Don't get the date of the build from the mail header. It is
often off-by one. Instead extract it from the message body,
namely, when the build was kicked off.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12247
2011-10-28 02:45:15 +00:00
Florian Krohm
0092c719c3 Add script to summarize the outcome of nightly builds.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12231
2011-10-25 20:01:41 +00:00
Florian Krohm
42e26d9cc6 Add more missing files for the tarball.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12221
2011-10-24 00:03:52 +00:00
Julian Seward
c96096ab24 Update all copyright dates, from 20xy-2010 to 20xy-2011.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12206
2011-10-23 07:32:08 +00:00
Julian Seward
50e64251cc Update, so as to be able to handle the 200x vs 201x change.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12205
2011-10-23 07:31:08 +00:00