Debugging a Program With dbx

whocatches typename

This command reports where, if at all, an exception of typename would be caught if thrown at the current point of execution. Use this command to find out what would happen if an exception were thrown from the top frame of the stack.

The line number, function name, and frame number of the catch clause that would catch typename is displayed.