(self)
| 544 | self.hook_address(_exit_trap, self._exit_trap_addr) |
| 545 | |
| 546 | def write_exit_trap(self): |
| 547 | self._initial_sp = self.arch.regs.arch_sp |
| 548 | |
| 549 | if self.stop_options: |
| 550 | if not self.loader.skip_exit_check: |
| 551 | self.log.debug(f'Setting up exit trap at {self._exit_trap_addr:#x}') |
| 552 | self.stack_write(0, self._exit_trap_addr) |
| 553 | |
| 554 | elif QL_STOP.EXIT_TRAP in self.stop_options: |
| 555 | self.log.debug(f'Loader requested to skip exit_trap!') |
| 556 | |
| 557 | ############### |
| 558 | # Qiling APIS # |
no test coverage detected