Callbacks |
_cb_aoutchange old_a.out_name new_a.out_name
This ksh function is invoked by dbx whenever the program being debugged changes--the full path name is different. This is a good place to set a.out-specific breakpoints.
_cb_aoutchange() {
case "$2" in
*producer) stop in make_some_more ;;
*consumer) stop in get_another_one ;;
esac
}