The returns function event executes each time the given function returns to its call site. This is not a temporary event. The return value is not provided, but you can find integral return values by accessing the following registers:
$o0
$eax
$rax, $rdx
The event is roughly equivalent to:
when in func { stop returns; } |