()
| 83 | } |
| 84 | |
| 85 | stepIn(): void { |
| 86 | const session = this.getPausedSession(); |
| 87 | if (session === null || session.context === null) { |
| 88 | return; |
| 89 | } |
| 90 | |
| 91 | const lr = this.getLinkRegister(session.context); |
| 92 | if (lr === null) { |
| 93 | log("[stalker] step-in requires lr", "yellow"); |
| 94 | return; |
| 95 | } |
| 96 | |
| 97 | if (!this.isCallInstruction(session.instruction)) { |
| 98 | log("[stalker] current instruction is not call-like; step-in falls back to s(1)", "yellow"); |
| 99 | this.step(1); |
| 100 | return; |
| 101 | } |
| 102 | |
| 103 | session.runMode = "step-in"; |
| 104 | session.baseLr = lr; |
| 105 | session.targetLr = null; |
| 106 | session.targetPc = null; |
| 107 | session.autoBudget = MAX_SILENT_AUTO_STEPS; |
| 108 | session.autoStopReason = null; |
| 109 | log(`[stalker] step-in thread ${session.threadId} base-lr=${lr}`, "green"); |
| 110 | session.semaphore.post(); |
| 111 | } |
| 112 | |
| 113 | stepOut(): void { |
| 114 | const session = this.getPausedSession(); |
no test coverage detected