Get the return address of the current target, only valid in the trigger() function.
(self, dbg, exception)
| 227 | dbg.add_bp(FunctionRetBP(return_addr, self), target=dbg.current_process) |
| 228 | |
| 229 | def get_ret_addr(self, dbg, exception): |
| 230 | """Get the return address of the current target, only valid in the trigger() function.""" |
| 231 | cproc = dbg.current_process |
| 232 | return dbg.current_process.read_ptr(dbg.current_thread.context.sp) |
| 233 | |
| 234 | |
| 235 | def ret_trigger(self, dbg, exception): |