Go to main content
Oracle® Developer Studio 12.6: Debugging a Program with dbx

Exit Print View

Updated: June 2017
 
 

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. For more information, 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.