citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit fe983673427bbcd60923999b0fdb79299c929327
parent da9289c9f28c655ecb05ec21c601c2e17785515f
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Sat,  9 Apr 2016 22:26:05 -0600

man: add FILES and ENVIRONMENT sections to citrun_instrument

Diffstat:
Msrc/citrun_instrument.1 | 32+++++++++++++++++++++++++++-----
1 file changed, 27 insertions(+), 5 deletions(-)

diff --git a/src/citrun_instrument.1 b/src/citrun_instrument.1 @@ -3,18 +3,40 @@ .Os .Sh NAME .Nm citrun_instrument -.Nd instrument source code +.Nd modify command line and instrument source .Sh SYNOPSIS .Nm .Sh DESCRIPTION .Nm is not meant to be invoked directly. Rather it is meant to be called from -compiler named symlinks that are put on the $PATH by +compiler named symlinks that are put on the PATH by .Xr citrun_wrap 1 . +This hook allows +.Nm +to run before the native compiler command, reading and modifying arguments it +chooses. +.Pp +Instrumentation will be attempted on any source files found on the command line. +When instrumentation is successful original source file paths are switched with +instrumented ones. .Pp -If -.Xr citrun_gl 1 -is running any applications instrumented by this utility will try connecting to it. +When application link attempts are detected link flags for the citrun runtime are +inserted into the command line. +.Sh ENVIRONMENT +.Bl -tag -width Ds +.It Ev CITRUN_PATH +Location where compiler named symlinks are installed. +.It Ev PATH +Must contain +.Ev CITRUN_PATH . +.Sh FILES +.Bl -tag -width Ds +.It Pa LAST_NODE +Last instrumented symbol name. Can be deleted after successfully linking an +instrumented application. +.El +.Sh EXIT STATUS +.Ex -std .Sh SEE ALSO .Xr citrun_gl 1 , .Xr citrun_wrap 1