From 6cd0cdec5042f57fe28937c28852aa27c0d2aaf6 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sat, 30 Apr 2022 09:24:36 -0400 Subject: Add debug report alias. --- python/function.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python') diff --git a/python/function.py b/python/function.py index 9f63b650..40b9901d 100644 --- a/python/function.py +++ b/python/function.py @@ -3010,6 +3010,15 @@ class Function: :param str name: Name of the debug report :rtype: None """ + debug_report_alias = { + "stack" : "stack_adjust_graph", + "mlil" : "mlil_translator", + "hlil" : "high_level_il" + } + + if name in debug_report_alias: + name = debug_report_alias[name] + core.BNRequestFunctionDebugReport(self.handle, name) self.view.update_analysis() -- cgit v1.3.1