``get_basic_block_at`` returns the BasicBlock of the optionally specified Architecture ``arch`` at the given address ``addr``. :param int addr: Address of the BasicBlock to retrieve. :param Architecture arch: (optional) Architecture of the basic block if different from the Function's self.
(self, addr: int, arch: Optional['architecture.Architecture'] = None)
| 2555 | self._advanced_analysis_requests -= 1 |
| 2556 | |
| 2557 | def get_basic_block_at(self, addr: int, |
| 2558 | arch: Optional['architecture.Architecture'] = None) -> Optional['basicblock.BasicBlock']: |
| 2559 | """ |
| 2560 | ``get_basic_block_at`` returns the BasicBlock of the optionally specified Architecture ``arch`` at the given |
| 2561 | address ``addr``. |
| 2562 | |
| 2563 | :param int addr: Address of the BasicBlock to retrieve. |
| 2564 | :param Architecture arch: (optional) Architecture of the basic block if different from the Function's self.arch |
| 2565 | :Example: |
| 2566 | >>> current_function.get_basic_block_at(current_function.start) |
| 2567 | <block: x86_64@0x100000f30-0x100000f50> |
| 2568 | """ |
| 2569 | if arch is None: |
| 2570 | arch = self.arch |
| 2571 | block = core.BNGetFunctionBasicBlockAtAddress(self.handle, arch.handle, addr) |
| 2572 | if not block: |
| 2573 | return None |
| 2574 | return basicblock.BasicBlock(block, self._view) |
| 2575 | |
| 2576 | def get_instr_highlight( |
| 2577 | self, addr: int, arch: Optional['architecture.Architecture'] = None |
no test coverage detected