MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / find_instr

Function find_instr

python/examples/angr_plugin.py:113–121  ·  view source on GitHub ↗
(bv, addr)

Source from the content-addressed store, hash-verified

111
112
113def find_instr(bv, addr):
114 # Highlight the instruction in green
115 blocks = bv.get_basic_blocks_at(addr)
116 for block in blocks:
117 block.set_auto_highlight(HighlightColor(HighlightStandardColor.GreenHighlightColor, alpha=128))
118 block.function.set_auto_instr_highlight(addr, HighlightStandardColor.GreenHighlightColor)
119
120 # Add the instruction to the list associated with the current view
121 bv.session_data.angr_find.add(addr)
122
123
124def avoid_instr(bv, addr):

Callers

nothing calls this directly

Calls 5

HighlightColorClass · 0.90
get_basic_blocks_atMethod · 0.80
set_auto_highlightMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected