Previous: Machine Code, Up: Source

### 9.7 Disable Reading Source Code

In some cases it can be desirable to prevent gdb from accessing source code files. One case where this might be desirable is if the source code files are located over a slow network connection.

The following command can be used to control whether gdb should access source code files or not:

`set source open` [`on`|`off`]
`show source open`
  When this option is `on`, which is the default, gdb will access source code files when needed, for example to print source lines when gdb stops, or in response to the `list` command.

  When this option is `off`, gdb will not access source code files.