Commit Graph

8592 Commits

Author SHA1 Message Date
Bart Van Assche
718bde7682 drd/tests/matinv: Add missing return statement in an error path.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11869
2011-07-11 16:25:37 +00:00
Julian Seward
9aacfb0e51 Remove a commented-out copy of the sys_sigaction wrappers
that also are duplicated for x86-linux and ppc32-linux.
(No functional change.)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11868
2011-07-11 16:07:01 +00:00
Josef Weidendorfer
5eb8c47884 Port callgrind_control to vgdb
Same functionality, apart from "-l" to show "long information".
This only printed the current working directory of the callgrind run,
which currently is not available any longer, but not really needed.

The port to vgdb has an important benefit:
callgrind can now be controlled by callgrind_control also when
the client program is blocked/sleeping in a system call. This was
not possible before as a command file was polled only while the
client was running.

Ubuntu by default restricts PTRACE (used by vgdb) to parent processes,
making Ubuntu show similar behavior as before: vgdb is not allowed
to attach by PTRACE when the client is blocked/sleeping, so
callgrind_control works similar to before this change on Ubuntu.

A final patch, which gets rid of command file polling, will be
submitted after Valgrind 3.7, as KCachegrind currently writes
command files directly, and needs to be changed to rely on
callgrind_control instead.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11867
2011-07-11 14:46:44 +00:00
Josef Weidendorfer
4a3ad5c4fc callgrind: add vgdb commands needed for porting callgrind_control
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11866
2011-07-11 14:46:41 +00:00
Julian Seward
ed80c32ae5 Add / fix up test cases for {LD,ST}REX{,B,H,D} on ARM. Works for both
ARM and Thumb encodings.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11865
2011-07-11 11:46:52 +00:00
Florian Krohm
210fd226e2 Valgrind-side changes to fix bug #271776.
Add testcase for s390x's STFLE instruction.
Patch provided by Divya Vyas <divyvyas@linux.vnet.ibm.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11864
2011-07-11 01:51:39 +00:00
Julian Seward
3898fc46fc Add regression tests for {ADD,SUB}W reg, reg, #uimm12 (vex r2170)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11863
2011-07-08 15:46:33 +00:00
Florian Krohm
5747998699 Allow optional specification of cpu models on the command line
and test whether the host machine matches one of those. This is
needed  to fix Bug #271776.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11862
2011-07-07 22:09:41 +00:00
Julian Seward
effd1716e5 Pipe CFLAGS through to the compile run for genoffsets.c, which is a
bit special.  CFLAGS is already piped through to everywhere else.
This is needed for working with semi-broken cross-compile setups that
need CFLAGS set to special values in order to work.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11861
2011-07-07 14:05:39 +00:00
Tom Hughes
cfc24ee4ea Move the break out of the braces so that we don't fall through
into the next case when no argument was given to the ioctl.

Spotted by IBM's BEAM checker.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11860
2011-07-06 14:11:56 +00:00
Tom Hughes
75dbd1b0af Don't allocate the XArray for the text version of the suppression
until after we've checked if the tool will allow the error to be
suppressed, or we will leak it if we do the early return.

Spotted by IBM's BEAM checker.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11859
2011-07-06 14:08:24 +00:00
Julian Seward
0c769dd228 Disable stabs reading on ppc64-linux; it always segfaults.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11858
2011-07-06 07:23:56 +00:00
Julian Seward
b852d4ed5a Enable testing of fres{.} and frsqrt{.} instructions. Fixes #275308.
Based on a patch by Maynard Johnson <maynardj@us.ibm.com>.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11857
2011-07-05 10:20:44 +00:00
Tom Hughes
233e49f342 Implement some extra DWARF ops that gcc 4.6.1 seems to use. Fixes #275284.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11856
2011-07-05 09:22:32 +00:00
Julian Seward
e6f3302aeb Make the wait-for-gdb delay loop somewhat more modern-compiler-proof.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11855
2011-07-05 09:13:41 +00:00
Julian Seward
827c6c3a50 Improve debug printing for ELF program header analysis. No functional
change.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11854
2011-07-05 09:13:04 +00:00
Julian Seward
d1e0bf1d9e GDB server: fix tests following recent commits.
Fixes #276987.  (Philippe Waroquiers, philippe.waroquiers@skynet.be)

