4058 Commits

Author SHA1 Message Date
Julian Seward
dfa3bfb64d Fixes to make the .pdf build using the toolchain on SuSE10 (from Donna).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5171
2005-11-17 18:04:58 +00:00
Julian Seward
20ba7adf1f Make VG_(apply_StackTrace) stop if it looks like we've overshot main().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5170
2005-11-17 15:12:34 +00:00
Julian Seward
7039eaa9ac sys_tgkill: hand the syscall to the kernel in the standard way, rather
than doing it inline.  Doing it inline screws up on ppc32-linux if
we're sending an async signal to ourselves (the same thread) because
the kernel immediately hands the signal to async_sighandler() which
then dies at the assertion that this thread's state is VgTs_WaitSys.
From which I conclude this wrapper has always had a race against the
kernel which did not show up on x86 or amd64.  (and/or that I don't
understand this stuff too well)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5169
2005-11-17 14:26:52 +00:00
Julian Seward
8a8c980ba0 Connect properly to the tgkill wrapper.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5168
2005-11-17 14:22:22 +00:00
Julian Seward
4114af1340 This won't work on ppc32 unless you ask for an alt stack with x permissions,
since signal returning requires execution of code on the stack.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5167
2005-11-17 13:04:46 +00:00
Julian Seward
c4acdbb3ba Get rid of bogus assertion.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5166
2005-11-17 13:03:42 +00:00
Tom Hughes
7acf361f06 Update README_DEVELOPERS to describe how to debug valgrind more
easily. Based on patch from Yao Qi <qiyaoltc@cn.ibm.com>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5165
2005-11-17 12:31:12 +00:00
Tom Hughes
2f49a0d567 Removed vki_ntohs definition and the infrastructure that supported
it as it is no longer used.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5164
2005-11-17 12:14:42 +00:00
Tom Hughes
91b44ff30e Use VG_(ntohl) and VG_(ntohs) to decode IP addresses and ports. Note
that this also required reversing the order of the arguments to the
print call as the previous ordering assumed that the address was still
byte swapped.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5163
2005-11-17 12:02:58 +00:00
Tom Hughes
2605f9b94e Provide a full set of ntohl/htonl/ntohs/htons routines in the
valgrind C library.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5162
2005-11-17 12:01:56 +00:00
Julian Seward
c01a097e5b Kludgey endianness fix (for printing only) to stop fdleak_ipv4 failing on
ppc32.  I'm sure there's a Right Way to fix it, and this isn't it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5161
2005-11-17 11:45:28 +00:00
Julian Seward
2e084e8121 Enable sys_lstat on ppc32.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5160
2005-11-17 11:01:55 +00:00
Julian Seward
847c90dbfd Filter out I-have-no-idea-what-your-caches-are message, so these tests
don't fail on ppc32.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5159
2005-11-17 10:56:08 +00:00
Julian Seward
3906739a17 A couple of these syscalls fail differently when running on an amd64
in 32-bit mode.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5158
2005-11-17 03:08:16 +00:00
Julian Seward
921283974b Record XML output format changes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5157
2005-11-17 00:51:36 +00:00
Nicholas Nethercote
f02b856600 record more email comments
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5156
2005-11-16 23:54:46 +00:00
Cerion Armour-Brown
973949d2b3 Implemented checks for FPSCR and VSCR on leaving dispatcher
- required flags: FPSCR[RM] == 0, VSCR[NJ] == 1



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5155
2005-11-16 20:22:11 +00:00
Nicholas Nethercote
bc87879123 Minor tweaks.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5154
2005-11-16 20:12:22 +00:00
Julian Seward
4e648a2346 Fix up ppc32-linux handlers for sys_sigreturn and sys_rt_sigreturn. I really
have no idea how these work (what's there is a conceptual transcription of
what we have for x86-linux) and so if those of you more Skilled In The Art 
Of Signals than myself would care to peer at it, that would be appreciated.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5153
2005-11-16 19:15:33 +00:00
Julian Seward
ee1f1bc2b5 Even more news.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5152
2005-11-16 19:13:13 +00:00
Cerion Armour-Brown
c6477a38e4 Added tests for latest altivec fp insns
Fixed fp nan argument values
Fixed setting of non-java bit in VSCR to be on for all cases.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5151
2005-11-16 18:58:26 +00:00
Julian Seward
5959f02a89 Edit the release notes a bit and add our huge list of fixed bugs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5150
2005-11-16 18:39:25 +00:00
Cerion Armour-Brown
2570833d92 Added fp vector conversion/rounding irops to memcheck
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5149
2005-11-16 17:21:49 +00:00
Nicholas Nethercote
43ec9bc87d Record previous log message as a comment in the code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5148
2005-11-16 17:16:10 +00:00
Julian Seward
afb964cccd Make the data segment (heap) executable. LinuxThreads on ppc32 creates
trampolines in this area.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5147
2005-11-16 17:12:38 +00:00
Julian Seward
b238db41a1 Sync with all the bugzilla emails I have.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5146
2005-11-16 17:11:52 +00:00
Tom Hughes
30b052dcab Update XML results.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5145
2005-11-16 16:54:02 +00:00
Julian Seward
6203fe7cdc Enable sys_rt_sigsuspend. This is needed by LinuxThreads.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5144
2005-11-16 12:51:34 +00:00
Tom Hughes
b2ee760f24 Bug status updates.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5143
2005-11-16 10:23:15 +00:00
Julian Seward
51658535e7 Slightly reorder the preamble-printing order, and also print the CPU arch/subarch detected.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5142
2005-11-16 03:51:02 +00:00
Tom Hughes
e9b07e443e Move VG_(am_get_filename) to the tool accessible aspacemgr header file.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5141
2005-11-16 00:11:14 +00:00
Tom Hughes
15300b2f2f Reinstate code to extent SegInfo ranges to cover all PT_LOAD segments
when VG_(needs_data_syms) has been called by the tool.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5140
2005-11-16 00:09:15 +00:00
Tom Hughes
8442bc8d8a Update bug status.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5139
2005-11-16 00:05:58 +00:00
Tom Hughes
87c289f91d Fix stabs decoder to allow :: in a method name provided it is inside
a template argument list. Fixes bug #113126.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5138
2005-11-16 00:04:58 +00:00
Julian Seward
d07dbe4a52 Complete documentation trawl for 3.1.0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5137
2005-11-15 20:56:23 +00:00
Nicholas Nethercote
c3ffb5e7a4 wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5136
2005-11-15 20:16:45 +00:00
Julian Seward
86c998a8de Update manual for 3.1.0, sections <= manual-core.html.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5135
2005-11-15 19:51:04 +00:00
Cerion Armour-Brown
db9b446390 Incremented the xml output protocolversion to 2, following the change in the time field format of r5042
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5134
2005-11-15 19:07:53 +00:00
Nicholas Nethercote
8546c0a5bf More detail about pre-release testing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5133
2005-11-15 15:27:06 +00:00
Nicholas Nethercote
a26bd07b31 Remove horribly out-of-date comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5132
2005-11-15 02:24:57 +00:00
Tom Hughes
39e6ec034f Handle some ALSA ioctls that don't have size or direction hints.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5131
2005-11-14 17:03:54 +00:00
Julian Seward
4e27498796 In XML mode, emit a closing </valgrindoutput> on various kinds of
failures, so as to help parsers stop parsing:

