diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2024-10-11 21:39:52 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2024-10-21 13:56:57 -0400 |
| commit | faaf191349e170403273c0496df24c65a3536f34 (patch) | |
| tree | 66e2f7a6d2ef67d321f29cedd96a7692b35d73b0 /python/scriptingprovider.py | |
| parent | d8e3001e535fad178c621ff07418f81f25123dc4 (diff) | |
Allow `current_il_instruction` to work in Pseudo C (or any high level language)
Diffstat (limited to 'python/scriptingprovider.py')
| -rw-r--r-- | python/scriptingprovider.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py index 4b76939f..3c673542 100644 --- a/python/scriptingprovider.py +++ b/python/scriptingprovider.py @@ -1823,7 +1823,7 @@ def _get_current_il_function(instance: PythonScriptingInstance): return instance.interpreter.locals["current_mlil"] elif ilType.view_type == FunctionGraphType.MediumLevelILSSAFormFunctionGraph: return instance.interpreter.locals["current_mlil_ssa"] - elif ilType.view_type == FunctionGraphType.HighLevelILFunctionGraph: + elif ilType.view_type == FunctionGraphType.HighLevelILFunctionGraph or ilType.view_type == FunctionGraphType.HighLevelLanguageRepresentationFunctionGraph: return instance.interpreter.locals["current_hlil"] elif ilType.view_type == FunctionGraphType.HighLevelILSSAFormFunctionGraph: return instance.interpreter.locals["current_hlil_ssa"] |
