MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / __init__

Method __init__

windows/debug/debugger.py:51–81  ·  view source on GitHub ↗

``target`` must be a debuggable :class:`WinProcess`.

(self, target)

Source from the content-addressed store, hash-verified

49 """
50
51 def __init__(self, target):
52 """``target`` must be a debuggable :class:`WinProcess`."""
53 self._init_dispatch_handlers()
54 self.target = target
55 self.is_target_launched = False
56 self.processes = {}
57 self.threads = {}
58 self.current_process = None
59 self.current_thread = None
60 self.first_bp_encoutered = False
61 # List of breakpoints
62 self.breakpoints = {}
63 self._pending_breakpoints = {} #Breakpoints to put in new process / threads
64 # Values rewritten by "\xcc"
65 self._memory_save = dict()
66 # Dict of {tid : {drx taken : BP}}
67 self._hardware_breakpoint = {}
68 # Breakpoints to reput..
69 self._breakpoint_to_reput = {}
70
71 self._module_by_process = {}
72
73 self._pending_breakpoints_new = defaultdict(list)
74
75 self._explicit_single_step = {}
76
77 self._watched_pages = {}# Dict [page_modif] -> [mem bp on the page]
78
79 # [start] -> (size, current_proctection, original_prot)
80 self._virtual_protected_memory = [] # List of memory-range modified by a MemBP
81 self._current_debug_event = None
82
83
84 @classmethod

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected