The following are event specifications, syntax, and descriptions for events pertaining to execution progress.
Similar to step except that functions are not stepped into.
This event is just a breakpoint at the return point of the current visited function. The visited function is used so that you can use the returns event spec after doing a number of up's. The plain returns event is always -temp and can only be created in the presence of a live process.
This 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:
Sparc |
$o0 |
Intel |
$eax |
when in func { stop returns; }
The step event occurs when the first instruction of a source line is executed. For example, you can get simple tracing with:
when step { echo $lineno: $line; }
When enabling a step event you instruct dbx to single-step automatically next time cont is used. The step command can be implemented as follows:
alias step="when step -temp { whereami; stop; }; cont"