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

Method has_breakpoint

api/python/debuggercontroller.py:1237–1251  ·  view source on GitHub ↗

Checks whether a breakpoint exists at the specified address 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

(self, address)

Source from the content-addressed store, hash-verified

1235 raise NotImplementedError
1236
1237 def has_breakpoint(self, address) -> bool:
1238 """
1239 Checks whether a breakpoint exists at the specified address
1240
1241 The input can be either an absolute address, or a ModuleNameAndOffset, which specifies a relative address to the
1242 start of a module. The latter is useful for ASLR.
1243
1244 :param address: the address of breakpoint to query
1245 """
1246 if isinstance(address, int):
1247 return dbgcore.BNDebuggerContainsAbsoluteBreakpoint(self.handle, address)
1248 elif isinstance(address, ModuleNameAndOffset):
1249 return dbgcore.BNDebuggerContainsRelativeBreakpoint(self.handle, address.module, address.offset)
1250 else:
1251 raise NotImplementedError
1252
1253 @property
1254 def ip(self) -> int:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected