On Tuesday 26 February 2008, Konstantin Serebryany wrote: > On Tue, Feb 26, 2008 at 12:58 PM, Josef Weidendorfer > <[EMAIL PROTECTED]> wrote: > > On Tuesday 26 February 2008, Konstantin Serebryany wrote: > > > Does valgrind instrument each routine completely before starting > > > another routine (I beg my pardon for my ignorance here). > > > Why is this needed? > > Consider we have function FOO and BAR. (and for simplicity FOO calls BAR) > We want to instrument everything in FOO and not instrument BAR. > > We enter FOO for the first time and instrument it's first superblock. > Than we enter BAR and do not instrument it. > Than we exit BAR and we are in FOO again, and we need to instrument a > new portion of FOO, which is not the first in FOO. > So, 'check if a given instruction is the first of a function according > to debug information' is not sufficient. Do I miss something?
You can always request the function any instruction is part of at instrumentation time. The check whether it is the first is about catching the function entry event. Josef ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Valgrind-developers mailing list Valgrind-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-developers