MCPcopy Index your code
hub / github.com/qilingframework/qiling / write_exit_trap

Method write_exit_trap

qiling/core.py:546–555  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 #

Callers 4

runMethod · 0.95
runMethod · 0.80
runMethod · 0.80
_prepare_lib_patchMethod · 0.80

Calls 1

stack_writeMethod · 0.95

Tested by

no test coverage detected