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
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
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
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
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
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
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
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
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
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
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
Tom Hughes
8adabd3253
Add support for the SIOCGPGRP ioctl and mark SIOCSPGRP as non-blocking
...
to avoid older kernels returning EPERM due to it being run in a separate
thread. This fixes bug #89198 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2697
2004-09-11 15:33:17 +00:00
Nicholas Nethercote
7615eab7a2
Arch-abstraction:
...
- abstract out some inline asm
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2696
2004-09-11 15:30:33 +00:00
Tom Hughes
bb199f64d1
Removed result checks from ioctl POST handlers as the POST handler is
...
not called unless PostOnFail is set so the checks are redundant.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2695
2004-09-11 15:14:59 +00:00
Nicholas Nethercote
eb41aa73c3
Arch-abstraction:
...
- abstract out some direct naming of registers
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2694
2004-09-11 15:11:47 +00:00
Tom Hughes
7d1259db4d
Add system call wrappers for some CD related ioctls. Based on a
...
patch from Peter Jones <pjones@redhat.com >.
CCMAIL: 89263-done@bugs.kde.org
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2693
2004-09-11 15:07:14 +00:00
Tom Hughes
0867191adf
Add system call wrappers for the TIOCMBIS/TIOCMBIC/TIOMSET ioctls. Based
...
on a patch from Tobias Blomberg <blomman@ludd.ltu.se >.
CCMAIL: 88886-done@bugs.kde.org
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2692
2004-09-11 14:37:04 +00:00
Tom Hughes
838ac82f4c
Add system call wrappers for sched_{get,set}affinity. Based on patch
...
from Daryll Strauss <daryll@daryll.net >.
CCMAIL: 89139-done@bugs.kde.org
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2691
2004-09-11 14:29:19 +00:00
Tom Hughes
99fcaf843d
Make the virtualise setrlimit(RLIMIT_DATA) return EPERM when an attempt
...
is made to raise either the soft or hard limit above the current hard
limit rather than just allowing it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2690
2004-09-11 14:19:25 +00:00
Tom Hughes
2aad0526df
Virtualise the stack rlimit for the main thread and make valgrind enforce
...
that limit when growing the stack. Also add a message when the stack in any
thread overflows.
CCMAIL: 73818-done@bugs.kde.org
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2689
2004-09-11 14:16:57 +00:00
Nicholas Nethercote
c7da0ece1e
Arch-abstraction:
...
- abstractify various uses of the stack pointer
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2688
2004-09-11 13:34:08 +00:00
Nicholas Nethercote
12722a3822
Arch-abstraction:
...
- minor tweaks for handling client requests on PPC
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2687
2004-09-11 13:17:02 +00:00
Nicholas Nethercote
35bfcd9d8b
Slightly more informative error msgs for some cl reqs.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2686
2004-09-11 13:06:55 +00:00
Nicholas Nethercote
db64449073
Arch-abstraction:
...
- added x86-linux/core_platform.h
- factored out getting/setting of system call arguments, put it in
platform-specific part.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2685
2004-09-10 17:42:11 +00:00
Nicholas Nethercote
6c9df6f79e
Whoops, file should be called ".cvsignore", not ".cvgsigore".
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2684
2004-09-10 16:34:24 +00:00
Nicholas Nethercote
0792fdf54d
Arch-abstraction:
...
- add a new file x86/x86_private.h, a header for the x86-specific stuff that is
not seen by the core.
- move some LDT function decls into x86_private.h.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2683
2004-09-10 16:31:11 +00:00
Nicholas Nethercote
d544b7d93d
Arch-abstraction:
...
- move some LDT constants into the x86-specific code.
- abstract out uses of LDT and TLS in vg_scheduler into the x86-specific code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2682
2004-09-10 15:33:32 +00:00