I want to debug a "big" C code, and use valgrind, in particular the tool memcheck. The output is very long, due to the size of the program, and I only want to focus on some function and relative subfunctions of the program. Is it possible in valgrind only to analyze certain function and subfunctions (up to some depth level)?
Thanks
Valgrind must supervise the process from the start; it is not possible to attach it to already running process (or, equivalently, to ignore the process until some point in execution, then start emulating/checking).
The reverse is not true -- you can "detach" valgrind after some number of instructions; but I am guessing that's not what you want.
Please note that:
--undef-value-errors=no