|
From: <sv...@va...> - 2005-10-20 01:09:59
|
Author: sewardj
Date: 2005-10-20 02:09:57 +0100 (Thu, 20 Oct 2005)
New Revision: 4955
Log:
The Spin-Doctor arrives in Valgrind-Land: rename --weird-hacks=3D to
--simulation-hints=3D. Bwaha.
Modified:
trunk/coregrind/m_main.c
trunk/coregrind/m_options.c
trunk/coregrind/m_syswrap/syswrap-generic.c
trunk/coregrind/pub_core_options.h
trunk/docs/valgrind.1
trunk/docs/xml/manual-core.xml
trunk/memcheck/tests/weirdioctl.c
trunk/none/tests/cmdline1.stdout.exp
trunk/none/tests/cmdline2.stdout.exp
Modified: trunk/coregrind/m_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_main.c 2005-10-20 00:31:31 UTC (rev 4954)
+++ trunk/coregrind/m_main.c 2005-10-20 01:09:57 UTC (rev 4955)
@@ -883,8 +883,8 @@
"\n"
" uncommon user options for all Valgrind tools:\n"
" --run-libc-freeres=3Dno|yes free up glibc memory at exit? [yes]\n"
-" --weird-hacks=3Dhack1,hack2,... known hacks: lax-ioctls\n"
-" enable-outer [none]\n"
+" --simulation-hints=3Dhint1,hint2,... known hints:\n"
+" lax-ioctls, enable-outer [none]\n"
" --pointercheck=3Dno|yes enforce client address space limits [ye=
s]\n"
" --show-emwarns=3Dno|yes show warnings about emulation limits? [=
no]\n"
" --smc-check=3Dnone|stack|all checks for self-modifying code: none,=
\n"
@@ -1111,7 +1111,7 @@
else VG_BOOL_CLO(arg, "--model-pthreads", VG_(clo_model_pthreads=
))
=20
else VG_STR_CLO (arg, "--db-command", VG_(clo_db_command))
- else VG_STR_CLO (arg, "--weird-hacks", VG_(clo_weird_hacks))
+ else VG_STR_CLO (arg, "--simulation-hints", VG_(clo_simulation_hin=
ts))
=20
else VG_NUM_CLO (arg, "--dump-error", VG_(clo_dump_error))
else VG_NUM_CLO (arg, "--input-fd", VG_(clo_input_fd))
Modified: trunk/coregrind/m_options.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_options.c 2005-10-20 00:31:31 UTC (rev 4954)
+++ trunk/coregrind/m_options.c 2005-10-20 01:09:57 UTC (rev 4955)
@@ -67,7 +67,7 @@
Bool VG_(clo_trace_pthreads) =3D False;
Int VG_(clo_dump_error) =3D 0;
Int VG_(clo_backtrace_size) =3D 12;
-Char* VG_(clo_weird_hacks) =3D NULL;
+Char* VG_(clo_simulation_hints) =3D NULL;
Bool VG_(clo_run_libc_freeres) =3D True;
Bool VG_(clo_track_fds) =3D False;
Bool VG_(clo_show_below_main)=3D False;
Modified: trunk/coregrind/m_syswrap/syswrap-generic.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syswrap/syswrap-generic.c 2005-10-20 00:31:31 UTC (=
rev 4954)
+++ trunk/coregrind/m_syswrap/syswrap-generic.c 2005-10-20 01:09:57 UTC (=
rev 4955)
@@ -3857,7 +3857,7 @@
default: {
UInt dir =3D _VKI_IOC_DIR(ARG2);
UInt size =3D _VKI_IOC_SIZE(ARG2);
- if (VG_(strstr)(VG_(clo_weird_hacks), "lax-ioctls") !=3D NULL) {
+ if (VG_(strstr)(VG_(clo_simulation_hints), "lax-ioctls") !=3D NULL=
) {
/*=20
* Be very lax about ioctl handling; the only
* assumption is that the size is correct. Doesn't
@@ -4711,10 +4711,10 @@
PRE_REG_READ3(ssize_t, "write",
unsigned int, fd, const char *, buf, vki_size_t, count)=
;
/* check to see if it is allowed. If not, try for an exemption from
- --weird-hacks=3Denable-outer (used for self hosting). */
+ --simulation-hints=3Denable-outer (used for self hosting). */
ok =3D ML_(fd_allowed)(ARG1, "write", tid, False);
if (!ok && ARG1 =3D=3D 2/*stderr*/=20
- && VG_(strstr)(VG_(clo_weird_hacks),"enable-outer"))
+ && VG_(strstr)(VG_(clo_simulation_hints),"enable-outer"))
ok =3D True;
if (!ok)
SET_STATUS_Failure( VKI_EBADF );
Modified: trunk/coregrind/pub_core_options.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/pub_core_options.h 2005-10-20 00:31:31 UTC (rev 4954)
+++ trunk/coregrind/pub_core_options.h 2005-10-20 01:09:57 UTC (rev 4955)
@@ -122,14 +122,14 @@
/* Number of parents of a backtrace. Default: 8. */
extern Int VG_(clo_backtrace_size);
/* Engage miscellaneous weird hacks needed for some progs. */
-extern Char* VG_(clo_weird_hacks);
+extern Char* VG_(clo_simulation_hints);
=20
/* Track open file descriptors? */
extern Bool VG_(clo_track_fds);
=20
/* Should we run __libc_freeres at exit? Sometimes causes crashes.
Default: YES. Note this is subservient to VG_(needs).libc_freeres;
- if the latter says False, then the setting of VG_(clo_weird_hacks)
+ if the latter says False, then the setting of VG_(clo_run_libc_freere=
s)
is ignored. Ie if a tool says no, I don't want this to run, that
cannot be overridden from the command line. */
extern Bool VG_(clo_run_libc_freeres);
Modified: trunk/docs/valgrind.1
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/docs/valgrind.1 2005-10-20 00:31:31 UTC (rev 4954)
+++ trunk/docs/valgrind.1 2005-10-20 01:09:57 UTC (rev 4955)
@@ -521,11 +521,11 @@
=20
.TP
.B
---weird-hacks=3Dhack1,hack2,\.\.\.
+--simulation-hints=3Dhint1,hint2,\.\.\.
Pass miscellaneous hints to \fBvalgrind\fP which slightly modify the
simulated behaviour in nonstandard or dangerous ways, possibly to help
-the simulation of strange features. By default no hacks are enabled. Use
-with caution! Currently known hacks are:
+the simulation of strange features. By default no hints are enabled. Use
+with caution! Currently known hints are:
=20
.RS
.TP
Modified: trunk/docs/xml/manual-core.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/docs/xml/manual-core.xml 2005-10-20 00:31:31 UTC (rev 4954)
+++ trunk/docs/xml/manual-core.xml 2005-10-20 01:09:57 UTC (rev 4955)
@@ -1009,13 +1009,13 @@
<computeroutput>libc.so</computeroutput>.</para>
</listitem>
=20
- <listitem id=3D"weird_hacks">
- <para><computeroutput>--weird-hacks=3Dhack1,hack2,...</computeroutpu=
t></para>
+ <listitem id=3D"simulation_hints">
+ <para><computeroutput>--simulation-hints=3Dhint1,hint2,...</computer=
output></para>
<para>Pass miscellaneous hints to Valgrind which slightly
modify the simulated behaviour in nonstandard or dangerous
ways, possibly to help the simulation of strange features.
- By default no hacks are enabled. Use with caution!
- Currently known hacks are:</para>
+ By default no hints are enabled. Use with caution!
+ Currently known hints are:</para>
<itemizedlist>
<listitem><para><computeroutput>lax-ioctls</computeroutput></para>
<para>Be very lax about ioctl handling; the only assumption
Modified: trunk/memcheck/tests/weirdioctl.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/memcheck/tests/weirdioctl.c 2005-10-20 00:31:31 UTC (rev 4954)
+++ trunk/memcheck/tests/weirdioctl.c 2005-10-20 01:09:57 UTC (rev 4955)
@@ -1,9 +1,9 @@
=20
/* A program which sets a readable fd to have a timeout, and therefore
- needs --weird-hacks=3Dioctl-VTIME in order to run without
+ needs --simulation-hints=3Dioctl-VTIME in order to run without
blocking.=20
=20
- [Nb: no longer true, since the ioctl-VTIME weird hack no longer exist=
s]
+ [Nb: no longer true, since the ioctl-VTIME hack no longer exists]
*/
=20
#include <stdio.h>
Modified: trunk/none/tests/cmdline1.stdout.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/none/tests/cmdline1.stdout.exp 2005-10-20 00:31:31 UTC (rev 495=
4)
+++ trunk/none/tests/cmdline1.stdout.exp 2005-10-20 01:09:57 UTC (rev 495=
5)
@@ -18,8 +18,8 @@
=20
uncommon user options for all Valgrind tools:
--run-libc-freeres=3Dno|yes free up glibc memory at exit? [yes]
- --weird-hacks=3Dhack1,hack2,... known hacks: lax-ioctls
- enable-outer [none]
+ --simulation-hints=3Dhint1,hint2,... known hints:
+ lax-ioctls, enable-outer [none]
--pointercheck=3Dno|yes enforce client address space limits [yes=
]
--show-emwarns=3Dno|yes show warnings about emulation limits? [n=
o]
--smc-check=3Dnone|stack|all checks for self-modifying code: none,
Modified: trunk/none/tests/cmdline2.stdout.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/none/tests/cmdline2.stdout.exp 2005-10-20 00:31:31 UTC (rev 495=
4)
+++ trunk/none/tests/cmdline2.stdout.exp 2005-10-20 01:09:57 UTC (rev 495=
5)
@@ -18,8 +18,8 @@
=20
uncommon user options for all Valgrind tools:
--run-libc-freeres=3Dno|yes free up glibc memory at exit? [yes]
- --weird-hacks=3Dhack1,hack2,... known hacks: lax-ioctls
- enable-outer [none]
+ --simulation-hints=3Dhint1,hint2,... known hints:
+ lax-ioctls, enable-outer [none]
--pointercheck=3Dno|yes enforce client address space limits [yes=
]
--show-emwarns=3Dno|yes show warnings about emulation limits? [n=
o]
--smc-check=3Dnone|stack|all checks for self-modifying code: none,
|