file subcommand for dbx: Change the current source file

Format

file [file]

Description

The file subcommand changes the current source file to the file specified by the file argument; it does not write to that file. If the file argument is not specified, the file subcommand displays the name of the current source file.

Usage notes

The file subcommand can be run only while the dbx debug program is running.

Examples

  1. To change the current source file to the main.c file, enter:
    file main.c
  2. To display the name of the current source file, enter:
    file