From: Nicholas Nethercote Date: Sat, 12 Nov 2005 18:21:40 +0000 (+0000) Subject: Rename --simulation-hints as --sim-hints for brevity. X-Git-Tag: svn/VALGRIND_3_1_0~133 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d374f453055ec9e2cd5ff7e26178f012885a38b;p=thirdparty%2Fvalgrind.git Rename --simulation-hints as --sim-hints for brevity. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5099 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 3cb80f71c8..ca67c3dfba 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -879,7 +879,7 @@ static void usage_NORETURN ( Bool debug_help ) "\n" " uncommon user options for all Valgrind tools:\n" " --run-libc-freeres=no|yes free up glibc memory at exit? [yes]\n" -" --simulation-hints=hint1,hint2,... known hints:\n" +" --sim-hints=hint1,hint2,... known hints:\n" " lax-ioctls, enable-outer [none]\n" " --show-emwarns=no|yes show warnings about emulation limits? [no]\n" " --smc-check=none|stack|all checks for self-modifying code: none,\n" @@ -1109,7 +1109,7 @@ static Bool process_cmd_line_options( UInt* client_auxv, const char* toolname ) else VG_BOOL_CLO(arg, "--model-pthreads", VG_(clo_model_pthreads)) else VG_STR_CLO (arg, "--db-command", VG_(clo_db_command)) - else VG_STR_CLO (arg, "--simulation-hints", VG_(clo_simulation_hints)) + else VG_STR_CLO (arg, "--sim-hints", VG_(clo_sim_hints)) else VG_NUM_CLO (arg, "--dump-error", VG_(clo_dump_error)) else VG_NUM_CLO (arg, "--input-fd", VG_(clo_input_fd)) diff --git a/coregrind/m_options.c b/coregrind/m_options.c index 94d78fab36..e7555a5e5c 100644 --- a/coregrind/m_options.c +++ b/coregrind/m_options.c @@ -67,7 +67,7 @@ Bool VG_(clo_trace_sched) = False; Bool VG_(clo_trace_pthreads) = False; Int VG_(clo_dump_error) = 0; Int VG_(clo_backtrace_size) = 12; -Char* VG_(clo_simulation_hints) = NULL; +Char* VG_(clo_sim_hints) = NULL; Bool VG_(clo_run_libc_freeres) = True; Bool VG_(clo_track_fds) = False; Bool VG_(clo_show_below_main)= False; diff --git a/coregrind/m_syswrap/syswrap-generic.c b/coregrind/m_syswrap/syswrap-generic.c index af08fb29fd..06121746e5 100644 --- a/coregrind/m_syswrap/syswrap-generic.c +++ b/coregrind/m_syswrap/syswrap-generic.c @@ -3857,7 +3857,7 @@ PRE(sys_ioctl) default: { UInt dir = _VKI_IOC_DIR(ARG2); UInt size = _VKI_IOC_SIZE(ARG2); - if (VG_(strstr)(VG_(clo_simulation_hints), "lax-ioctls") != NULL) { + if (VG_(strstr)(VG_(clo_sim_hints), "lax-ioctls") != NULL) { /* * Be very lax about ioctl handling; the only * assumption is that the size is correct. Doesn't @@ -4763,10 +4763,10 @@ PRE(sys_write) 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 - --simulation-hints=enable-outer (used for self hosting). */ + --sim-hints=enable-outer (used for self hosting). */ ok = ML_(fd_allowed)(ARG1, "write", tid, False); if (!ok && ARG1 == 2/*stderr*/ - && VG_(strstr)(VG_(clo_simulation_hints),"enable-outer")) + && VG_(strstr)(VG_(clo_sim_hints),"enable-outer")) ok = True; if (!ok) SET_STATUS_Failure( VKI_EBADF ); diff --git a/coregrind/pub_core_options.h b/coregrind/pub_core_options.h index c51f8567dd..b685625904 100644 --- a/coregrind/pub_core_options.h +++ b/coregrind/pub_core_options.h @@ -122,7 +122,7 @@ extern Int VG_(clo_dump_error); /* 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_simulation_hints); +extern Char* VG_(clo_sim_hints); /* Track open file descriptors? */ extern Bool VG_(clo_track_fds); diff --git a/docs/valgrind.1 b/docs/valgrind.1 index f106382365..f74900535f 100644 --- a/docs/valgrind.1 +++ b/docs/valgrind.1 @@ -513,7 +513,7 @@ although at the cost of possibly falsely reporting space leaks in libc.so. .TP .B ---simulation-hints=hint1,hint2,\.\.\. +--sim-hints=hint1,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 hints are enabled. Use diff --git a/docs/xml/manual-core.xml b/docs/xml/manual-core.xml index dba9ba4db8..b8809a657f 100644 --- a/docs/xml/manual-core.xml +++ b/docs/xml/manual-core.xml @@ -1012,7 +1012,7 @@ Addrcheck), the following options apply. - --simulation-hints=hint1,hint2,... + --sim-hints=hint1,hint2,... Pass miscellaneous hints to Valgrind which slightly modify the simulated behaviour in nonstandard or dangerous ways, possibly to help the simulation of strange features. diff --git a/none/tests/cmdline1.stdout.exp b/none/tests/cmdline1.stdout.exp index 6263bdc7e7..dffd8509ea 100644 --- a/none/tests/cmdline1.stdout.exp +++ b/none/tests/cmdline1.stdout.exp @@ -18,7 +18,7 @@ usage: valgrind --tool= [options] prog-and-args uncommon user options for all Valgrind tools: --run-libc-freeres=no|yes free up glibc memory at exit? [yes] - --simulation-hints=hint1,hint2,... known hints: + --sim-hints=hint1,hint2,... known hints: lax-ioctls, enable-outer [none] --show-emwarns=no|yes show warnings about emulation limits? [no] --smc-check=none|stack|all checks for self-modifying code: none, diff --git a/none/tests/cmdline2.stdout.exp b/none/tests/cmdline2.stdout.exp index d686f75cce..d0cfa744ea 100644 --- a/none/tests/cmdline2.stdout.exp +++ b/none/tests/cmdline2.stdout.exp @@ -18,7 +18,7 @@ usage: valgrind --tool= [options] prog-and-args uncommon user options for all Valgrind tools: --run-libc-freeres=no|yes free up glibc memory at exit? [yes] - --simulation-hints=hint1,hint2,... known hints: + --sim-hints=hint1,hint2,... known hints: lax-ioctls, enable-outer [none] --show-emwarns=no|yes show warnings about emulation limits? [no] --smc-check=none|stack|all checks for self-modifying code: none,