]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Make ptrace-based launchers able to handle --help, --version etc.
authorJulian Seward <jseward@acm.org>
Mon, 19 Mar 2007 18:38:55 +0000 (18:38 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 19 Mar 2007 18:38:55 +0000 (18:38 +0000)
commit14b9b8b8d2e043b8c689c1ff053989c86b6686bf
treeb0522c52614b7cca742b0272069a3e15fbf1d62c
parenta64b0bfb0cb465e409aec7d5ae0ebe2306fc2081
Make ptrace-based launchers able to handle --help, --version etc.
Problem is that --help etc are handled by the tool exe.  But a
ptrace-based launch scheme can't run "no program" if the user just
types "valgrind --help" because the launcher depends on starting the
client first and only then attaching valgrind to it using ptrace.  So
instead provide a dummy do-nothing program to run when no program is
specified.  m_main notices this and acts as if there really had been
no program specified.

This has no effect at all on Linux/ELF program launching.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6653
coregrind/Makefile.am
coregrind/launcher-aix5.c
coregrind/m_initimg/initimg-aix5.c
coregrind/m_main.c
coregrind/no_op_client_for_valgrind.c [new file with mode: 0644]