MCPcopy Create free account
hub / github.com/Vector35/debugger / add_breakpoint

Method add_breakpoint

api/python/debuggercontroller.py:1221–1235  ·  view source on GitHub ↗

Add a breakpoint The input can be either an absolute address, or a ModuleNameAndOffset, which specifies a relative address to the start of a module. The latter is useful for ASLR. :param address: the address of breakpoint to add

(self, address)

Source from the content-addressed store, hash-verified

1219 raise NotImplementedError
1220
1221 def add_breakpoint(self, address):
1222 """
1223 Add a breakpoint
1224
1225 The input can be either an absolute address, or a ModuleNameAndOffset, which specifies a relative address to the
1226 start of a module. The latter is useful for ASLR.
1227
1228 :param address: the address of breakpoint to add
1229 """
1230 if isinstance(address, int):
1231 dbgcore.BNDebuggerAddAbsoluteBreakpoint(self.handle, address)
1232 elif isinstance(address, ModuleNameAndOffset):
1233 dbgcore.BNDebuggerAddRelativeBreakpoint(self.handle, address.module, address.offset)
1234 else:
1235 raise NotImplementedError
1236
1237 def has_breakpoint(self, address) -> bool:
1238 """

Callers 1

test_breakpointMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_breakpointMethod · 0.76