Steps for setting up a stopping point for dbx in optimized code

Perform the following steps to use dbx to step through optimized code:

  1. Load the a.out file into the dbx utility (a.out is the default name of an executable file produced by the compiler.)
  2. Use the dbx stop subcommand to stop in func().
  3. Use the dbx run or continue subcommand to resume dbx so that it can hit the entry breakpoint for func().
  4. Use the dbx stepi subcommand to return to the point in the original source where the call to func() was inserted.

For more information on dbx, and the dbx stop and stepi subcommands, see z/OS UNIX System Services Command Reference. For information on the OPTIMIZE, NOOPTIMIZE, and DEBUG compiler options, see z/OS XL C/C++ User's Guide.