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

Method getCapturedWindow

agent/debugger.ts:558–568  ·  view source on GitHub ↗
(session: StalkerSession, current: NativePointer, count: number)

Source from the content-addressed store, hash-verified

556 }
557
558 private getCapturedWindow(session: StalkerSession, current: NativePointer, count: number): DisassembledInstruction[] {
559 const instructions = session.breakpoint.originalDisassembly;
560 const currentIndex = instructions.findIndex((instruction) => instruction.address.equals(current));
561 if (currentIndex === -1) {
562 return [];
563 }
564
565 const before = 2;
566 const start = Math.max(0, currentIndex - before);
567 return instructions.slice(start, start + count);
568 }
569
570 private getSession(threadId: ThreadId | null): StalkerSession | null {
571 if (threadId === null) {

Callers 2

disassembleMethod · 0.95
logCurrentDisassemblyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected