GP-2072 added CallotherCensusScript

This commit is contained in:
James
2022-05-26 16:05:48 +00:00
parent 2474de38d0
commit a540cbe0f0
2 changed files with 95 additions and 5 deletions
@@ -13,8 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generate WARNING Bookmarks CallOther PcodeOp's within an instructions Pcode.
// This is useful to find PsuedoOps that need to be implemented to yield better
// Generate WARNING Bookmarks at instructions whose pcode contains a CALLOTHER op.
// This is useful to find PseudoOps that need to be implemented to yield better
// emulation or decompilation.
// @category sleigh
@@ -63,8 +63,9 @@ public class MarkCallOtherPcode extends GhidraScript {
}
private void markCallOtherPcode(Instruction instr, PcodeOp op) {
currentProgram.getBookmarkManager().setBookmark(instr.getAddress(), BookmarkType.WARNING,
"CallOther PcodeOp",
currentProgram.getLanguage().getUserDefinedOpName((int) op.getInput(0).getOffset()));
currentProgram.getBookmarkManager()
.setBookmark(instr.getAddress(), BookmarkType.WARNING, "CallOther PcodeOp",
currentProgram.getLanguage()
.getUserDefinedOpName((int) op.getInput(0).getOffset()));
}
}