Commits

Victor Stinner committed 613417e

ARM: set instruction and stack pointer registers

  • Participants
  • Parent commits 610608c

Comments (0)

Files changed (1)

File ptrace/binding/cpu.py

-from ptrace.cpu_info import CPU_POWERPC, CPU_INTEL, CPU_X86_64, CPU_I386
+from ptrace.cpu_info import (
+    CPU_POWERPC, CPU_INTEL, CPU_X86_64, CPU_I386, CPU_ARM)
 
 CPU_INSTR_POINTER = None
 CPU_STACK_POINTER = None
     CPU_INSTR_POINTER = "nip"
     # FIXME: Is it the right register?
     CPU_STACK_POINTER = 'gpr1'
+elif CPU_ARM:
+    CPU_INSTR_POINTER = 'r15'
+    CPU_STACK_POINTER = 'r14'
 elif CPU_X86_64:
     CPU_INSTR_POINTER = "rip"
     CPU_STACK_POINTER = "rsp"