* make_local_links
  - disable gdb tests if gdb version < 7
  - disable pic tests if gdb version < 7.1
* nlfork_chain test
  - reduce chain from 20 to 15 to avoid ENOMEM
    on small ARM systems
* main_pic.c
  - put break at line 11 rather than main entry, as ARM gdb
     does not properly show main args till it has started executing.
* passsigalrm.c
  - do not setsa.sa_restorer (obsolete on linux, unknown on darwin)
* mcvabits.vgtest
  - make prereq consistent with other tests
* filter_gdb
  - upgraded filter to new linenr in clean_after_fork.c



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11853
2011-07-04 22:00:41 +00:00
Bart Van Assche
834e080726 Update Subversion ignore lists
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11852
2011-07-03 16:43:01 +00:00
Bart Van Assche
98e2b90f54 drd: Source code cleanup - merge two blocks of tracing code
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11851
2011-07-03 11:43:45 +00:00
Bart Van Assche
b8a3862036 drd: Source code cleanup - outdent a code block
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11850
2011-07-03 11:42:03 +00:00
Bart Van Assche
8dbea80af4 drd: Simplify a boolean expression
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11849
2011-07-03 11:41:27 +00:00
Bart Van Assche
32e94d5a60 drd: Source code cleanup - change two variables from int to bool and outdent one code block
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11848
2011-07-03 11:40:49 +00:00
Bart Van Assche
ea4cf7d848 drd: Add an assert statement
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11847
2011-07-03 11:39:30 +00:00
Bart Van Assche
244796dc18 drd: remove a duplicate tl_assert() statement.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11846
2011-07-03 11:24:41 +00:00
Florian Krohm
bc494507f2 Synch s390x system call list with linux 2.6.39.2.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11845
2011-06-28 23:37:01 +00:00
Julian Seward
97c113e7e0 valgrind and tool mon. cmds prefixes changes + doc fixes + new vgdb option
--cmd-time-out

* changed prefixes of Valgrind core monitor commands from vg. to v.
* removed prefixes of Tool monitor commands
* memcheck leak_check 'leakpossible' arg renamed to 'possibleleak'
* memcheck make_memory 'ifaddressabledefined' arg renamed to
'Definedifaddressable'
    (with uppercase D to avoid confusion with 'defined' arg).
* vgdb options
  - Some doc updates : more logical option order documentation,
       specify 'standalone' for options aimed at standalone usage.
  - added option --cmd-time-out for standalone vgdb
     (comment of Josef Weindendorfer, needed to interface with a callgrind GUI)
* updated tests according to the above.
* updated documentation according to the above.
* some additional minor doc fixes/clarifications

