(slot: NativePointer, value: NativePointer, markers: StackMarkers)
| 118 | } |
| 119 | |
| 120 | function 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 | |
| 138 | function getLinkRegister(context: CpuContext): NativePointer | null { |
| 139 | if (Process.arch === "arm64") { |
no test coverage detected