Julian Seward
dfc08e58d2
Followup to r8178: don't segfault if VG_(clo_log_name) is NULL.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8181
2008-06-04 09:07:36 +00:00
Julian Seward
9551b14c18
Reinstate printing of log-file-qualifiers in XML output (Ashley Pittman).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8178
2008-06-04 06:51:58 +00:00
Julian Seward
1fb920eeb5
Add '*flags |= SfMayBlock' to PRE(sys_sync_file_range).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8177
2008-06-04 06:49:56 +00:00
Bart Van Assche
46f92fc29f
Changed _Spec::mandatory from HChar* into const HChar*. If no symbol information is found in ld.so during startup of the exp-drd tool, let Valgrind abort and print an informative error message.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8170
2008-06-01 16:33:37 +00:00
Bart Van Assche
8480f85e39
Don't complain on .got.plt sections of size zero. Apparently such
...
sections are generated by older toolchains (binutils 2.15.90.0.3 ?)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8158
2008-05-30 13:21:13 +00:00
Julian Seward
85b312c498
Allow 64-byte line sizes (PA6T cpu).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8151
2008-05-29 16:39:57 +00:00
Julian Seward
72a3a2f4f2
Make the size calculations inside VG_(mallinfo) 64-bit clean.
...
I don't really understand how 'struct mallinfo' makes any sense on a
64-bit platform given that all the field sizes are 32-bit ints, and
surely at least .arena and .uordblocks and probably others could
easily exceed 32-bit range.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8149
2008-05-29 13:45:49 +00:00
Julian Seward
b2651c395b
More fiddling with the sys_signalfd wrapper.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8147
2008-05-29 12:56:08 +00:00
Bart Van Assche
7fbbba6ae4
Make sure the debug information is read before a tool is notified about an mmap() system call.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8142
2008-05-29 08:52:44 +00:00
Julian Seward
178fbd72d3
Tidy up timerfd wrapper stuff a bit:
...
* make linux_kernel_2_6_22 return Bool
* linux_kernel_2_6_22: don't assert if /proc/sys/kernel/osrelease
can't be opened
* PRE(sys_timerfd_create), PRE(sys_signalfd):
use %ld for Word arguments, and use house types
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8138
2008-05-28 11:06:08 +00:00
Bart Van Assche
0f6897cc6c
Removed the superfluous casts that were introduced in r8132.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8136
2008-05-28 07:09:54 +00:00
Bart Van Assche
dcf69a8cb2
sys_timerfd() and sys_signalfd() wrappers now interpret their first argument consistently as signed instead of unsigned. Fixes #162663 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8132
2008-05-26 17:16:08 +00:00
Bart Van Assche
4938c1f0ba
Added support for the fadvise64() system call on ppc64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8130
2008-05-25 18:09:11 +00:00
Bart Van Assche
46cb6b91d7
- Added support for querying information about .plt sections.
...
- Added support for .got.plt sections.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8127
2008-05-25 16:37:22 +00:00
Bart Van Assche
109d597941
Bug fixes (not in bugzilla):
...
- Make sure that Valgrind does not complain when it tries to read the
debug information of a file of size zero when such a file is mmap()'ed
into memory.
- Make sure the filename is included in the error message that is
printed when reading the debug information fails for a file that is mmap()'ed
into memory.
- Fixed assertion failure that was triggered by supplying an output
buffer to VG_(seginfo_sect_kind)() that is smaller than the filename
to be copied into that buffer.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8126
2008-05-25 16:25:51 +00:00
Bart Van Assche
20a71037ce
Removed ppc debug print statements.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8125
2008-05-25 16:01:52 +00:00
Bart Van Assche
df3037fdc9
Removed superfluous #include directive.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8124
2008-05-25 16:01:03 +00:00
Bart Van Assche
37f950c02a
VG_(read_millisecond_timer)() is now monotonic, even if set_timeofday() is called or if ntpd adjusts the clock backwards. On Linux kernels where the clock_gettime() syscall is not supported, VG_(read_millisecond_timer)() falls back to the old behavior.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8072
2008-05-14 09:50:08 +00:00
Bart Van Assche
26335fa835
Increased maximum number of suppression files from 10 to 100. Fixes #161487 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8065
2008-05-13 17:45:28 +00:00
Bart Van Assche
7d072b3b4a
Enabled timerfd() and timerfd_create() support for ppc32 and ppc64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8051
2008-05-12 18:16:14 +00:00
Julian Seward
a617a26b86
POST(sys_poll): mark the revents field even when RES==0. Fixes #158425 .
...
(Dave Goodell)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8049
2008-05-12 15:46:34 +00:00
Julian Seward
22e711d457
Fix wrappers for sys_futimesat and sys_utimensat. (Dan Kegel)
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8047
2008-05-12 14:29:23 +00:00
Julian Seward
c2de8fa58b
Suppress stack-switching message in XML mode.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8012
2008-05-06 21:01:19 +00:00
Julian Seward
35695d8b1a
Un-break signal frame delivery on ppc64 following recent Memcheck
...
origin tracking changes. This is believed to fix #161628 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8011
2008-05-06 18:14:27 +00:00
Julian Seward
f9f7ad0a45
Make sure sp[0] and fp[0] are set in a rarely-taken path. Thanks to
...
Bart for spotting this.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7994
2008-05-02 22:27:07 +00:00
Julian Seward
3c25a48a0c
Temporarily work around compilation failures caused by non-definition
...
of __NR_timerfd, pending proper resolution. See
http://bugs.kde.org/show_bug.cgi?id=160907
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7983
2008-05-01 21:22:38 +00:00
Julian Seward
4cae5c3ed5
Merge branches/OTRACK_BY_INSTRUMENTATION into the trunk. This adds
...
support to Memcheck for tracking the origin of uninitialised values,
if you use the --track-origins=yes flag.
This currently causes some Memcheck regression tests to fail, because
they now print an extra line of advisory text in their output. This
will be fixed.
The core-tool interface is slightly changed. The version number for
the interface needs to be incremented.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7982
2008-05-01 20:24:26 +00:00
Bart Van Assche
bcb85a68fb
Make sure the test for kernel version 2.6.22 will work correctly for the future kernel versions 2.6.220 .. 2.6.229.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7971
2008-05-01 12:35:48 +00:00
Bart Van Assche
c6d4c09e7c
Added support for timerfd_create(), timerfd_gettime() and timerfd_settime() system calls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7942
2008-04-27 12:56:06 +00:00
Bart Van Assche
46fd0e3040
Enabled syslog and create_module system calls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7920
2008-04-26 10:57:07 +00:00
Bart Van Assche
e31611fb5c
Added support for epoll_pwait(), utimensat(), eventfd(), timerfd() and signalfd(). Fixes bug 160907.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7917
2008-04-26 07:45:10 +00:00
Bart Van Assche
2497cadb85
Refined mallinfo() implementation (contributed by Eugene Toder).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7901
2008-04-21 17:28:50 +00:00
Bart Van Assche
2a7b4f5bd5
Added mallinfo() implementation based on patch by Eugene Toder (see also bug 160956).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7888
2008-04-19 14:43:30 +00:00
Bart Van Assche
18ca08e920
Fixed compiler warning.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7884
2008-04-16 18:49:11 +00:00
Julian Seward
d1074cd2af
Remove VG_ prefixing from static (non-exported) functions.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7876
2008-04-14 20:30:34 +00:00
Bart Van Assche
366ad62a46
Extended VG_(message)() buffer from 100 to 128 characters. Made sure that lines printed by different threads are not mixed up in the output.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7875
2008-04-14 16:35:32 +00:00
Bart Van Assche
cf45f897a6
Only read debug information from regular files, and not from device nodes. Do not complain on files for which we do not have read access.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7862
2008-04-09 16:21:34 +00:00
Bart Van Assche
f760d16eb7
Added VG_(thread_get_stack_size)().
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7799
2008-03-29 09:25:53 +00:00
Bart Van Assche
7d42280fc1
Fixed a comment.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7798
2008-03-29 09:25:11 +00:00
Bart Van Assche
f2526f4f35
Moved macro's that specify branch prediction hints to include/pub_tool_basics.h
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7745
2008-03-22 08:04:29 +00:00
Julian Seward
81663bc4b7
Kludgily fix a regression caused by the recent DATASYMS merge, which
...
caused V to hang when running Amarok in KDE 3.5.X.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7723
2008-03-17 16:23:54 +00:00
Julian Seward
5a233d645a
Merge, from branches/HGDEV, r7604 and r7609 (Try to address
...
performance problems resulting from increased searching of the stacks
list.)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7645
2008-03-12 00:14:01 +00:00
Julian Seward
56b0448a64
Handle DW_OP_deref.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7597
2008-03-08 10:44:39 +00:00
Julian Seward
18a72f705c
Try to handle the situation where an object is first split into a base
...
object (without D3 info) and a debuginfo (with D3 info), and then the
base object is prelinked to some nonzero address, but the debuginfo
object is left unchanged. A nasty and unprincipled hack.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7590
2008-03-07 22:17:31 +00:00
Julian Seward
3f577414fe
Handle DW_FORM_data8.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7589
2008-03-07 20:07:58 +00:00
Julian Seward
8c1638a9ed
Don't tell m_redir (and the user) that debuginfo is about to be
...
discarded if in fact we never got as far as reading anything into
DebugInfo. This unbreaks self-hosting.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7579
2008-03-06 18:31:42 +00:00
Julian Seward
efefa3830e
VG_(get_strace_wrk): don't segfault in the degenerate case fp_min =
...
fp_max_orig = 0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7551
2008-03-03 22:20:51 +00:00
Bart Van Assche
99e2db5631
Compiles now with gcc 2.96 too.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7550
2008-03-03 20:40:51 +00:00
Julian Seward
50a23bf861
Don't be quite so paranoid about rejecting symbols that fall outside
...
the .text segment. Instead only reject ones that fall outside the r-x
area. This is in line with r7427, which instituted such a change in
other places in the system.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7546
2008-03-03 15:51:58 +00:00
Nicholas Nethercote
fcb6ba0407
update comments
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7543
2008-03-03 02:15:03 +00:00