[BCEL-info]Replacing instructions.
Brought to you by:
dahm
|
From: Graham T. <Gra...@ci...> - 2003-03-17 20:14:50
|
Hi, I would like to know the correct way to replace an instruction several times. Ideally I would be able to take a class and scan each of it methods in turn for a matching instruction, e.g. IF_ICMPLE. When found, this instruction would be replaced by, say IF_ICMPLT, and dump the class out to file. Then replace it again by, say IF_ICMPGE, dump that out to file, etc, until finally being reset to the original IF_ICMPLE, before going on to look for another match. All my efforts so far have ended in exceptions and headache!! Can anyone help? Cheers, Graham. |