File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -166,13 +166,20 @@ def setupGlobals(uiactioncontext, uicontext):
166
166
active_il_function = uiactioncontext .function .hlil_if_available .ssa_form
167
167
168
168
if active_il_function :
169
+ il_start = view .getSelectionStartILInstructionIndex ()
170
+
169
171
snippetGlobals ['current_il_function' ] = active_il_function
170
172
snippetGlobals ['current_il_instruction' ] = active_il_function [active_il_index ]
171
173
snippetGlobals ["current_il_basic_block" ] = active_il_function [active_il_index ].il_basic_block
174
+ snippetGlobals ['current_il_instructions' ] = (active_il_function [i ] for i in range (
175
+ min (il_start , active_il_index ),
176
+ max (il_start , active_il_index ) + 1 )
177
+ )
172
178
else :
173
179
snippetGlobals ['current_il_function' ] = None
174
180
snippetGlobals ['current_il_instruction' ] = None
175
181
snippetGlobals ["current_il_basic_block" ] = None
182
+ snippetGlobals ['current_il_instructions' ] = None
176
183
177
184
var = None
178
185
if uiactioncontext is not None :
You can’t perform that action at this time.
0 commit comments