GNU Info

Info Node: (gdb.info)Working Directory

(gdb.info)Working Directory


Next: Input/Output Prev: Environment Up: Running
Enter node , (file) or (file)node

Your program's working directory
================================

   Each time you start your program with `run', it inherits its working
directory from the current working directory of GDB.  The GDB working
directory is initially whatever it inherited from its parent process
(typically the shell), but you can specify a new working directory in
GDB with the `cd' command.

   The GDB working directory also serves as a default for the commands
that specify files for GDB to operate on.  Note: Commands to specify
files.

`cd DIRECTORY'
     Set the GDB working directory to DIRECTORY.

`pwd'
     Print the GDB working directory.


automatically generated by info2www version 1.2.2.9