Oracle® Solaris Studio 12.4: dbxtool Tutorial

Exit Print View

Updated: October 2014
 
 

Step 5: Looking for a Cause

The unwanted error message is issued because err_silent is not > 0. Take a look at the value of err_silent with balloon evaluation.

  1. Put your cursor over err_silent in line 31 and wait for its value to be displayed.

    image:Editor window with balloon evaluation showing                                                 err_silent = 0

    Follow the stack to see where err_silent was set.

  2. Click Make Caller Current image:Make Caller Current button twice to evaluateField(), which has already called evaluateFieldPrepare() simulating a complex function that might be manipulating err_silent.

    image:Editor window with lavender stripe in                                                 evaluateField
  3. Click Make Caller Current again to get to printField(), where err_silent is being incremented. printField() has also already called printFieldPrepare(), also simulating a complex function that might be manipulating err_silent.

    image:Editor window with lavender strip in                                                 printField

    Notice how err_silent++ and err_silent-- bracket some code.

    err_silent could go wrong in either printFieldPrepare() or evaluateFieldPrepare(), or it might already be wrong when control gets to printField().