diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2020-06-10 12:14:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-10 12:14:34 +0200 |
| commit | 030d19ae958b40e52dd8dfe4475fc181eae1480e (patch) | |
| tree | c75f089b9860588342492b1068ba0bc3c26dea85 /example/ida/graph_ir.py | |
| parent | dd2fd9c8e424463591782472192627cfdbe397f5 (diff) | |
| parent | ce517ae68975e6f39c11e3b62d68548bc85b6f6b (diff) | |
| download | focaccia-miasm-030d19ae958b40e52dd8dfe4475fc181eae1480e.tar.gz focaccia-miasm-030d19ae958b40e52dd8dfe4475fc181eae1480e.zip | |
Merge pull request #1185 from nofiv/IDAPython74
Ported IDAPython code to the 7.4 version
Diffstat (limited to 'example/ida/graph_ir.py')
| -rw-r--r-- | example/ida/graph_ir.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ida/graph_ir.py b/example/ida/graph_ir.py index 082fabd7..7e8c616f 100644 --- a/example/ida/graph_ir.py +++ b/example/ida/graph_ir.py @@ -196,7 +196,7 @@ def build_graph(start_addr, type_graph, simplify=False, dontmodstack=True, loadi if verbose: print("Arch", dis_engine) - fname = idc.GetInputFile() + fname = idc.get_root_filename() if verbose: print(fname) @@ -330,8 +330,8 @@ def function_graph_ir(): if not ret: return - func = ida_funcs.get_func(idc.ScreenEA()) - func_addr = func.startEA + func = ida_funcs.get_func(idc.get_screen_ea()) + func_addr = func.start_ea build_graph( func_addr, |