Commit Graph

2262 Commits

Author SHA1 Message Date
Nicholas Nethercote
85e1a563bc Recategorise options in the usage message.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4256
2005-07-25 22:36:52 +00:00
Tom Hughes
69ef21a629 Fix some inconsistent system call trace messages.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4251
2005-07-25 15:28:36 +00:00
Tom Hughes
03bc2deb25 Add support for the inotify system calls based on a patch
from John McCutchan <ttb@tentacle.dhs.org>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4250
2005-07-25 15:21:41 +00:00
Tom Hughes
e44228371e Update unistd headers to match the 2.6.13-rc3 kernel source.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4249
2005-07-25 15:04:00 +00:00
Julian Seward
c930639c1d Don't claim that the --single-step= and --optimise= flags exist any
more.  They have been replaced by --vex-guest-max-insns= and the
--vex-iropt-* flags.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4241
2005-07-24 07:39:17 +00:00
Julian Seward
a421699ed2 Rename tags in XML <status> block.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4240
2005-07-24 07:33:15 +00:00
Julian Seward
4a7697b939 --branchpred= doesn't do anything (I'm not sure what it ever did do). Rm'd.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4239
2005-07-24 07:23:54 +00:00
Julian Seward
1bafc58697 Get rid of --support-elan3=. This flag wasn't doing anything since
the Elan3 user-space driver now works on unmodified Valgrind.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4238
2005-07-24 07:15:44 +00:00
Julian Seward
57252ed688 Rename --smc-support= to --smc-check=.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4237
2005-07-24 07:00:45 +00:00
Julian Seward
5caa702a1f Enable sys_poll.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4235
2005-07-24 06:30:37 +00:00
Julian Seward
9a0f35e3a8 Remove dead #undef.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4234
2005-07-23 23:22:24 +00:00
Julian Seward
0f4a5064dd Replace a bunch of useless memory-to-memory copies with some highly
predictable branches.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4233
2005-07-23 17:45:15 +00:00
Julian Seward
7f196f23c4 When canonicalising CFI information, truncate overlapping address
ranges and remove zero-length entries.  If these appear it's because
the generating compiler has created invalid CFI info.  Nevertheless we
should handle this robustly.  This fixes a bug reported by Bill
Hoover.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4232
2005-07-23 17:14:03 +00:00
Julian Seward
3e10260028 Fix comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4231
2005-07-23 11:36:03 +00:00
Julian Seward
16d2f8c107 Change the criteria by which translations are discarded in the presence of
redirections.  Patch from Tom Hughes.  This fixes #109401.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4230
2005-07-23 09:52:21 +00:00
Julian Seward
ab00074929 Change some int uses to Int (the house types).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4229
2005-07-23 09:22:46 +00:00
Julian Seward
6789f6542e A commit which is almost all trivial change.
- m_main: if --log-file-qualifier applies, do not add ".pid"
  at the end of the name

- Fix the logic which detected whether the just-devised name
  already existed.  This was broken (by me) because it could not
  distinguish the reasons for failing to open the logfile.

  Doing this required changing the return type of VG_(open)
  from Int to SysRes (to make failure reasons visible) and 
  that's the cause of most of the changes.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4228
2005-07-23 09:18:34 +00:00
Tom Hughes
a74aa1e74d Yet more system calls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4227
2005-07-22 15:04:14 +00:00
Nicholas Nethercote
3816fc83da Re-institute SegInfo reference counting and deallocation.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4225
2005-07-21 23:26:25 +00:00
Tom Hughes
f0fdce6382 Enable rt_sigpending on amd64. Fixes bug #109429.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4223
2005-07-21 20:23:26 +00:00
Tom Hughes
c3e2f37aa6 Allow negative sizes for structure members in stabs. Fixed bug #109385.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4221
2005-07-21 11:49:24 +00:00
Tom Hughes
f8e2de1c61 Handle a 'd' stab that indicates a file in pascal. Fixes bug #89914.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4220
2005-07-20 17:48:18 +00:00
Tom Hughes
2e51dbbe3c Make VG_(kill_self) use kill to send the signal, not tkill, as we are
sending it to the whole process not a single thread.

This routine is only used when we absolutely want to terminate
valgrind and as things stand it fails if called from anything other
than the initial thread as it winds up sending the signal to the main
thread only and that typically doesn't even exist any more so we
fall through and panic.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4219
2005-07-20 16:05:28 +00:00
Tom Hughes
e1f2161fe1 Handle stabs builtin type -30 (wide characters, 16 bit unsigned).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4218
2005-07-20 13:56:22 +00:00
Tom Hughes
f67d1dc95e Document different argument order for clone on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4217
2005-07-20 13:49:55 +00:00
Nicholas Nethercote
e71b6dab8b Move config.h inclusion from pub_tool_basics.h to pub_core_basics.h so it's
not seen by external tools.  This was requested by Josef W.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4215
2005-07-20 13:18:23 +00:00
Tom Hughes
5c41eefec8 The timeout argument to rt_sigtimedwait is in the third argument not
the fourth, plus linux allows it to be null.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4214
2005-07-20 09:32:35 +00:00
Tom Hughes
5e7b1d48c7 More system call fixups.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4213
2005-07-20 09:24:04 +00:00
Tom Hughes
87e835de1f Yet more amd64 system calls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4212
2005-07-20 08:46:50 +00:00
Nicholas Nethercote
6be8d53922 This commit reduces the overhead of each heap allocation done by
Valgrind's allocator, by overlapping the redzones (used when blocks
are in-use) with the prev/next ptrs (used when they are free).
This reduces the overhead for a heap block allocated by the core from
32B to 16B on 32 bit machines, and from 48B to 32B on 64 bit machines.

The only conceivable downside of this is that on 64 bit machines, if
the client frees a block and then writes past the start/end of it,
it will corrupt the metadata after only 8 bytes of overwriting, rather than
16 bytes.  Memcheck will have squealed to kingdom come by this time anyway.
(This won't happen on 32 bit machines because the overhead hasn't changed
for client blocks as allocated by Memcheck on 32 bit machines.)

I also tweaked the access functions.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4208
2005-07-20 04:12:41 +00:00
Nicholas Nethercote
ff19526f03 Recategorise some options in the usage message.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4206
2005-07-20 03:03:28 +00:00
Nicholas Nethercote
72e156258a Reinstate stack trace printing on assertion failures. It's terrible
for the module dependency graph, but it's very useful.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4205
2005-07-20 02:41:31 +00:00
Tom Hughes
6e11d22b74 Fix mistaken comments.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4202
2005-07-19 23:01:56 +00:00
Tom Hughes
dd1e9ed254 Pass clone arguments in the correct order when doing a fork style
clone. This should fix bug #109358.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4201
2005-07-19 22:59:47 +00:00
Tom Hughes
01962be11b Enable sched_yield on amd64. Fixes bug #109362.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4200
2005-07-19 22:48:04 +00:00
Tom Hughes
d1d9783242 Return success when get_thread_area succeeds.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4199
2005-07-19 22:44:33 +00:00
Tom Hughes
a658d8c40f Support ARCH_GET_FS with arch_prctl on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4197
2005-07-19 22:35:58 +00:00
Nicholas Nethercote
61448c507d We have a nice little collection of text files describing various high
level things.  But they're all over the place.  This commits moves
them all to the new docs/internals/ directory, and gives them 
a consistent naming scheme.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4196
2005-07-19 21:46:19 +00:00
Tom Hughes
16a1ee9dce Make attaching a debugger work on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4193
2005-07-19 18:19:48 +00:00
Tom Hughes
0d957fbca0 Enable some more system calls on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4191
2005-07-19 16:05:49 +00:00
Tom Hughes
dc892caf68 Fix compiler warning.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4190
2005-07-19 15:28:31 +00:00
Tom Hughes
24de900c15 Enable setuid and setgid on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4189
2005-07-19 15:26:33 +00:00
Julian Seward
ae8310aa86 Use %t rather than %s in some places for constructing XML output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4188
2005-07-19 15:00:25 +00:00
Julian Seward
59bfcbf43c New command line option: --xml-user-comment=XMLTEXT, which allows
copying of arbitrary bits of XML text to the XML output.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4186
2005-07-19 14:18:56 +00:00
Julian Seward
7bd64eb411 New printf format specifier %t, which is like %s but escapes
XML-unfriendly chars and thereby helps in the construction of valid
XML output.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4185
2005-07-19 14:17:37 +00:00
Tom Hughes
bd8021aa26 Fix the mmap2 pre-handler to avoid corrupting the arguments when
it fails with ENOMEM due to a lack of memory.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4184
2005-07-19 13:04:04 +00:00
Julian Seward
7cdf76a10b Show Valgrind's args too in the XML output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4183
2005-07-19 12:39:11 +00:00
Julian Seward
038f2032c8 Add time stamps to XML START/FINISH indications.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4182
2005-07-19 12:17:51 +00:00
Julian Seward
dbca335ced Move the code for generating a human-readable time string into its own
function.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4181
2005-07-19 12:17:05 +00:00
Julian Seward
89b76a72f4 New command line option: --log-file-qualifier=VAR. When specified,
the contents of environment variable VAR (viz, $VAR) are incorporated
into logfile names.  This makes it easy to incorporate environmental
information into logfile names.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4180
2005-07-19 11:25:02 +00:00