(Philippe Waroquiers, philippe.waroquiers@skynet.be).  Bug 214909
comment 111.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11844
2011-06-28 08:20:39 +00:00
Julian Seward
9aa59b5cfa Another make dist fix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11843
2011-06-28 07:38:17 +00:00
Julian Seward
ad7de5b336 Delete the AIX5 port. The last release this worked for is 3.4.1,
and then only on AIX 5.2 and 5.3.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11842
2011-06-28 07:25:29 +00:00
Julian Seward
b4e2ade329 Fix 'make dist' following recent gdbserver commits.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11841
2011-06-27 23:31:07 +00:00
Josef Weidendorfer
04003f215d Suppress warning about associativity change for tests
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11840
2011-06-27 17:26:19 +00:00
Julian Seward
70af73cc4f Remove references to Ptrcheck in the documentation, and replace
them as relevant with references to SGcheck.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11839
2011-06-26 19:57:26 +00:00
Julian Seward
5c1e65aa42 Memcheck:
* add delta leak checking functionality
* some editing of related manual sections
(Philippe Waroquiers, philippe.waroquiers@skynet.be).  Bug 214909
comment 105.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11838
2011-06-26 12:41:33 +00:00
Julian Seward
64940ed44a GDB server:
* Fix bug in logic related to signal-passing
* use SIGSTOP instead of SIGTRAP (avoid race condition)
(Philippe Waroquiers, philippe.waroquiers@skynet.be).  Bug 214909
comment 109.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11837
2011-06-26 09:36:38 +00:00
Julian Seward
7be9d63ed0 Add support for PIC executables (e.g. firefox on Ubuntu 11) by adding
the "auxv" protocol packet to gdbsrv.  (Philippe Waroquiers,
philippe.waroquiers@skynet.be).  Bug 214909 comment 108.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11836
2011-06-26 09:26:48 +00:00
Julian Seward
5689679404 GDB server:
* fix error in usability msg
* make a test more deterministic
(Philippe Waroquiers, philippe.waroquiers@skynet.be).  Bug 214909
comment 107.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11835
2011-06-26 09:13:27 +00:00
Julian Seward
e5bd8ec4c8 Minor documentation fixes for the GDB server. (Philippe Waroquiers,
philippe.waroquiers@skynet.be).  Bug 214909 comment 106.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11834
2011-06-25 10:05:28 +00:00
Florian Krohm
0b14e631d9 Announce fix of #275710
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11833
2011-06-25 02:28:00 +00:00
Florian Krohm
68e01239ae Get rid of some compiler warnings.
Fixes 275339 (Christian Borntraeger <borntraeger@de.ibm.com>)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11832
2011-06-25 02:06:21 +00:00
Florian Krohm
879929d731 Update ignored files for exp-sgcheck.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11831
2011-06-25 01:54:03 +00:00
Florian Krohm
c61da5ee2e Update ignored files for s390x
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11830
2011-06-25 01:50:55 +00:00
Julian Seward
2acd297ebe Fix #undefs that are inconsistent with those further up the file,
as spotted by Michael Meeks.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11829
2011-06-24 18:26:11 +00:00
Julian Seward
7067169d52 Documentation updates for Helgrind.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11828
2011-06-24 18:23:42 +00:00
Julian Seward
4d3de70f0e Add tests for displaying of locks held by threads in races.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11827
2011-06-24 16:03:32 +00:00
Julian Seward
c6f4a43e94 Fix up the remaining .stderr.exp-s following r11824 (merge of
branches/HGDEV2), and delete some redundant ones


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11826
2011-06-24 12:55:25 +00:00
Julian Seward
3ba8c354cd Fix a bunch of helgrind .stderr.exp-s following r11824 (merge of
branches/HGDEV2)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11825
2011-06-24 10:50:11 +00:00
Julian Seward
3e9f7836c5 Merge the contents of the HGDEV2 branch into trunk:
* performance and scalability improvements
* show locks held by both threads in a race
* show all 4 locks involved in a lock order violation
* better delimited error messages



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11824
2011-06-24 10:09:41 +00:00
Robert Walsh
8cba603f23 Fix ignores for Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11823
2011-06-19 03:41:57 +00:00
Julian Seward
46d08c579d Minor GDBserver source tidying. Also a small usability fix: if
--vgdb-error=N is specified, print a bit of text telling the user the
magic commands to give GDB in order to attach to the process.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11822
2011-06-18 08:28:04 +00:00
Julian Seward
48d69a241a Move the GDBserver documentation from the "Valgrind core" chapter
to the "Valgrind core: advanced topics" chapter.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11821
2011-06-17 08:31:22 +00:00
Julian Seward
97024bcccb Edits for the GDBserver documentation.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11820
2011-06-17 08:14:00 +00:00