|
From: Felix R. <fe...@kn...> - 2017-08-21 13:51:24
|
Hi guys,
I think I have fixed it: I did not include the copy of bbIn->offsIP.
Thank you!
On 2017-08-21 14:55, Felix Rubio wrote:
> Hi everybody
>
> I am trying to make a simple pass-through tool, in which BB's are
> just copied. I am using valgrind 3.13.0, and this is the code I have
> in my tool. Can somebody give me a hand?
>
> Thank you!
> Felix
>
> static IRSB *my_instrument (VgCallbackClosure *closure, IRSB *bbIn,
> const VexGuestLayout *layout, const VexGuestExtents *vge, const
> VexArchInfo * vai, const IRType gWordTy, IRType hWordTy)
> {
> IRSB *bbOut = emptyIRSB ();
> bbOut->tyenv = deepCopyIRTypeEnv (bbIn->tyenv);
> bbOut->next = deepCopyIRExpr (bbIn->next);
> bbOut->jumpkind = bbIn->jumpkind;
>
> for (Int i = 0; i < bbIn->stmts_used; ++i)
> {
> IRStmt* const st = bbIn->stmts[i];
> addStmtToIRSB(bbOut, st);
> }
> return bbOut;
>
> }
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Valgrind-users mailing list
> Val...@li...
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
|