Sun Studio 12: Debugging a Program With dbx

returns function

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:

SPARC based systems


x86 based systems


x64 based systems

$rax, $rdx

The event is roughly equivalent to:

when in func { stop returns; }