Commit Graph

1914 Commits

Author SHA1 Message Date
Nicholas Nethercote
7440f4def2 Cleaned up ume.h by moving some functions around.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2756
2004-10-13 17:29:01 +00:00
Tom Hughes
98b5592107 Add alternate results for some tests that use mmap.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2755
2004-10-13 16:48:21 +00:00
Nicholas Nethercote
15b8a2af00 Stage2 doesn't need ume_go.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2754
2004-10-13 16:36:03 +00:00
Nicholas Nethercote
2bed86240e Allow for test output files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2753
2004-10-13 14:55:07 +00:00
Nicholas Nethercote
45449290f0 Arch-abstraction:
- whoops, missed one ucontext use in last commit


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2752
2004-10-13 14:50:35 +00:00
Nicholas Nethercote
d1ad5601fb Arch-abstraction:
- factor out differences in ucontext types across different archs.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2751
2004-10-13 14:42:57 +00:00
Nicholas Nethercote
2062b4dc59 Preparing for powerpc inclusion, one day.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2750
2004-10-13 13:50:01 +00:00
Nicholas Nethercote
e06b949479 Arch-abstraction: genericise warning about unsupported architectures.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2749
2004-10-13 13:18:51 +00:00
Nicholas Nethercote
fcae323a88 Arch-abstraction:
- move LDT stuff out of core, into x86-linux specific stuff.  Some of it
  (VG_(do_useseg)()?) may be really x86-specific, rather than
  x86/linux-specific, but that can be fixed later if it's really shared with
  another OS.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2748
2004-10-13 13:05:20 +00:00
Nicholas Nethercote
19ab8eeec7 Add a new CPUID cache configuration for more recent Pentiums.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2746
2004-10-13 11:30:14 +00:00
Nicholas Nethercote
ce3c7200a7 Fix for bug 91162: cope with jumps to bogus addresses when there is a SEGV
signal handler present -- previously, Valgrind would abort unnecessarily on
this case.

Added a regression test for it.

MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2743
2004-10-13 09:47:24 +00:00
Nicholas Nethercote
fd06d82b71 Update second expected output to match the first.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2742
2004-10-12 08:38:19 +00:00
Nicholas Nethercote
b24f257005 Arch-abstraction:
- abstract out three ELF constants


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2741
2004-10-09 19:08:08 +00:00
Nicholas Nethercote
683657c785 typo
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2740
2004-10-09 18:50:16 +00:00
Nicholas Nethercote
44f0b4c6d5 Add README_DEVELOPERS to the 'make dist' tarball (since it's mentioned in
README), and add some instructions about attaching GDB to Valgrind itself
within it.

This fixes bug 90138.

MERGE WITH STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2738
2004-10-09 15:59:05 +00:00
Nicholas Nethercote
e86e8e1216 Improve error message.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2736
2004-10-08 14:01:14 +00:00
Tom Hughes
088b2da749 Turn off stabs debugging.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2735
2004-10-07 08:33:29 +00:00
Tom Hughes
588711ca62 More fixes for stabs generated by the GNAT compiler. This patch
allows negative offsets in structure member definitions as well as
improving the previous fix for names that are declared as both struct
tags and typedefs.

CCMAIL: 90128-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2734
2004-10-07 08:33:08 +00:00
Tom Hughes
2e6ced42f2 Added a module level stabs_debug flag to turn on all debugging.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2733
2004-10-07 08:22:59 +00:00
Tom Hughes
a6dcbe14ec Assert on any attempt to make a symbol a typedef for itself.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2732
2004-10-07 08:21:38 +00:00
Tom Hughes
880d78e9c3 Put back missing space...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2731
2004-10-06 13:50:12 +00:00
Tom Hughes
fe77cbbf89 Cope with arguments over 510 characters in length when writing the
cachegrind output file.

CCMAIL: 90834-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2730
2004-10-06 13:49:36 +00:00
Tom Hughes
86ffb724c2 Remove reference to --tool=memcheck being the default.
CCMAIL: 90086-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2729
2004-10-06 12:25:49 +00:00
Tom Hughes
248c27a3b3 Remove spurious (void) cast from VALGRIND_CHECK_DEFINED so that it
actually does what the comment says it does. Patch from Nathan Kurz.

