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

Method transform

agent/debugger.ts:424–434  ·  view source on GitHub ↗
(iterator: StalkerIterator, session: StalkerSession)

Source from the content-addressed store, hash-verified

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();

Callers 1

startStalkerForHitMethod · 0.95

Calls 3

shouldTraceMethod · 0.95
onInstructionMethod · 0.95
nextMethod · 0.80

Tested by

no test coverage detected