Sun Studio 12: Debugging a Program With dbx

files Command

In native mode, the files command lists file names that match a regular expression. In Java mode, the files command lists all of the Java source files known to dbx. If your Java source files are not in the same directory as the .class or .jar files, dbx might not find them unless you have set the $JAVASRCPATH environment variable (see Specifying the Location of Your Java Source Files).

Native Mode Syntax

files

List the names of all files that contributed debugging information to the current program (those that were compiled with -g).

files regular_expression

List the names of all files compiled with-g that match the given regular expression.

where:

regular_expression is a regular expression.

For example:

(dbx) files ^r
myprog:
retregs.cc
reg_sorts.cc
reg_errmsgs.cc
rhosts.cc

Java Mode Syntax

files

List the names of all of the Java source files known to dbx.