Debugging a Program With dbx

Following the exec

If a child process executes a new program using exec(2) or one of its variations, the process id does not change, but the process image does. dbx automatically takes note of an exec() and does an implicit reload of the newly executed program.

The original name of the executable is saved in $oprog. To return to it, use debug $oprog.