From: Nicholas Nethercote Date: Mon, 1 Jun 2009 23:01:38 +0000 (+0000) Subject: Add an FAQ from the trunk. X-Git-Tag: svn/VALGRIND_3_4_1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bc08579c6811acb4056616398f8fad3c4655d88;p=thirdparty%2Fvalgrind.git Add an FAQ from the trunk. git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_4_BRANCH@10193 --- diff --git a/docs/xml/FAQ.xml b/docs/xml/FAQ.xml index 5115265a4c..f06060f733 100644 --- a/docs/xml/FAQ.xml +++ b/docs/xml/FAQ.xml @@ -575,6 +575,29 @@ int main(void) + + + Is it possible to attach Valgrind to a program that is already + running? + + + No. The environment that Valgrind provides for running programs + is significantly different to that for normal programs, e.g. due to + different layout of memory. Therefore Valgrind has to have full control + from the very start. + + It is possible to achieve something like this by running your + program without any instrumentation (which involves a slow-down of about + 5x, less than that of most tools), and then adding instrumentation once + you get to a point of interest. Support for this must be provided by + the tool, however, and Callgrind is the only tool that currently has + such support. See the instructions on the + callgrind_control program for details. + + + + +