CCMAIL: 90778-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2728
2004-10-06 12:18:47 +00:00
Tom Hughes
9c1dfedadc Fixed mistake in yesterday's signal trace patch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2727
2004-09-27 18:57:08 +00:00
Tom Hughes
18ee5b49cb Fix conversion of timeval to milliseconds - tv_usec is microseconds
and not nanoseconds.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2726
2004-09-27 18:55:55 +00:00
Tom Hughes
e340476ce0 When dieing because a fatal signal was received, print a stack trace for
the location where the signal was received rather then the signal handler.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2725
2004-09-26 18:44:06 +00:00
Tom Hughes
97e5e6382c Don't free the interpreter structure until we've actually finished
using it... Possible fix for bug 89663 spotted by Mike Cavins.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2724
2004-09-26 14:42:47 +00:00
Tom Hughes
7d73311ef7 Improve the checks in PRE(execve) to check that the file being executed
is a regular file and fail with EINVAL if it is not.

This problem was highlight by bug 89481 although this doesn't solve the
actual problem reported in that bug.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2723
2004-09-25 16:13:55 +00:00
Tom Hughes
1555ffc9ce Fixed the statfs64 wrapper to look at the right argument for the
stat buffer and added an fstatfs64 wrapper.

CCMAIL: 90111-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2722
2004-09-24 22:57:17 +00:00
Tom Hughes
67db20fd49 If a name is marked as both a typedef and a tag then ignore the tag marker
and just treat it as a typedef or valgrind gets very confused.

CCMAIL: 87904-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2721
2004-09-22 22:48:27 +00:00
Tom Hughes
ca05bfd7ec The fix for bug 85811 added decoding of many extra negative type
numbers in stabs and also removed the expectation of a trailing
semicolon after the type number as gcc didn't seem to be putting
one in. It seems that older gcc's do add one however, so we now
skip one if it is there.

CCMAIL: 88703-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2720
2004-09-19 10:30:36 +00:00
Nicholas Nethercote
0067b11b99 Remove unused macros.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2719
2004-09-14 11:55:36 +00:00
Nicholas Nethercote
1d5f118ad3 All newlines are borked; fix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2717
2004-09-13 20:48:20 +00:00
Nicholas Nethercote
d0d1c64875 Arch-abstraction:
- abstract out all the SET_THREAD_REG macros


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2716
2004-09-13 16:11:09 +00:00
Nicholas Nethercote
db32bd76a1 Arch-abstraction:
- add file for x86-specific signal stuff.  Should have gone in with the last
  commit, whoops.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2715
2004-09-13 16:10:17 +00:00
Nicholas Nethercote
81803c220e Arch-abstraction:
- abstract out reg filling for core dumps


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2714
2004-09-13 15:19:34 +00:00
Nicholas Nethercote
d286eeff03 Arch-abstraction:
- abstract out signal frame pushing/popping


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2713
2004-09-13 14:15:36 +00:00
Nicholas Nethercote
7beef528ff Don't inline large function
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2712
2004-09-13 13:27:30 +00:00
Nicholas Nethercote
fe64d52a7b Arch-abstraction:
- in vg_scheduler.c, abstract out some stack manipulations.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2711
2004-09-13 13:16:40 +00:00
Nicholas Nethercote
94f626e3ec Fix off-by-one error when counting the number of BBs executed.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2710
2004-09-13 12:16:06 +00:00
Nicholas Nethercote
4a8d89cfdc Fix grammar
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2708
2004-09-13 11:18:13 +00:00
Nicholas Nethercote
e0a284d9d7 Remove suppression files that have never been used, and don't get included in
"make dist".


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2707
2004-09-13 11:05:11 +00:00
Tom Hughes
ea28504761 When augmenting the argument vector from the VALGRIND_OPTS environment
variable and/or the .valgrindrc files, make sure that enough space is
allocated for all the old arguments, not just those that are arguments
to valgrind itself.

CCMAIL: 88604-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2706
2004-09-13 10:20:34 +00:00
Tom Hughes
3ea691a627 Only mark the section of the stack that has actually been used as
off limits otherwise we can try and invalidate a vast area of memory
if there is no stack limit.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2705
2004-09-12 22:48:59 +00:00
Nicholas Nethercote
9e21de1c3f wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2704
2004-09-11 23:51:50 +00:00
Nicholas Nethercote
68da16321d Arch-abstraction:
- in vg_symtab2.c, abstract out mentions of specific registers.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2703
2004-09-11 23:48:22 +00:00
Nicholas Nethercote
2d90ddba44 Fix minor off-by-one error.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2701
2004-09-11 23:27:09 +00:00
Nicholas Nethercote
5e8f6e1293 vg_replace_malloc.c doesn't need to be included in "make dist", because it's
generated from vg_replace_malloc.c.base.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2700
2004-09-11 23:07:22 +00:00
Nicholas Nethercote
6bfdfff36c Arch-abstraction:
- previous Cachegrind rearrangement broke "make distcheck";  this commit
  fixed it again.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2699
2004-09-11 18:27:43 +00:00