> I'd like to see the result of the operation Add32(Get::I32(0), Get::I32(6).

You should note that "Add32(Get::I32(0), Get::I32(6))" is not in 
the flat-SSA form that will be sent to your tool.  To see the
actual input to your instrumentation function, use
--trace-flags=01000000 --trace-notbelow=0.

Learn to use --trace-flags and --trace-notbelow; they are 
your friends.

What you will see is something like "t3 = Add32(t99,t88)" 

Anyway: to see the value of t3 you need to construct
IRExpr_RdTmp(t3)  (where the arg to IRExpr_RdTmp is the IRTemp
which is t3).

J


>
> For the temporary which holds some information associated with t3 i've
> build up a shadow manager (hope it is not useless !).
>
> Thanks
>
> Olivier
>
> Julian Seward a écrit :
> >> Unhappily, i fall in trouble shadowing temporaries. For instance, if i
> >> want to trace an addition, how to obtain the content of t3 =
> >> Add32(Get::I32(0), Get::I32(6)), whithout manually shadowing all temps
> >> used in the SB ?
> >
> > Not sure what you are asking.  You want to see the value of t3, or
> > you want a new temporary which holds some information associated
> > with t3, or something different?
> >
> > J

-------------------------------------------------------------------------
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

Reply via email to