(context: CpuContext)
| 136 | } |
| 137 | |
| 138 | function getLinkRegister(context: CpuContext): NativePointer | null { |
| 139 | if (Process.arch === "arm64") { |
| 140 | return (context as Arm64CpuContext).lr; |
| 141 | } |
| 142 | |
| 143 | if (Process.arch === "arm") { |
| 144 | return (context as ArmCpuContext).lr; |
| 145 | } |
| 146 | |
| 147 | return null; |
| 148 | } |
| 149 | |
| 150 | function getStackPointer(context: CpuContext): NativePointer | null { |
| 151 | if (Process.arch === "arm64") { |