Oracle® Solaris Studio 12.4: Debugging a Program With dbx

Exit Print View

Updated: January 2015
 
 

Modifying Source Using Fix and Continue

    You can modify source code in the following ways when using fix and continue:

  • Add, delete, or change lines of code in functions

  • Add or delete functions

  • Add or delete global and static variables

Problems can occur when functions are mapped from the old file to the new file. To minimize such problems when editing a source file:

  • Do not change the name of a function.

  • Do not add, delete, or change the type of arguments to a function.

  • Do not add, delete, or change the type of local variables in functions currently active on the stack.

  • Do not make changes to the declaration of a template or to template instances. Only the body of a C++ template function definition can be modified.

If you make any of these changes, rebuild your entire program rather than using fix and continue.