Oracle® Solaris Studio 12.4: Debugging a Program With dbx

Exit Print View

Updated: January 2015
 
 

Code Compiled Without the -g Option

    While most debugging support requires that a program be compiled with -g, dbx still provides the following level of support for code compiled without -g:

  • Backtrace (dbx where command)

  • Calling a function but without parameter checking

  • Checking global variables

Note, however, that dbx cannot display source code unless the code was compiled with the -g option. This restriction also applies to code that has had strip -x applied to it.