- after any kind of assertion failure or panic
- if suppression file is missing or has a syntax error



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5130
2005-11-14 17:01:01 +00:00
Nicholas Nethercote
78c8ae8f98 More man page updating, including:
- commented out stuff about addrcheck
- --log-file no longer puts "pid" in the filename
- other minor changes



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5129
2005-11-14 16:00:27 +00:00
Nicholas Nethercote
2cfef08f2b Make this test compile on my machine.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5128
2005-11-14 15:35:20 +00:00
Tom Hughes
0cfea5db07 Enable the prctl system call on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5127
2005-11-14 15:26:03 +00:00
Julian Seward
1f93e36cf6 Separate the stack unwind logic for amd64 and x86, so that they can be
differently performance-tuned.  amd64 needs to consult CFI first and
then if that fails (unlikely) follow the %rbp chain.  On x86, the CFI
is almost never helpful, but consulting it first wastes significant
time in allocation-intensive programs.  This commit pulls the two
archs apart and puts the CFI check second on x86.  This reduces start
time for ktuberling on x86 on memcheck from 78 seconds to 75.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5126
2005-11-14 15:18:25 +00:00
Julian Seward
b7eb35135c On amd64, when running allocation-intensive code in the presence of
many shared objects, finding the relevant CFI information for stack
unwinding becomes a significant performance overhead.  This change
slowly rearranges the SegInfo list to bring more popular entries to
the front during CFI lookup.  This reduces the startup time of
konqueror on memcheck on amd64 from 124 to 110 seconds.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5125
2005-11-14 15:10:12 +00:00
Tom Hughes
6f9faa809d Update manual page.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5124
2005-11-14 15:01:32 +00:00
Tom Hughes
204dd5138c Document sign extension of si_code by the kernel.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5123
2005-11-14 14:37:02 +00:00
Cerion Armour-Brown
3d26054981 Added tests for altivec load/stores
Enabled altivec float tests



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5122
2005-11-14 12:15:27 +00:00