(iterator: StalkerIterator, session: StalkerSession)
| 422 | } |
| 423 | |
| 424 | private transform(iterator: StalkerIterator, session: StalkerSession): void { |
| 425 | let instruction: Instruction | null; |
| 426 | while ((instruction = iterator.next()) !== null) { |
| 427 | if (this.shouldTrace(instruction.address, session.filter)) { |
| 428 | const address = instruction.address; |
| 429 | const text = instruction.toString(); |
| 430 | iterator.putCallout((context: CpuContext) => this.onInstruction(context, address, text)); |
| 431 | } |
| 432 | iterator.keep(); |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | private onInstruction(context: CpuContext, address: NativePointer, instructionText: string): void { |
| 437 | const threadId = Process.getCurrentThreadId(); |
no test coverage detected