Recently, I use the Mono.cecil to modify another program.My aim is to instrumentate that program, so I add some new instructions to each of the original program's instructions to show the program's execution trace. I use the ILProcessor.InsertBefore() to do such thing. At the begining, it works well, BUT, when it comes to br.s instructions, for example, the original instructon is: IL_0005: br.s IL_0026 after insert some new instruction, it should point the the destination IL_0219, but actually it point to a wrong place. Is it a bug or I takes some mistake? Wish your precious discussion.
-- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
