about summary refs log tree commit diff stats
path: root/example/ida/graph_ir.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/ida/graph_ir.py')
-rw-r--r--example/ida/graph_ir.py6
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,