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

Method getStackPointer

agent/debugger.ts:858–868  ·  view source on GitHub ↗
(context: CpuContext)

Source from the content-addressed store, hash-verified

856 }
857
858 private getStackPointer(context: CpuContext): NativePointer | null {
859 if (Process.arch === "arm64") {
860 return (context as Arm64CpuContext).sp;
861 }
862
863 if (Process.arch === "arm") {
864 return (context as ArmCpuContext).sp;
865 }
866
867 return context.sp;
868 }
869
870 private normalizeCount(value: number, fallback: number): number {
871 if (!Number.isFinite(value)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected