diff options
| author | nofiv <41523109+nofiv@users.noreply.github.com> | 2020-04-15 16:15:04 +0200 |
|---|---|---|
| committer | nofiv <41523109+nofiv@users.noreply.github.com> | 2020-04-16 00:47:24 +0200 |
| commit | ce517ae68975e6f39c11e3b62d68548bc85b6f6b (patch) | |
| tree | 1a37e191af67d3f4659be99d92a90aecda3c5f4a /example/ida/graph_ir.py | |
| parent | 6b79e8c5ab820222e440d4b96d73dd1258630eb8 (diff) | |
| download | miasm-ce517ae68975e6f39c11e3b62d68548bc85b6f6b.tar.gz miasm-ce517ae68975e6f39c11e3b62d68548bc85b6f6b.zip | |
IDAPython 7.4 porting
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, |