MCPcopy Create free account
hub / github.com/axhlzy/FridaDebugger / getStackPointer

Function getStackPointer

agent/stack.ts:150–160  ·  view source on GitHub ↗
(context: CpuContext)

Source from the content-addressed store, hash-verified

148}
149
150function getStackPointer(context: CpuContext): NativePointer | null {
151 if (Process.arch === "arm64") {
152 return (context as Arm64CpuContext).sp;
153 }
154
155 if (Process.arch === "arm") {
156 return (context as ArmCpuContext).sp;
157 }
158
159 return context.sp;
160}
161
162function getFramePointer(context: CpuContext): NativePointer | null {
163 if (Process.arch === "arm64") {

Callers 1

logStackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected