Skip to content

Commit 2e9b179

Browse files
committed
use is_thumb instead
1 parent e5b1552 commit 2e9b179

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qiling/debugger/qdb/arch/arch_arm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def thumb_mode(self) -> bool:
6767
helper function for checking thumb mode
6868
"""
6969

70-
return self.ql.arch.regs.cpsr & 0x00000020 != 0
70+
return self.ql.arch.is_thumb
71+
7172

7273
def read_insn(self, address: int) -> bytes:
7374
"""

0 commit comments

Comments
 (0)