|
From: <sv...@va...> - 2009-06-01 23:01:54
|
Author: njn Date: 2009-06-02 00:01:38 +0100 (Tue, 02 Jun 2009) New Revision: 10193 Log: Add an FAQ from the trunk. Modified: branches/VALGRIND_3_4_BRANCH/docs/xml/FAQ.xml Modified: branches/VALGRIND_3_4_BRANCH/docs/xml/FAQ.xml =================================================================== --- branches/VALGRIND_3_4_BRANCH/docs/xml/FAQ.xml 2009-06-01 18:50:27 UTC (rev 10192) +++ branches/VALGRIND_3_4_BRANCH/docs/xml/FAQ.xml 2009-06-01 23:01:38 UTC (rev 10193) @@ -575,6 +575,29 @@ </qandaentry> +<qandaentry id="faq.attach"> + <question id="q-attach"> + <para>Is it possible to attach Valgrind to a program that is already + running?</para> + </question> + <answer id="a-attach"> + <para>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.</para> + + <para>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 + <computeroutput>callgrind_control</computeroutput> program for details. + </para> + </answer> +</qandaentry> + + </qandadiv> |