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)
| 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 | """ |
no outgoing calls