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

Function formatMarkers

agent/stack.ts:120–136  ·  view source on GitHub ↗
(slot: NativePointer, value: NativePointer, markers: StackMarkers)

Source from the content-addressed store, hash-verified

118}
119
120function formatMarkers(slot: NativePointer, value: NativePointer, markers: StackMarkers): string {
121 const labels: string[] = [];
122 if (slot.equals(markers.sp)) {
123 labels.push("slot=sp");
124 }
125 if (markers.fp !== null && slot.equals(markers.fp)) {
126 labels.push("slot=fp");
127 }
128 if (value.equals(markers.pc)) {
129 labels.push("value=pc");
130 }
131 if (markers.lr !== null && value.equals(markers.lr)) {
132 labels.push("value=lr");
133 }
134
135 return labels.length === 0 ? "" : colorize(`<${labels.join(",")}>`, "yellow");
136}
137
138function getLinkRegister(context: CpuContext): NativePointer | null {
139 if (Process.arch === "arm64") {

Callers 1

logStackSlotFunction · 0.85

Calls 1

colorizeFunction · 0.85

Tested by

no test coverage detected