Tom Hughes
9631a40eb7
Make sure we have enough space for the name if the path is empty. Patch
...
from Jakub Jelinek to fix bug #110656 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4386
2005-08-12 19:21:29 +00:00
Nicholas Nethercote
7f8c275c59
Give variable a better name.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4378
2005-08-11 00:06:36 +00:00
Cerion Armour-Brown
429d94fc43
fixed endianness bug for ppc xml output
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4358
2005-08-09 22:34:18 +00:00
Julian Seward
5e41090846
Print all XML output with a consistent nesting style, so as to make it
...
easier to compare it to the output of other XML generating tools.
Regtest expected-output changes to follow.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4356
2005-08-09 22:03:08 +00:00
Julian Seward
ed702a8db4
When printing error counts, print the <unique> in the same way that
...
it is in the error itself. Otherwise it's totally useless :-)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4355
2005-08-09 21:50:18 +00:00
Tom Hughes
606bd75025
Fix system call name in error messages.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4346
2005-08-08 16:50:16 +00:00
Julian Seward
782965122b
Make Valgrind work again on x86 CPUs which don't have SSE. This is a
...
bit of an ugly hack (see comments in m_machine.c) which is suitable
for merging into 3_0_BRANCH, but should be cleaned up once that's
done.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4339
2005-08-08 00:35:46 +00:00
Tom Hughes
ebe67e6134
Check the fields of the new structure passed to sigaction individually
...
and only check sa_restorer if the SA_RESTORER flag is set.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4338
2005-08-07 15:16:59 +00:00
Julian Seward
d2b672b169
Valgrind-side stub for dealing with x86 sysenter artefacts from Vex.
...
Does not do anything yet.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4337
2005-08-07 14:49:27 +00:00
Tom Hughes
d7f4ee0a3c
Enable the inotify system calls on amd64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4336
2005-08-06 18:07:17 +00:00
Tom Hughes
c2d4c4951a
Resync system call lists with the 2.6.13-rc5 kernel source.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4335
2005-08-06 18:04:14 +00:00
Tom Hughes
5636f53a8c
If the pre-handler for the execve system call fails to state the file
...
being executed then propagate the error from the stat instead of just
return ENOACCES all the time. Fixes bug #110208 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4330
2005-08-05 07:46:32 +00:00
Tom Hughes
3f28625849
Implement the waitid system call. Fixes bug #110202 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4329
2005-08-05 07:32:04 +00:00
Tom Hughes
888f6e02cf
Allow a NULL second argument to clock_getres. Fixes bug #110203 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4328
2005-08-05 07:22:00 +00:00
Julian Seward
ec55a5e7bb
Fix up do_syscall_clone_ppc32_linux. Seems to improve thread exiting.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4327
2005-08-05 02:15:18 +00:00
Julian Seward
a881c6d894
ppc32-linux: clear reservation before running thread; see attached
...
comment for details.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4326
2005-08-05 00:25:11 +00:00
Julian Seward
ce962acecb
ppc32-linux: implement a bunch more syscalls, and also fix up clone
...
handling enough so that threads can successfuly be started.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4325
2005-08-05 00:10:11 +00:00
Julian Seward
9cbf8c802b
ppc32-linux: bring a bunch more syscalls into circulation
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4324
2005-08-05 00:06:46 +00:00
Julian Seward
b07d3b8200
ppc32-linux only: HACK: for now, mess with the auxv handed to the
...
client so as to not claim that the CPU supports Altivec. This is a
partially-successful hack to try and dissuade glibc and its minions
from doing Altivec insns.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4323
2005-08-04 23:52:21 +00:00
Nicholas Nethercote
05cf8f1611
Replace out-of-date email address.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4322
2005-08-04 19:26:54 +00:00
Julian Seward
47f18d4e44
Double static limits for safety.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4307
2005-08-02 15:30:08 +00:00
Julian Seward
d71b68c6a3
"Fix" (kludge) highly obscure bug in flag settings for growdown stacks
...
which manifested itself as unreliable behaviour with
--smc-check=stack. The accompanying comment explains.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4305
2005-08-02 13:35:21 +00:00
Julian Seward
7b67a1249d
Update this-cpu-not-supported message.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4304
2005-08-01 23:41:20 +00:00
Julian Seward
2288978427
When identifying stacks so as to decide whether or not to make a self
...
checking translation in the case --smc-check=stack (the default),
don't use SF_GROWDOWN as an indication of stackness, since that only
is set for the main stack. Instead establish whether code is being
taken from a stack by seeing if the requesting thread's stack pointer
points into the same area that the translation is being taken from.
This makes trampolining work even for threaded programs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4303
2005-08-01 23:25:55 +00:00
Julian Seward
ec3da192ee
Don't show CFI reader warnings without -v. This is intended to hide
...
Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading
which I know is not a good fix, but I don't want to get into messing
with the CFI reader this close to 3.0, and the appearance of this
message causes many regtests to fail on some systems.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4299
2005-08-01 14:12:17 +00:00
Julian Seward
08184e8ea4
Enable sys_fchmod and sys_fchown.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4296
2005-07-29 22:01:19 +00:00
Tom Hughes
4f8e0cb52b
Take the address of the ifr_index member when testing if it is defined
...
before an SIOCGIFNAME ioctl.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4295
2005-07-29 18:42:22 +00:00
Tom Hughes
011cbec76a
A static const variable must have a constant initialiser, so remove the
...
static qualifier from those variables with a non-constant initialiser.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4294
2005-07-29 18:33:19 +00:00
Julian Seward
6071b864a9
Handle a failure case more gracefully.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4292
2005-07-29 08:51:34 +00:00
Tom Hughes
cca571d1c9
Handle the TIOCMGET ioctl.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4291
2005-07-28 16:26:34 +00:00
Tom Hughes
1dc053205f
Handle the HDIO_GETGEO ioctl. Secondary problem found from bug #109780 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4290
2005-07-28 16:13:42 +00:00
Tom Hughes
fd2217006c
Handle a number of additional block device ioctls. Fixes bug #109780 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4288
2005-07-28 16:08:09 +00:00
Tom Hughes
89af41680a
Move (commented out) call to VG_(tm_thread_switchto) to VG_(set_running) so
...
that it is always called when a new thread starts running. Add in a direct
call to VG_TRACK to issue a thread_run event at the same place until thread
modelling is working again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4287
2005-07-27 23:04:28 +00:00
Tom Hughes
b2f3925a5f
Handle the fadvise64 system calls correctly on 32 bit platforms.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4285
2005-07-27 22:57:18 +00:00
Julian Seward
0965fe7cb0
Make VG_(clo_vex_control) tool-visible so tools can control how
...
aggressive Vex is, if they need to do that.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4276
2005-07-26 23:47:00 +00:00
Julian Seward
1518bf86ab
If --log-file-qualifier= is set, and we're logging to a file or
...
socket, emit the qualifier and its current value in the plain text
output as well as in the XML. (Ashley Pittman).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4275
2005-07-26 23:43:26 +00:00
Julian Seward
88812ea1fc
Make VG_(discard_translations) 64-bit clean. As JosefW points out, it
...
doesn't make much sense to have a 64-bit base address but only a
32-bit length.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4273
2005-07-26 23:04:25 +00:00
Julian Seward
d531fd3093
Fix a very suspicious-looking bug in the translation-discard stuff.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4272
2005-07-26 22:54:55 +00:00
Julian Seward
b101826494
Makefile stuff, partly from Tom, which uses the SVN-externall'd VEX
...
tree a bit better. Also, fixes to make 'make dist' include into the
final tarball a minimal but workable subset of the stuff in the VEX
directory.
Note, you must do 'make' or 'make install' before 'make dist' since
otherwise VEX/priv/main/vex_svnversion.h will not exist.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4266
2005-07-26 10:42:57 +00:00
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