about summary refs log tree commit diff stats
path: root/example/ida/utils.py
diff options
context:
space:
mode:
authorVikas Gupta <vikasgupta.nit@gmail.com>2021-06-09 11:03:10 +0530
committerGitHub <noreply@github.com>2021-06-09 11:03:10 +0530
commit87ac6253819c0116ed4b9b0ecee6e27caa84b741 (patch)
tree09fa752e87616f61a5806c19d3cd849fbad2c410 /example/ida/utils.py
parentdd4bc5f7acfbfa510afc56d2e1d1f2e15e9bedfa (diff)
downloadfocaccia-miasm-87ac6253819c0116ed4b9b0ecee6e27caa84b741.tar.gz
focaccia-miasm-87ac6253819c0116ed4b9b0ecee6e27caa84b741.zip
Updated IDA API call for IDA 7.x
idc.GetReg API call is changed to idc.get_sreg 

https://hex-rays.com/products/ida/support/ida74_idapython_no_bc695_porting_guide.shtml
Diffstat (limited to 'example/ida/utils.py')
-rw-r--r--example/ida/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ida/utils.py b/example/ida/utils.py
index 245dd541..6d90c82c 100644
--- a/example/ida/utils.py
+++ b/example/ida/utils.py
@@ -46,7 +46,7 @@ def guess_machine(addr=None):
         # Default is arm
         is_armt = False
         if addr is not None:
-            t_reg = GetReg(addr, "T")
+            t_reg = get_sreg(addr, "T")
             is_armt = t_reg == 1
 
         is_bigendian = info.is_be()